Configurable preview link (open the deploy preview of the current branch)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript, yaml
- Domain
- developer-experience, frontend
Research direction
Start by reading the configuration parsing and editor header/save flows to find where .pages.yml settings and content entry options are handled. The main request is a configurable preview button using the current branch, with an optional per-entry path; Markdown links in descriptions are a smaller alternative. Done means editors can follow a preview link after saving, using the configured URL and entry path where supported.
Written by the indexing model from the issue text.
Description
Context
We build client sites on Netlify and let clients edit them in Pages CMS. To keep costs and risk under control, editors don't work on main:
- Every commit to
maintriggers a production deploy, and on Netlify's credit-based plans each production deploy costs credits. If editors commit straight tomain, every small text fix becomes a paid production deploy. - So editors work on a
devbranch. Netlify builds a free branch preview (https://dev--mysite.netlify.app), the editor checks the change there, and publishes once with a single merge tomain.
Problem
Pages CMS has no way to get to that preview. Editors save, then have to find the preview URL in their bookmarks or ask us for it. Some skip checking altogether, which defeats the point of the preview step.
Request
A preview option in .pages.yml that shows a "View preview" button in the header and after saving:
settings:
preview:
url: "https://{branch}--mysite.netlify.app"
Nice to have: a path per content entry, so the button opens the page that was just edited:
content:
- name: pages
preview: "/{slug}/"
Smaller alternative
Render Markdown links in field and entry description. Then we can at least add a clickable link ourselves.
Happy to test it. Thanks for Pages CMS, it works great for our clients.
- Dominant language
- TypeScript
- Stars
- 4.1k
- Forks
- 564
- Avg merge
- 8m
- Merged PRs (30d)
- 5
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hunvreus/pagescms
-
Media browser returns "Not found" for repositories using the SHA-256 object formatPossibly taken @adamchodera claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Hosted 3.0.1: email code sign-in fails for an invited collaborator ("code could not be verified")Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
hunvreus/pagescms#483 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
All issues in hunvreus/pagescms
Similar issues
-
Follow-ups from #312Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
janhesters/remixcn#318 ·
Maintainers usually reply within 1 day
-
Interceptor LaunchTestProfile.sh: no Windows (Git Bash/MSYS) branch, test profile never launchesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
danielmiessler/LifeOS#3150 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Make the "%" unit spacing the same in the web and in A10Possibly taken @kragent66-glitch claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 comment ·
-
NP OSS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
siteboon/claudecodeui#1905 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day