Commit Graph

96 Commits (v0.26.0)

Author SHA1 Message Date
Johnny 5d677828a6 refactor: remove NSFW content settings from instance configuration 5 months ago
Steven d0c3908168 refactor: remove deprecated Sessions and AccessTokens settings
- Remove ListSessions and RevokeSession RPC endpoints
- Remove Session message and SessionsSetting from UserSetting
- Remove ACCESS_TOKENS key and AccessTokensSetting
- Update references to use RefreshTokensUserSetting with its own ClientInfo
- Remove UserSessionsSection frontend component
- Clean up user store to remove session and access token settings
- Regenerate protobuf files

The system now uses:
- REFRESH_TOKENS for session management with sliding expiration
- PERSONAL_ACCESS_TOKENS for long-lived API tokens
5 months ago
Johnny 7932f6d0d0
refactor: user auth improvements (#5360) 5 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>
6 months ago
Johnny bb7e0cdb79 refactor: remove enable link preview setting
- Remove enable_link_preview field from proto definitions
- Remove setting UI from MemoRelatedSettings component
- Remove translations from all 33 locale files
- Regenerate proto files

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

Co-Authored-By: Claude <noreply@anthropic.com>
6 months ago
Johnny 5fb6f8eccf refactor: remove legacy disable markdown shortcuts setting
- Remove disable_markdown_shortcuts field from proto definitions
- Remove setting UI from MemoRelatedSettings component
- Enable markdown shortcuts permanently in MemoEditor
- Remove translations from all 32 locale files
- Fix TypeScript error in useMemoSave hook by using typed translation function

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

Co-Authored-By: Claude <noreply@anthropic.com>
6 months ago
Steven 4c1d1c70d1 refactor: rename workspace to instance throughout codebase
Remove work-related terminology by renaming "workspace" to "instance"
across the entire application. This change better reflects that Memos
is a self-hosted tool suitable for personal and non-work use cases.

Breaking Changes:
- API endpoints: /api/v1/workspace/* → /api/v1/instance/*
- gRPC service: WorkspaceService → InstanceService
- Proto types: WorkspaceSetting → InstanceSetting
- Frontend translation keys: workspace-section → instance-section

Backend Changes:
- Renamed proto definitions and regenerated code
- Updated all store layer methods and database drivers
- Renamed service implementations and API handlers
- Updated cache from workspaceSettingCache to instanceSettingCache

Frontend Changes:
- Renamed service client: workspaceServiceClient → instanceServiceClient
- Updated all React components and state management
- Refactored stores: workspace.ts → instance.ts
- Updated all 32 locale translation files

All tests pass and both backend and frontend build successfully.

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

Co-Authored-By: Claude <noreply@anthropic.com>
7 months ago
Steven bc1550e926 refactor(api): migrate inbox functionality to user notifications
- Remove standalone InboxService and move functionality to UserService
- Rename inbox to user notifications for better API consistency
- Add ListUserNotifications, UpdateUserNotification, DeleteUserNotification methods
- Update frontend components to use new notification endpoints
- Update store layer to support new notification model

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

Co-Authored-By: Claude <noreply@anthropic.com>
7 months ago
Claude 7eec424274 chore: remove references handling from markdown extraction 7 months ago
Johnny e93f3cbb8b refactor: unify theme and apperance 10 months ago
Steven 1fcafd807e chore: enable memo comments by default 10 months ago
Steven 533591af2b chore: theme in user setting 11 months ago
Johnny 1b3083b216
feat: themes (#4824) 11 months ago
johnnyjoy 1fffc41f79 feat: sliding expiration for user sessions 11 months ago
johnnyjoy d6a75bba4c refactor: webhook service 11 months ago
Johnny e6e460493c refactor: general user setting 11 months ago
Steven 83febf9928 chore: clean resource definition 11 months ago
Johnny 4e3a4e36f6 feat: implement user sessions 11 months ago
Johnny 741fe35c2a refactor: rename session methods in auth service 11 months ago
Steven a4920d464b refactor: attachment service part2 12 months ago
johnnyjoy ee99afd7a4 chore: enable location by default 1 year ago
johnnyjoy eb33a604b2 feat: support mapping avatar url from oauth2 1 year ago
Johnny 16a0872972 chore: enable auto compact by default 1 year ago
MHZ 174b8b048a
feat: support blur processing for NSFW content with customizable NSFW tags (#4407) 1 year ago
Johnny 6abd51fe5a chore: update resource storage type comment 1 year ago
Johnny 0a429a899f chore: remove version update activity 1 year ago
johnnyjoy 13f6fa7b37 refactor: remove default visibility in workspace setting 1 year ago
johnnyjoy 14c72fa7df feat: implement shortcuts 1 year ago
johnnyjoy d605faeffa refactor: move pinned to memo 1 year ago
johnnyjoy 2058a8ab7b chore: move references to memo property 1 year ago
Comix d9a92b2ef8
feat: support path style of s3 url (#4304)
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
1 year ago
Johnny e913271f15
refactor: move tags from property to payload (#4229)
* refactor: move tags from property to payload

* chore: fix tests

* chore: drop memo tags

* chore: update

---------

Co-authored-by: Steven <stevenlgtm@gmail.com>
1 year ago
johnnyjoy 2a1c0bba6c chore: remove unused `reaction.proto` 2 years ago
d0zingcat e5cb2037e4
feat: allow to disable markdown shortcuts (#4025)
* add settting to disable markdown keymap

Signed-off-by: d0zingcat <leewtang@gmail.com>

* rename disable markdown shortcuts

Signed-off-by: d0zingcat <leewtang@gmail.com>

* fix lint

Signed-off-by: d0zingcat <leewtang@gmail.com>

---------

Signed-off-by: d0zingcat <leewtang@gmail.com>
2 years ago
Steven e527b6a878 feat: move reaction type to setting 2 years ago
wjsoj 1f9d657065
feat: support set global Default memo visibility (#3989)
* feat: support set global Default memo visibility

* feat: Move to WorkspaceMemoRelatedSetting

* fix: goimports check failure

* chore: change item name to default_visibility

* fix: goimports check failure
2 years ago
Steven cf4e660f41 chore: add memo location setting 2 years ago
Steven 63989ab365 feat: add location to memo payload 2 years ago
johnnyjoy 1da0752922 chore: add schema version to workspace setting 2 years ago
Zisu Zhang b787d1c7b6
feat: support disable change username and nickname (#3911)
* feat: support disable change username and nickname

* chore: update UX
2 years ago
Steven bb86482b71 chore: tweak setting name 2 years ago
Steven 1167df29d8 feat: add security related settings 2 years ago
Steven f4d6675363 chore: add enable memo comment setting 2 years ago
Steven 3c5aa41a78 feat: implement week start day setting 2 years ago
Johnny 7c9e54afbd
chore: update disallow public visibility setting name (#3687) 2 years ago
Johnny 4d2b953e23
chore: add enable link preview setting to memo related settings (#3647) 2 years ago
Johnny 736637a362
feat: add public flag instead of system setting to enable signup (#3589) 2 years ago
Steven 797f5a123c feat: add `HasIncompleteTasks` to memo property 2 years ago
Steven b215426623 chore: update general setting 2 years ago
Steven 0f4b7c5f4a feat: add more memo settings 2 years ago