Report Generation + Resizable + API Changes#59
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a unified PDF report download flow, introduces resizable desktop transcript/insights layout, and refactors AI analysis “tag” actions into more explicit WebSocket message types while adding category metadata and timestamps across the stack.
Changes:
- Add backend PDF report generation +
/download/reportendpoint and frontend download UI/api. - Add resizable insights panel in the desktop layout and adjust insight ordering behavior.
- Refactor AI analysis actions (star/unstar/dismiss/undo) into explicit WS messages; add
category_code,asked_at, andtime_tag_changedfields.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/lib/message.ts | Adds new WS message types and extends AnalysisRow with category/timestamps. |
| frontend/src/lib/api.ts | Adds downloadReport() helper for report endpoint. |
| frontend/src/components/audio-sender/TranscriptView.tsx | Adds “Download Report” menu option. |
| frontend/src/components/audio-sender/InsightsPanel.tsx | Sorts starred/dismissed insights by time_tag_changed; removes reverse rendering. |
| frontend/src/components/audio-sender/DesktopLayout.tsx | Implements draggable splitter for resizable insights panel. |
| frontend/src/components/AudioSender.tsx | Sends new WS action messages and updates local state from tag updates. |
| backend/src/main.py | Handles new WS action messages; adds /download/report; changes asked-time formatting in questions download. |
| backend/src/long_run_eval.py | Passes category_code into add_ai_analysis. |
| backend/src/interview_helper/tests/test_report_generation.py | Adds tests for report data building and PDF generation. |
| backend/src/interview_helper/downloads/get_report.py | Implements report data construction and PDF rendering via ReportLab. |
| backend/src/interview_helper/context_manager/types.py | Extends AIQuestion with category_code. |
| backend/src/interview_helper/context_manager/tests/test_database.py | Adds tests for category normalization and AI analysis action transitions. |
| backend/src/interview_helper/context_manager/session_context_manager.py | Passes category_code into add_ai_analysis. |
| backend/src/interview_helper/context_manager/question_categories.py | Introduces category definitions + normalization helper. |
| backend/src/interview_helper/context_manager/models.py | Adds category_code/asked_at columns and makes timestamps timezone-aware. |
| backend/src/interview_helper/context_manager/messages.py | Adds new WS action message models; includes ErrorMessage. |
| backend/src/interview_helper/context_manager/database.py | Adds category/timestamps to AnalysisRow; introduces explicit tag-transition functions. |
| backend/src/interview_helper/config.py | Changes AI transcript processing cadence to 4 minutes. |
| backend/src/interview_helper/ai_analysis/ai_analysis.py | Prompts LLM for category codes and normalizes them. |
| backend/alembic/versions/869cfd49ebd5_initial.py | Updates initial schema to include new columns and timezone-aware timestamps. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Added a function to fix the datetime from the database
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.
No description provided.