feat(dashboard): review queue as its own destination - #868
Open
kmonsoe wants to merge 2 commits into
Open
Conversation
Two-pane /dashboard/conversations over the enriched queue DTO: sectioned list (needs-you / in-progress / finished by claim+attention), claim faces, topic nudges and no-draft badges; conversation pane with interleaved internal notes, the agent why-block (rationale + tool chips), and a claim-gated composer (approve/edit seeded draft, reject via clear-draft, restore, release, ask-for-a-draft, close-no-reply, note tab). Mobile is list-then-detail with stacked actions. Agents land here; Oversight nav group added; claim_held_by_other and conv_draft_pending translated. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CPwvC1MqF1uhpNqC8BmvQN
End-user bubbles switch from paper-deep fill to paper with a hairline rule border per the mockup — paper-deep vanished against the pane's paper-deep body. Opening /dashboard/conversations without an id now selects the first queue row (route id still drives the mobile list/detail split). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CPwvC1MqF1uhpNqC8BmvQN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #867 (→ #866 → #865). The substance of the Oversight console: the design's "Review queue" screen.
What's here
pages/conversations.tsx— desktop two-pane (1.05fr/1.4frinside the console shell): sectioned list + full-height pane; URL-driven selection (/dashboard/conversations/[id]), which gives mobile list→detail for free (list hides when a conversation is open, pane shows a "← Queue" back link, actions stack at 44px).conversation-queue.ts— controller hook overGET /v1/conversations/queue(feat(conv): review-queue read model, internal notes, draft reject stamps #865): open + finished pages, per-selection detail, realtime refetch onconversation.*(org + selected-conversation channels), reconnect catch-up, 30s failure retry, and thepending → api → reload → inline erroraction shape shared withinbox-data. Pure helpers (partitionQueue,matchesQueueSearch,messageDraftKind) are unit-tested.MessageBubble(orientation untouched, per the handover; internal notes render as the amber card, interleaved chronologically); why-block readingrationale+toolNamesoff the pending draft's metadata (feat(agent-runtime): draft rationale from the audit pass + on-demand drafting #866), hidden when absent; claim-gated composer with Reply /Internal note · ntabs — draft-seeded textarea (⌘↵ send,fromDraftIdapprove-vs-edited stamping), Reject →POST :id/clear-draft(now writesdraft_reply_rejected), Restore draft when dirty, Release, Ask for a draft (request-draft round trip with a local drafting state cleared when the draft lands), Close-no-reply. Unclaimed/held → "Claim to reply" / "Take over to reply" gate; closed → read-only. Plain composer fallback for draftless handovers.adminOnly; support agents at/dashboardare redirected to the queue.dashboard.console.queue.*namespace in en + nb (transcreated), pluserrors.claim_held_by_otheranderrors.conv_draft_pendingso a take-over collision no longer surfaces a raw UUID string.Tests
dashboard-pages: 96 passed (new: section partitioning by claim/attention, search matching, draft-kind classification incl.
draft_reply_rejected). Typecheck clean (dashboard-pages + apps/web). A full visual walkthrough of the stack (desktop + 390px, two-browser claim collision, approve/edit/reject stamps) follows after the overview rework lands on this stack.🤖 Generated with Claude Code
https://claude.ai/code/session_01CPwvC1MqF1uhpNqC8BmvQN