You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User uploads image
→ Livewire validates file
→ Service stores to disk
→ Service calls Google Vision API
→ Service saves transcription to DB
→ UI updates with result
2. Correction Flow
User selects transcription
→ UI shows document + text side-by-side
→ User edits text
→ Service saves correction to DB
→ Service updates transcription
→ Service logs pattern for learning
→ UI shows success message
3. Statistics Flow
UI requests stats
→ Service executes single optimized query
→ Returns aggregated data:
• Total transcriptions
• Completed count
• Pending count
• Failed count
• Average confidence
• Total corrections
→ UI displays in dashboard cards
Key Design Decisions
1. Team-Scoped Access
All transcriptions belong to a team
Users only see their team's documents
Enforced at service and component level
2. Dual Transcription Storage
raw_transcription: Original AI output
corrected_transcription: User-edited version
Allows tracking improvements and reverting if needed