Commit Graph

16 Commits (f0c4489468e5a2ffcfaceba69bba6d7f8684e4b9)

Author SHA1 Message Date
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 243ecf14b0 refactor(api): remove DeleteMemoTag and RenameMemoTag endpoints
BREAKING CHANGE: Removed DeleteMemoTag and RenameMemoTag API endpoints
for better API consistency. Tags should now be managed by updating memo
content directly via UpdateMemo endpoint.

Backend changes:
- Remove RenameMemoTag and DeleteMemoTag RPC methods from proto
- Remove backend implementations in memo_service.go
- Regenerate protocol buffers (Go, TypeScript, OpenAPI)

Frontend changes:
- Remove RenameTagDialog component
- Simplify TagsSection to remove rename/delete functionality
- Improve tag styling with active state highlighting
- Add smooth transitions and better hover interactions
- Polish TagTree component for consistency
- Tags now only support click-to-filter (no inline editing)

Style improvements:
- Active tags highlighted with primary color and font-medium
- Consistent hover states across flat and tree views
- Better spacing and visual hierarchy
- Improved empty state styling

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

Co-Authored-By: Claude <noreply@anthropic.com>
8 months ago
Steven bb5809cae4 refactor: attachment service 1 year ago
johnnyjoy 5e770dda52 refactor: memo name 1 year ago
Steven cfe1765067 chore: tweak user statistics view 2 years ago
Steven d11e7a3a9a chore: remove duplicated requests 2 years ago
Steven a8ea28066e chore: retire export memos 2 years ago
Steven cc91b1e512 chore: buf generate 2 years ago
Steven 139090fb8f chore: fix calendar timestamps 2 years ago
Steven 44e56844f5 chore: tweak search resources 2 years ago
Steven 1ab2c89408 feat(api): implement get memo by uid 2 years ago
Steven 797f5a123c feat: add `HasIncompleteTasks` to memo property 2 years ago
Steven e0600388b2 chore: implement memo property endpoint 2 years ago
Steven c561362d62 feat: implement memo property 2 years ago
Steven d0655ece53 refactor: update memo tags 2 years ago
Steven 1b291422e7 refactor: api version 2 years ago