summaryrefslogtreecommitdiff
path: root/k8s/daemon
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-05-02 17:47:24 +0100
committerGitHub <noreply@github.com>2026-05-02 17:47:24 +0100
commitcd09103183139788ba4297eaaa6f75d51a154c8a (patch)
treed4874def26a46d94c7cd290bdb8f27e9715117e3 /k8s/daemon
parent2c3b0e3926b8c535fb610092301f8621440b51ed (diff)
downloadsoryu-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 'k8s/daemon')
0 files changed, 0 insertions, 0 deletions