Commit Graph

3 Commits

Author SHA1 Message Date
Pancake
8d25d121ad fix: ui, security and web-search 2026-01-07 10:53:01 +08:00
Tushar Khatri
2218a743ed refactor: clean up theme system per code review
- Remove generation artifact (IMPLEMENTATION_COMPLETE.md)
- Consolidate duplicate theme checks in settings page
- Simplify theme precedence logic (localStorage > backend)
- Remove all console.log statements from theme code
- Add debounced auto-save (500ms) to prevent API spam
- Centralize theme API with subscriptions and constants
- Improve error handling (silent fails for localStorage)
- Guard all localStorage access for SSR compatibility

Addresses all feedback from @scrrlt review:
- No more redundant theme logic
- Single source of truth for theme operations
- Proper error handling without console noise
- Debounced network calls for better performance
2026-01-06 11:57:02 +05:30
Tushar Khatri
15f928fd68 feat: implement robust theme persistence with localStorage and SSR safety 2026-01-06 00:40:14 +05:30