diff options
| author | soryu <soryu@soryu.co> | 2026-04-30 17:06:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-30 17:06:31 +0100 |
| commit | 36f65f294ce33325a9eea9b7a8629706a4def721 (patch) | |
| tree | 37c3c47351c1c7e7b8e0ce26d1d5575b4ccbddba /makima/frontend/src/components/directives/DocumentEditor.tsx | |
| parent | 2dafe938f41edbb8ceb7c6a3655c9533bb50e47d (diff) | |
| download | soryu-36f65f294ce33325a9eea9b7a8629706a4def721.tar.gz soryu-36f65f294ce33325a9eea9b7a8629706a4def721.zip | |
feat(doc-mode): rename surfaced label "Directive" → "Contract" (#109)
Stage 2: cosmetic UI rename only. Database tables, API paths, hook names,
and CLI commands all stay as 'directive' for now — we'll phase out the
existing standalone /contracts table later.
Surface changes:
- Sidebar header "Documents" → "Contracts"; root folder "directives/" →
"contracts/"; empty state "No directives yet" → "No contracts yet".
- Editor placeholders, breadcrumb header, "back to document" → "back to
contract", right-click menu header.
- NavStrip: when documentModeEnabled is on, the "Directives" link renders
as "Contracts" (href stays /directives so links don't break).
- Save bar message "saving will replan the directive" → "the contract".
No backend changes — directive.goal etc. all still work the same.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'makima/frontend/src/components/directives/DocumentEditor.tsx')
| -rw-r--r-- | makima/frontend/src/components/directives/DocumentEditor.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/makima/frontend/src/components/directives/DocumentEditor.tsx b/makima/frontend/src/components/directives/DocumentEditor.tsx index 3dd8522..08e4d73 100644 --- a/makima/frontend/src/components/directives/DocumentEditor.tsx +++ b/makima/frontend/src/components/directives/DocumentEditor.tsx @@ -638,7 +638,7 @@ function EditorContextMenu({ style={{ left: x, top: y }} > <div className="px-3 py-1.5 text-[10px] font-mono text-[#556677] uppercase border-b border-[rgba(117,170,252,0.2)]"> - Document + Contract </div> <button type="button" @@ -727,7 +727,7 @@ function SaveCountdownBar({ } } else if (state === "dirty") { label = orchestratorRunning - ? "Unsaved changes — saving will replan the directive." + ? "Unsaved changes — saving will replan the contract." : "Unsaved changes."; progressPct = 0; } else if (state === "saving") { @@ -1129,10 +1129,10 @@ export function DocumentEditor({ <RichTextPlugin contentEditable={ <ContentEditable - aria-placeholder="Describe the directive's goal…" + aria-placeholder="Describe the contract's goal…" placeholder={ <div className="pointer-events-none absolute text-[#445566] font-mono text-[13px] mt-2"> - Describe the directive's goal… + Describe the contract's goal… </div> } className="outline-none font-mono text-[13px] leading-relaxed text-[#dbe7ff] [&_.makima-doc-h1]:text-[24px] [&_.makima-doc-h1]:font-medium [&_.makima-doc-h1]:text-white [&_.makima-doc-h1]:mb-3 [&_.makima-doc-h1]:tracking-tight [&_.makima-doc-paragraph]:my-2 [&_.makima-doc-paragraph]:text-[13px] [&_.makima-doc-paragraph]:text-[#c0d0e0] relative" |
