Skip to content

feat(ai): paste a meeting transcript to power augmented notes#102

Merged
pratikbodkhe merged 1 commit into
mainfrom
feat/ai-transcript-paste
Jun 6, 2026
Merged

feat(ai): paste a meeting transcript to power augmented notes#102
pratikbodkhe merged 1 commit into
mainfrom
feat/ai-transcript-paste

Conversation

@pratikbodkhe

Copy link
Copy Markdown
Contributor

What

PR C of the AI 80:20 program. Adds a transcript paste entry point, wiring the previously dead transcript_raw column so AI notes/suggestions can work from a real transcript, not just typed notes.

Why

The Granola audit found transcript_raw had no write path: enhance-notes only ever reworded sparse typed notes. This is the cheapest step toward Granola-style augmented notes without building capture/STT (deferred, as agreed).

Changes

  • useUpdateMeetingTranscript mutation (use-meetings.ts), mirroring the notes mutation; writes only transcript_raw, debounced.
  • Transcript section (collapsible) in the completed meeting view, below notes. Paste -> debounced auto-save -> persisted.
  • Disable guards flipped: "Enhance notes" and "Review AI suggestions" now enable on notes OR transcript, so a transcript alone is enough to generate structured notes (the route guard already allowed this).
  • Tests: contract assertions (schema/type/UI/mutation) and e2e (transcript persists to DB; transcript-only enhancement enables and opens the preview).

No migration

transcript_raw text has existed since 00001_initial_schema.sql. No DDL change.

Verification (local)

  • test:ai-contracts: pass; pnpm build (typecheck): pass; eslint on changed files: clean (only pre-existing set-state-in-effect warnings, matching the existing notes sync effect).
  • Local e2e not runnable here (no Docker); will verify all 16 shards report success before merging.

Program status

This completes the agreed non-STT 80:20: reliability (#99), carry-over intelligence (#100/#101), transcript paste (this). Next: Edge Functions infra PR, then STT last.

transcript_raw existed since the initial schema but had no write path, so
enhance-notes only ever reworded typed notes. Add a Transcript section in the
completed meeting view that saves pasted transcripts via a new
useUpdateMeetingTranscript mutation (debounced, like notes).

Enhance-notes and suggestions now enable on a transcript alone (guards check
notes OR transcript), so a pasted transcript with no notes is enough to
generate structured AI notes.

Contract assertions for the schema/type/UI and e2e coverage (transcript
persists, transcript-only enhancement) added.
@pratikbodkhe pratikbodkhe merged commit 1cef5da into main Jun 6, 2026
18 checks passed
@pratikbodkhe pratikbodkhe deleted the feat/ai-transcript-paste branch June 6, 2026 02:54
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.

1 participant