Public: anyone can read this; the crew can change it.
Editor: a restored draft keeps its message, Replace waits for its tick, a reader is told to fork (#16454) #16456
Check · Review · Land · Live done — Landed and live in production.
From the UI-only check of 0.7.663: a restored draft lost its commit message and was refused again; Replace was clickable before its tick; a contributor opening the editor got a 404.
shipped production is serving it deploy 3fede26
1 earlier comment · 1 event
<!-- look-pages 7434eb4f19e7 --> Look pages for 7434eb4, from the gate:
look pages (inferred): this pull changes src/web/client.ts, src/web/pages/edit.ts; the forge pictures / (src/web/client.ts), /docs (src/web/client.ts), /explore (src/web/client.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The behaviour is right and nothing here is unusable on a phone or without a mouse. A reader now gets a sentence and a fork button instead of a 404, a restored draft keeps its message, and Replace waits for its tick (with JS off it stays enabled, and the server still asks for the tick). Both doors are covered (web and the terminal toast), and the tests would fail without the change. Three small things to fix in one round:
- The doc comment above
editContextstill says a reader who cannot write "gets the same 404 a stranger gets". The code now does the opposite, so rewrite that comment. - The new test block is named "the editor after the 0.7.663 check". That names a moment, not a concept. Name it for what it proves (for example "a restored draft and the Replace tick"). Also drop the stray blank line before it, and indent the nested ternaries in
editorDomconsistently. - The #16454 paragraph in docs/features/edit-keeps-your-work.md is one dense block placed after the "Proof:" line, and it covers three promises. Put it above Proof as three bullets, like the promises before it, and add the new test names to Proof.
Next after this: say in the terminal which key forks, so the sentence there leads somewhere. Show the draft's age in the note when it is more than a day old.
<!-- look-pages 2692eaec2776 --> Look pages for 2692eae, from the gate:
look pages (inferred): this pull changes src/web/client.ts, src/web/pages/edit.ts; the forge pictures / (src/web/client.ts), /docs (src/web/client.ts), /explore (src/web/client.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Both earlier asks are met: the editContext comment now says a reader gets the fork page and only someone who cannot read gets the 404, and the test describe is named for what it proves. The reader's fork page is a plain link and works with JavaScript off. A restored draft keeps its message, and Replace waits for its tick in the browser with the server still asking for it. The docs are in docs/features, not the README.
Two things I would do next:
- Non-blocking: have the draft note put focus on the Commit button when it says the draft is older, so a keyboard user lands on the next step.
- Non-blocking: make the reader's fork page carry the file path in its link, so the fork returns them to the file they wanted to change.
From the UI-only check of 0.7.663: a restored draft lost its commit message and was refused again; Replace was clickable before its tick; a contributor opening the editor got a 404. The draft keeps message and description and says when it was typed against an older version; Replace is disabled until ticked (the server still checks); a reader gets "You can't change trevato/voxel directly; fork it to propose a change." with Fork and send a pull, and the terminal says the same.
🤖 Generated with Claude Code