Skip to content

Report Generation + Resizable + API Changes#59

Merged
StarDylan merged 14 commits into
mainfrom
report-generation
Mar 11, 2026
Merged

Report Generation + Resizable + API Changes#59
StarDylan merged 14 commits into
mainfrom
report-generation

Conversation

@StarDylan

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/report endpoint 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, and time_tag_changed fields.

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.

Comment thread backend/src/interview_helper/context_manager/database.py
Comment thread backend/src/main.py
Comment thread frontend/src/components/AudioSender.tsx
Comment thread backend/alembic/versions/869cfd49ebd5_initial.py
Comment thread frontend/src/components/audio-sender/DesktopLayout.tsx Outdated
Comment thread backend/src/main.py
Comment thread frontend/src/lib/message.ts
Comment thread frontend/src/components/audio-sender/DesktopLayout.tsx
Comment thread backend/src/interview_helper/context_manager/database.py
Comment thread backend/src/interview_helper/downloads/get_report.py
StarDylan and others added 6 commits March 11, 2026 14:08
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
@StarDylan StarDylan merged commit bd028eb into main Mar 11, 2026
2 checks passed
@StarDylan StarDylan deleted the report-generation branch March 11, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants