Add lightweight toast notification infrastructure that surfaces repeated errors to users while avoiding alert fatigue. Components: - ToastContainer: Renders toast notifications with auto-dismiss - showToast(): Singleton function to display messages from anywhere - trackError(): Counts errors by key, surfaces toast after threshold Error tracking strategy: - Errors logged immediately (console.error) - Toast shown only after 3+ occurrences within 30-second window - Prevents spam from transient network issues - Reset counter on success (clearErrorCount) Toast styling: - Fixed position bottom-right with z-index 100 - Type-aware colors (error=red, success=green, info=yellow) - Manual dismiss button with auto-dismiss after 5 seconds - Backdrop blur and slide-up animation This prepares the dashboard to gracefully handle API failures without overwhelming users with error popups for transient issues. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3.8 KiB
3.8 KiB