You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/GIT_CMS_COMPANION.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ The sandbox starts with an intentionally useful state:
48
48
49
49
-`hello-world` published at v1
50
50
- draft v2 and v3 ahead of published
51
-
- enough history to make restore interesting immediately
51
+
- enough history to make the draft/published split and append-only restore model visible immediately
52
52
53
53
That means the repo and UI are alive on first load. You do not have to create the interesting state by hand before the stunt becomes visible.
54
54
@@ -61,9 +61,10 @@ With `npm run sandbox` running:
61
61
3. Compare the current draft with the published ref
62
62
4. Open the History panel
63
63
5. Preview an older version
64
-
6. Restore it and watch a new draft commit appear
64
+
6. Try Restore and note that the UI blocks it while the article is published
65
+
7. Unpublish, then restore, and watch a new draft commit appear
65
66
66
-
The important thing is that restore does not rewrite history. It appends a new commit using older content.
67
+
The important thing is that restore does not rewrite history. It appends a new commit using older content, but only once the article is no longer in the `published` state.
0 commit comments