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

Aperta
#6,194 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, wordpress
Ambito
full-stack

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
568
Fork
116
Merge medio
11h 54m
PR unite (30g)
526

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Automattic/studio

Tutte le issue di Automattic/studio

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.