Skip to content

docs(workflow): x-flow-wait directive + audit follow-ups#24

Open
zachiler wants to merge 1 commit intodevfrom
feature/audit-followups
Open

docs(workflow): x-flow-wait directive + audit follow-ups#24
zachiler wants to merge 1 commit intodevfrom
feature/audit-followups

Conversation

@zachiler
Copy link
Copy Markdown
Member

@zachiler zachiler commented May 1, 2026

Summary

Audit follow-ups from the post-Phase-1+2 sweep across alpineflow / wireflow / artisanflow.

  • Adds an x-flow-wait directive section to docs/addons/workflow.md, parallel to the existing x-flow-condition directive section. Covers the rendered DOM, the node.data shape, the duration-format table, and the pairing with flow-wait workflow nodes.
  • Commits the repo-internal CLAUDE.md (tech stack, build/test commands, addon layout, theming rules, branching rules) for human and AI contributors working inside the package.
  • Adds five error-path tests for the x-flow-condition directive: invalid _branchTaken values are not reflected, malformed condition shapes render an empty body, garbage direction expressions fall back to 'horizontal'.
  • Clarifies the cached-at-init assumption in findCanvasScope() (src/schema/inspector/shared.ts) with a forward reference to the workflow addon's ensureCanvas pattern, so a future contributor placing inspectors in portals or tab-switched panels knows to mirror that fix.

No source-behavior changes — docs, tests, and an internal JSDoc note only.

Test plan

  • npm run test — 2582/2582 pass (the two pre-existing flow-schema test warnings are unchanged from dev)
  • npx tsc --noEmit — clean
  • Verified the new x-flow-wait doc section renders correctly in the markdown

Adds a parallel directive section for x-flow-wait next to the existing
x-flow-condition section, covering the rendered DOM, node.data shape,
duration formatting, and pairing with flow-wait workflow nodes.

Also commits the repo-internal CLAUDE.md (tech stack, build/test
commands, branching rules), adds five error-path tests for the
flow-condition directive (invalid _branchTaken, malformed condition,
garbage direction expressions), and clarifies the cached-at-init
assumption in the schema inspector's findCanvasScope() with a forward
reference to the workflow addon's ensureCanvas pattern.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant