v1.46.1
Fix
Resolve scripture pill duplication and count issues with defense-in-depth approach
- Add unique constraint to NoteScriptureReferences table (noteId, scriptureNoteId)
- Add in-memory deduplication in processScriptureReferences to prevent duplicate processing
- Improve error handling to surface real errors while gracefully handling unique constraint violations
- Add deduplication logic in dashboard-data.ts when building scripture references map
- Add defensive deduplication in CardNote component using React.useMemo
- Create admin API endpoint to cleanup existing duplicates before migration
