-
Notifications
You must be signed in to change notification settings - Fork 2
feat: real-time transcript streaming with TanStack Query #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
lucasheriques
wants to merge
4
commits into
graphite-base/67
from
feat/live-transcripts-tanstack-query
Closed
feat: real-time transcript streaming with TanStack Query #67
lucasheriques
wants to merge
4
commits into
graphite-base/67
from
feat/live-transcripts-tanstack-query
Conversation
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
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
5ffb727 to
b5f4955
Compare
466d3b3 to
8f69b83
Compare
b5f4955 to
bf25859
Compare
8f69b83 to
a36a57c
Compare
bf25859 to
afc6e0c
Compare
a36a57c to
a591531
Compare
afc6e0c to
3b0c6a9
Compare
320cdde to
3bd4259
Compare
3b0c6a9 to
ce38011
Compare
Refactored Notetaker from Dexie local-first to TanStack Query backend-first architecture with smart caching and real-time transcript streaming. **Architecture Changes:** - Removed Dexie (IndexedDB) dependency - Migrated to TanStack Query for server state management - Backend-first with PostHog as source of truth - Local buffering with batched uploads (10 segments / 10s) **Key Features:** - Real-time transcript segments from Recall.ai AssemblyAI stream - Smart polling: 2s during active recording, 10s for ready recordings - Local buffer prevents duplicate uploads - Optimistic UI updates with pending upload badge - Automatic query invalidation and cache management - Transcript view limited to 60vh (room for notes/action items) **Query Keys (unique to avoid collision with legacy Recordings):** - notetaker-recordings - notetaker-recording - notetaker-transcript **Files Added:** - src/renderer/features/notetaker/hooks/useRecordings.ts - src/renderer/features/notetaker/hooks/useTranscript.ts - src/renderer/features/notetaker/components/LiveTranscriptView.tsx **Files Removed:** - src/renderer/features/notetaker/stores/notetakerStore.ts - src/renderer/services/db.ts (Dexie schema) - src/renderer/services/transcriptSync.ts **Dependencies Removed:** - dexie - dexie-react-hooks
…colors - More compact layout: removed Cards, reduced spacing - Speaker names only show when speaker changes (not repeated) - Consistent color-coding for each speaker - Alternating row backgrounds for better scanning - Timestamp inline with text for better use of space - 100px fixed-width speaker column for alignment
Removed refetchInterval from useTranscript query since we get real-time updates via IPC events from Recall.ai. Query still fetches once on mount for historical segments but doesn't continuously poll the backend.
3bd4259 to
7d86d35
Compare
ce38011 to
ab0ce3b
Compare
This was referenced Oct 29, 2025
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.

Summary
Refactored Notetaker from Dexie local-first to TanStack Query backend-first architecture with smart caching and real-time transcript streaming.
This PR builds on #1 (Recall SDK integration) to add live transcript display with intelligent backend sync.
Architecture Changes
Key Features
Query Keys
To avoid collision with legacy Recordings feature:
notetaker-recordings- List of all recordingsnotetaker-recording- Individual recording detailsnotetaker-transcript- Transcript segments for a recordingFiles Added
src/renderer/features/notetaker/hooks/useRecordings.ts- TanStack Query hooks for recordingssrc/renderer/features/notetaker/hooks/useTranscript.ts- Local buffering + batched upload logicsrc/renderer/features/notetaker/components/LiveTranscriptView.tsx- Real-time transcript UIFiles Removed
src/renderer/features/notetaker/stores/notetakerStore.ts- Replaced by TanStack Querysrc/renderer/services/db.ts- Dexie schema (no longer needed)src/renderer/services/transcriptSync.ts- Integrated into hooksDependencies Removed
dexiedexie-react-hooksData Flow
Test Plan