summaryrefslogtreecommitdiff
path: root/makima/src/orchestration/directive.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-05-08 13:43:17 +0100
committerGitHub <noreply@github.com>2026-05-08 13:43:17 +0100
commite4f1622a0f0ac74707cc1c9810e0b99e948d1319 (patch)
treef12d1e1aa25ba655966d406da58de0babc251414 /makima/src/orchestration/directive.rs
parent2dda1f96a30eee2fda86be9a8a59ce5cb26dad7f (diff)
downloadsoryu-e4f1622a0f0ac74707cc1c9810e0b99e948d1319.tar.gz
soryu-e4f1622a0f0ac74707cc1c9810e0b99e948d1319.zip
refactor(frontend): DocumentEditor takes explicit body/title/documentId props (#131)
Stops shadowing directive.goal with the contract body via a synthesised directive object. DocumentEditor now accepts: * documentId — scopes the localStorage draft key per contract so switching contracts under the same directive doesn't clobber the other's unsaved edits. * title — the contract title rendered as the H1. * body — the contract body, used to seed the editor. * onUpdateBody (was onUpdateGoal) The `directive` prop stays for orchestrator state + embedded steps panel. document-directives.tsx drops the directiveAsDocument synthesis hack and passes body/title from the contract directly. This is the prep-work for dropping `directives.goal` from the schema — once nothing reads it, the column can be dropped in a follow-up without touching the editor. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'makima/src/orchestration/directive.rs')
0 files changed, 0 insertions, 0 deletions