Previewing an Edit Before Publishing

A preview can render an unsaved or draft representation without changing what the public resource currently shows.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace two views
  2. Test the stronger action separately
  3. Test public and editorial readers during an edit
  4. Check discoverability from the public perspective

Trace two views

An editor submits a draft title to preview and sees the proposed page. Another reader opening its published address still sees the recorded title under the defined workflow. See state and output.

Test the stronger action separately

Publishing is the transition that changes the public result. Verify an explicit state change and the page after publication. State transition tables document which actor actions change which state.[1][2]

Test public and editorial readers during an edit

An editor can save a draft of version two while version one remains the public article. Preview uses permission and a draft identifier. Publishing advances the public reference after the required checks. Existing inbound links can continue addressing the public article. See stable public addresses across revisions.

Public visitor sees v1
Editor previews v2
After publication, public visitor sees v2 at the same permalink

Check discoverability from the public perspective

A preview should be governed by its access rules and omitted from public discovery when the product keeps drafts private. Test an unauthorized request and verify the new public content after publication.

References

  1. IETF, RFC 9110: HTTP Semantics ↩
  2. WHATWG, HTML Living Standard: Forms ↩