Show a revision label on preview sites so reviewers can tell which update they're seeing

Open
#6,194 0 comments 0 reactions 0 assignees View on GitHub

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

Enhancement Previews
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

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Automattic/studio

All issues in Automattic/studio

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.