diff options
| author | soryu <soryu@soryu.co> | 2026-05-02 16:11:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-02 16:11:05 +0100 |
| commit | 08d2ea6a685e248146b30f70421b853ff404b9ad (patch) | |
| tree | df66a2bc3307d07ed8a397981a8f611b83ece07e /makima/frontend/src/lib/api.ts | |
| parent | 70a83104292c4e1fe5f43dd5f50e5214928c8dd6 (diff) | |
| download | soryu-08d2ea6a685e248146b30f70421b853ff404b9ad.tar.gz soryu-08d2ea6a685e248146b30f70421b853ff404b9ad.zip | |
feat(doc-mode): + New contract sidebar header + + New ephemeral task per folder (#121)
The unified surface didn't expose any way to create a new contract or a
new ephemeral task — the only paths were `/directives/<id>?document=...`
or right-click context menus that no longer existed in the documents-per-
directive sidebar restructure. Two new affordances:
* **Sidebar header gains a "+ New" button** that opens NewContractModal
(title + goal + optional repository_url). On submit calls
`useDirectives.create` and navigates the user into the new directive.
Header label updated from "Documents" to "Contracts" so the button's
intent reads naturally.
* **Each open directive folder gets a "+ New ephemeral task" button**
alongside the existing "+ New document" affordance. Opens
NewEphemeralTaskModal (name + plan), calls the existing
`createDirectiveTask` API, navigates the user into the new task's
transcript at `?task=<id>`.
NewContractModal and NewEphemeralTaskModal are local to the page —
mirror the styling of the older NewTaskModal that lived here pre-
restructure. ⌘/Ctrl+Enter submits.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'makima/frontend/src/lib/api.ts')
0 files changed, 0 insertions, 0 deletions
