mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-12 20:06:57 +02:00
loadNotes() crashed entirely if IndexedDB was unavailable because getAllNotes() was called outside try/catch. Non-OK API responses (401, 500) were silently ignored across loadNotes, createNote, and sync operations — users saw empty data with no feedback. Changes: - Wrap all IDB calls in try/catch so the app works without IndexedDB - Show toast on non-OK API responses in loadNotes and createNote - Redirect to /login on 401 responses - Make sync pull/push resilient to IDB unavailability Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>