feat(dashboard): human-issue UX — markdown + inline answer + Ask Hermes #21
Reference in New Issue
Block a user
Delete Branch "feat/dashboard-human-issue-ux"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Upgrades the Damascus dashboard's human-issue surface so that humans responding to
awaiting_humanwork items get:code, line breaks)What's included
UI (
ui/)react-markdown@9.1.0+remark-gfm@4.0.1src/components/AnswerPopover.tsx— shared popover (drawer + list widget)OpenIssues.tsx— markdown render + inline answerItemDrawer.tsx— markdown render for the answer promptuseAskHermeshook +AskHermesResponsetypeBackend (
src/damascus/)POST /v1/issues/{id}/ask-hermes— emitshermes_pingevent (queued) or echoes the existing answer (answered)AskHermesStatus+AskHermesResponseschemasTests
npx vitest run)pytest tests/api/) — 34 existing + 4 new + 6 from earlier patchesnpm run buildcleantsc --noEmitcleanSee also
docs/human-issue-ux.md— full flow + migration notesNot included (deferred)
Items.tsxmount-timewriteHashbug — separate follow-up- react-markdown@9.1.0 + remark-gfm@4.0.1 for question rendering - AnswerPopover component (shared between drawer + OpenIssues widget) - OpenIssues: markdown render + inline 'Answer' button per row - ItemDrawer: markdown render for the answer prompt - useAskHermes hook + AskHermesResponse schema - POST /v1/issues/{id}/ask-hermes — emits hermes_ping event (queued) or echoes existing answer (answered) - Tests: 4 new API tests for /ask-hermes, updated UI tests for new popover trigger + mock returns - docs/human-issue-ux.md — flow + migration notes The 'Ask Hermes' flow: UI pings the backend, backend emits an event for the leader (operator session) to pick up, leader drafts an answer and POSTs back via the existing answer endpoint. UI prefills the textarea — never auto-submits, the human always reviews and clicks Submit.