diff options
| author | soryu <soryu@soryu.co> | 2026-05-02 17:47:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-02 17:47:24 +0100 |
| commit | cd09103183139788ba4297eaaa6f75d51a154c8a (patch) | |
| tree | d4874def26a46d94c7cd290bdb8f27e9715117e3 /docs/proposals/compound-engineering-analysis.md | |
| parent | 2c3b0e3926b8c535fb610092301f8621440b51ed (diff) | |
| download | soryu-cd09103183139788ba4297eaaa6f75d51a154c8a.tar.gz soryu-cd09103183139788ba4297eaaa6f75d51a154c8a.zip | |
fix(doc-mode): flatten sidebar list + restore right-click context menu (#124)
Two regressions reported by the user:
1. The sidebar was grouping contracts under per-status sub-folders
(active/idle/archived). The user explicitly does not want that —
they want a flat list with status indicated by a colored dot on the
right of each row.
2. The right-click context menu on contract rows was missing —
start/pause/archive/delete/create-PR/update-PR are no longer
reachable through the UI.
Fixes:
* Drop the SidebarGroup/bucketOf/GROUP_LABEL helpers; replace the
grouped render with a flat sort by status precedence
(active → paused → idle → draft → inactive → archived) then alpha
by title within the same status. The existing dot-color palette is
unchanged; the dot just moved from the LEFT of the contract title
to the RIGHT (after the orchestrator-running pulse, when present).
* Wire `onContextMenu` through SidebarProps → DirectiveFolderProps →
the folder header `<button>`. Page-level state captures the click
position and the targeted directive; the existing
DirectiveContextMenu component (start/pause/archive/delete/PR/
Advance/Cleanup/PickUpOrders) renders on top.
* runAction helper centralises error handling: dispatches the API
call, refreshes the sidebar list + bumps the document-folder
refresh nonce on success, surfaces an alert on failure.
* Delete confirms via window.confirm and clears the URL when the
deleted contract was the one selected.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'docs/proposals/compound-engineering-analysis.md')
0 files changed, 0 insertions, 0 deletions
