Show a revision label on preview sites so reviewers can tell which update they're seeing
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript, wordpress
- Domain
- full-stack
Research direction
Start from the Publish popover's "Last updated" text in Studio and the preview record fields versionId, syncedAt and sequence that the issue names, then trace where the preview's banner or admin bar is rendered. The payload names no files, so locate those by searching for these fields. Done means a shared preview shows the same revision number and timestamp that the Publish popover shows, and the label updates after a partial publish.
Written by the indexing model from the issue text.
Description
What
Show a revision label on a preview site, such as "Revision 4 · Updated Nov 25, 14:32", so anyone viewing the preview can tell which update they are looking at.
Why
After a preview is updated, a reviewer can't tell whether the page they're viewing is the new build or the old one. The publish checklist makes partial updates easy to test: for example, update only Themes and compare the same page before and after. If the page looks the same, the reviewer can't tell whether the update didn't apply, they're seeing a cached copy, or the change has no visible effect.
Studio shows "Last updated …" in the Publish popover, but only to the person publishing. Someone opening the shared preview link sees nothing.
It would also help with reports like a preview showing a design from weeks ago (STU-2727): the label would show at a glance whether the preview holds the latest update.
How
Studio already records which version each preview holds (versionId, syncedAt and sequence in the preview's record). The label would show the update count and time on the preview itself, for example in the preview banner or admin bar that WordPress.com shows, and match what Studio shows next to the preview.
- Dominant language
- TypeScript
- Stars
- 568
- Forks
- 116
- Avg merge
- 12h 38m
- Merged PRs (30d)
- 498
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
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 Automattic/studio
-
Enhancement
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Automattic/studio#3017 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Automattic/studio#6280 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Automattic/studio#6269 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Automattic/studio#6254 ·
Maintainers usually reply within 1 day
-
Open preview tabs side by sidePossibly taken A pull request linked to this issue is open or already merged. OpenEnhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
Automattic/studio#6239 ·
Maintainers usually reply within 1 day
All issues in Automattic/studio
Similar issues
-
blocklist addition
Difficulty 1/5 Under an hour Newbie friendliness 76/100
MetaMask/eth-phishing-detect#319194 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
continuedev/continue#13533 · 1 comment ·
Maintainers usually reply within 6 days
-
bug codex:automation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
genfeedai/genfeed.ai#12060 ·
Maintainers usually reply within 1 day
-
bounty good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fitzss/valun-open#15 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day