Unify live + history into one consensus report (with executive summary)#21
Merged
Conversation
The live view and the stored-thread view rendered the decision differently, and the history view couldn't show the executive summary at all (the thread-detail API never returned it). Now both render through a single shared ConsensusReport component and both lead with the executive overview. - threads API: ThreadDetailResponse returns `overview` (from the thread's stored summary, already eager-loaded) - new ConsensusReport component: meters, Copy/Export at top, executive overview leading with the full decision in a disclosure, dissent - ConsensusComplete and ThreadDetail both delegate to it (export stays per-view via an exportSlot: store-based dropdown live, ExportMenu stored) Verified against the real dev DB: history now surfaces the overview. 1677 Python tests pass (2 new), 204 Vitest pass, mypy + ruff clean, build clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EkrekgzMAQko92UkjnXhHL
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.
Two displays for the same thing — and the history view couldn't show the executive summary at all because the thread-detail API never returned it. This merges them into one shared component and fixes the missing overview.
Backend
ThreadDetailResponsenow returnsoverview, sourced from the thread's stored summary (already eager-loaded byget_thread). That's the data the history view was missing.Frontend
ConsensusReportcomponent: confidence/rigor meters, Copy/Export at the top, the executive overview leading with the full decision tucked into a "Full Decision" disclosure, and dissent.ConsensusComplete(live) andThreadDetail(history) both delegate to it — identical rendering. Export stays per-view via anexportSlot(store-based dropdown for live, sharedExportMenufor stored), since the live view doesn't yet have aThreadDetailobject.Result
Testing
1677 Python tests pass (2 new for the overview field), 204 Vitest pass, mypy clean (63 files), ruff clean, build clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EkrekgzMAQko92UkjnXhHL