Repository navigation
feat(ui): AI meeting summary — streaming, cancellable, notes-safe (MEET-6) - #372
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Problem
A finished meeting had a transcript but no summary; the owner wants Notion-style AI summaries without ever risking their manual notes. Board: MEET-6.
Solution
Summary section in the meeting block using the EXISTING aiGenerate SSE path (zero new server/provider surface): explicit offer on stop (never auto-runs — one click, it costs money), streaming render with a live Cancel button, one-transaction persist of only the
summaryprop — transcript and manual-notes children untouched on every path (success/cancel/error, asserted by doc-level equality). Prompt: 2–3 sentence summary · decisions · action items, with anti-injection framing and the existing 4000-char budget. Degradation: no-AI / unconfigured / paid-gate 403 (summary-specific copy) / mid-stream error all leave the prior summary intact. i18n ×4. Stacked on #369 — merge after it (before/with #370 is fine; independent of it).Key files:
packages/ui/src/blockeditor/{MeetingSummary.tssx → MeetingSummary.tsx,MeetingBlockView.tsx,exportBlocks.ts},__tests__/meetingSummary.test.tsx(21 tests),lib/aiBridge.ts,components/AiBridgeHost.tsx, i18n ×4.Before / After
Visual change is a small new section in the existing block chrome; captures for the block as a whole live in #369 — incremental UI here is text controls (Devon gate cleared on implementation + fix round).
Test procedure
VITEST_MAX_WORKERS=1 pnpm verifygreen. Targeted:pnpm --filter @book.dev/ui exec vitest run src/blockeditor/__tests__/meetingSummary.test.tsx.Operational notes
No env/migration/deps. Uses whatever AI provider is configured (works with MEET-3's local whisper for transcription + any chat provider for summaries; summary gen is paid-gated for guests like all generate calls).
Verify: green serialized. Reviews cleared: design (Devon — BLOCK→CLEAR after Cancel/copy/export fixes), code (Quinn). Final HEAD 33a5586.
🤖 Generated with Claude Code