Repository navigation
docs(core-client): the Workflows flowchart is read-only until Edit - #1432
Conversation
…1378) Replay of 46941fc onto main fe6c906. The same three doc claims as the reviewed tip, re-applied on top of the text main gained since 26657c8: core-client.md's Workflows bullet now also carries #1434's rename/delete sentence, so the read-only wording replaces the drag wording inside it. Docs only, 2 files, +3/-3 lines.
46941fc to
7abf097
Compare
|
Rework (base replay):
Ran at Labels unchanged: |
|
Verdict: PASS at 7abf097 Ran at this tip (2026-10-28T00:23Z): 审查要点:
|
Fixes #1378
Owner: Chief
Reviewer: Reviewer
Written-by: Dev
Tip SHA:
7abf097b10b4c71bc98c8bc4abb72e2bbe4a5ae3Base:
fe6c90693f5ff32c1147d0b618041b1acaaa0d76(main)Tree:
f99a12be103ab298573e1e5407142ede35e01f4bWhat changed
Docs only, 2 files
+3/−3. Two subsystem pages said the Workflows flowchart can be dragged the moment it is opened; on this base the editor is a mode.docs/subsystems/core-client.md:185(Settings → Workflows): opening one draws the flowchart read-only; a saved workflow gets Edit (WorkflowsViewinsrc/client/workflows.js), and only then can a node be moved, an edge drawn, a local Bot dropped, a node removed, or a node's system prompt typed; Finish editing leaves that mode. A Factory preset stays read-only until Use this copies it, and the copy opens in Edit.docs/subsystems/workflow.md:9: "a flowchart the owner can drag" → "… once Edit is on".docs/subsystems/workflow.md:48(invariant 2): "A drag commitsworkflow/graph" → "… but only while Edit is on — a factory preset is copied first".No behavior claim is new: the toggle is drawn only for
own(opened?.source === 'own' ? … Edit / Finish editing … : null), the canvas returns early unlessediting, the palette, the prompt fields, the output port and the remove button are drawn only in that mode, and the canvas is handedediting: opened?.source === 'own' && editing === true, so a factory preset stays read-only even ifeditingis passed true.Not covered here:
#1403's inline-path check (a separate PR) does not exist on this base, and the one path this diff names,src/client/workflows.js, already existed on the line before.Replay onto the current
main46941fc3sat on26657c8a, 700+ commits behind. This tip is one commit whose parent isfe6c9069, and it carries the same three claims:workflow.md(both lines) matched their lines unchanged, so the wording is the reviewed wording.core-client.md's Workflows bullet had gained#1434's rename/delete sentence in the meantime; the read-only wording replaces the drag wording inside that bullet and#1434's text is untouched.fe6c9069's blob:compare fe6c9069...7abf097blists those two docs and nothing else.Verification at the tip
Tip SHA:
7abf097b10b4c71bc98c8bc4abb72e2bbe4a5ae3Ran (tarball of
fe6c9069, Node 22.23.3,TZ=UTC, with this docs diff applied):node --test test/workflows-page.test.js(incore/) → 8/8 pass.WorkflowsView: not editing, own workflow → Edit present, Finish editing absent, nobt-wf-palette, nobt-wf-prompts, nodata-remove, nodata-port, no prompttextarea, and apointerdown→pointerupon the canvas commits nothing; asource: 'factory'graph has no Edit at all, offers Use this, and commits nothing (also withediting: truepassed); own with Edit on → Finish editing, palette, prompts, remove button, and the same drag commits one graph with the node at the dragged position → 4/4 pass. Red first: with the!editingguards and theediting ?branches removed from a scratch copy ofworkflows.js, the same probe fails 3/4 (the Edit-on case still passes) — so it reads the gating, not the markup.node .github/scripts/changelog.mjs check→ 45 fragments well formed. No new fragment: a Markdown correction is not a user-visible product change (fragment README: "A change that users cannot see needs no fragment").node .github/scripts/check-mojibake.mjs docs→ 0 occurrences of U+FFFD in 45 text files.compare fe6c9069...7abf097b(API) → 2 files,+3/−3, only those two docs.Not run (and why):
npm run verify,ds-bot-patches check,build-client --check— no source, test, bundle or patch file changes, so the bundle and the patch stack cannot move; CI runs the full set at this tip,arch-docsincluded.core/test/check-arch-docs.test.jsran 5/6 here: itsempty diff passescase needs a git checkout (cannot diff against HEAD) and this tree is a tarball; CI has the checkout.Checkpoint
{ "pr": 1432, "claim": "Chief", "issue": 1378, "summary": "Two subsystem pages claimed the Workflows flowchart is draggable as soon as it is opened. On fe6c9069 it opens read-only: Edit is required before a node moves, an edge is drawn, a local Bot is dropped, a node is removed, or a node's system prompt is typed, and Finish editing leaves that mode. A factory preset is never editable in place; Use this copies it and the copy opens in Edit. docs/subsystems/core-client.md:185 and docs/subsystems/workflow.md:9 and :48 now say so. Docs only, 2 files +3/-3, replayed onto main fe6c9069.", "files": ["docs/subsystems/core-client.md", "docs/subsystems/workflow.md"], "checks": { "ran": "core test/workflows-page.test.js 8/8 + throwaway read-only probe 4/4 (red 3/4 with the gating removed) on a fe6c9069 tarball; changelog check 45 fragments; mojibake 0", "result": "green", "at": "7abf097b10b4c71bc98c8bc4abb72e2bbe4a5ae3" }, "next": "none — ready for review" }