feat: flexible intake — deferred variables + prepared sessions #103

Merged
chihlasm merged 3 commits from feat/flexible-intake into main 2026-03-10 13:49:51 +00:00

3 Commits

Author SHA1 Message Date
chihlasm
2d40687fd9 feat: wire PrepareSessionModal entry point in Flow Library
Add "Prepare session" button (clipboard icon) to grid, list, and table
views for procedural/maintenance flows. Clicking fetches tree intake
fields and account members, then opens PrepareSessionModal.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 08:22:21 -04:00
chihlasm
9387902497 fix: pass treeData directly to startSession to avoid stale state
setTree(treeData) hasn't committed when startSession runs immediately
after, so tree is still null and getStepsFromTree returns []. This
caused the step detail area to render empty on new session start.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 02:40:13 -04:00
chihlasm
299dff8bfc feat: flexible intake — deferred variables + prepared sessions
Remove blocking intake form modal. Variables are now filled inline during
flow execution or pre-filled via prepared sessions. Adds PATCH /sessions/{id}/variables
endpoint, POST /sessions/prepare for session pre-staging, inline variable prompts
in StepDetail, editable Session Variables panel, and "Prepared for You" dashboard section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 02:01:32 -04:00