Commit Graph

11 Commits (9e04049632e63f1cf53535773f170c1aa5af7168)

Author SHA1 Message Date
memoclaw 92d937b1aa
feat: replace auto-increment ID with UID for identity provider resource names (#5687)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
4 months ago
Johnny 7932f6d0d0
refactor: user auth improvements (#5360) 6 months ago
Steven 81da20c905 refactor: simplify theme/locale to user preferences and improve initialization
Remove theme and locale from instance settings to eliminate duplication and
simplify the codebase. These are user-specific preferences and should only
exist in user settings, not instance-wide settings.

Backend changes:
- Remove theme from InstanceGeneralSetting proto
- Remove locale from InstanceCustomProfile proto
- Update instance service converters to remove theme/locale handling
- Simplify RSS feed to use static locale

Frontend changes:
- Remove theme/locale from instanceStore state
- Create unified initialization flow with clear fallback priority:
  * Theme: user setting → localStorage → system preference
  * Locale: user setting → browser language
- Add applyUserPreferences() to centralize theme/locale application
- Simplify App.tsx by removing redundant state synchronization
- Update all components to use new helper functions:
  * getThemeWithFallback() for theme resolution
  * getLocaleWithFallback() for locale resolution
- Remove theme/locale selectors from instance profile dialog

Theme utilities refactor:
- Organize code into clear sections with JSDoc comments
- Extract localStorage operations into getStoredTheme/setStoredTheme helpers
- Split DOM manipulation into focused functions
- Improve type safety with Theme and ResolvedTheme types
- Reduce code duplication and improve maintainability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
7 months ago
Steven 42d1650c6d chore: tweak auth service 1 year ago
Steven 5821bb7a65 chore: update auth service 1 year ago
Johnny 741fe35c2a refactor: rename session methods in auth service 1 year ago
Steven d71fd2f84a refactor: auth service 1 year ago
johnnyjoy ca79990679 refactor: merge sign in requests 1 year ago
Steven cc91b1e512 chore: buf generate 2 years ago
Steven 797f5a123c feat: add `HasIncompleteTasks` to memo property 2 years ago
Steven 1b291422e7 refactor: api version 2 years ago