Commit Graph

185 Commits (e17cd163c6c37726f8397c8f426d585b540c9562)

Author SHA1 Message Date
boojack 21d31e3609
fix(security): implement security review recommendations (#5228)
Co-authored-by: Claude <noreply@anthropic.com>
2 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>
2 months ago
Steven 5e47f25bf5 feat(store): add hierarchical tag filtering support
Tag filters now support hierarchical matching where searching for a tag (e.g., "book") will match both the exact tag and any tags with that prefix (e.g., "book/fiction", "book/non-fiction"). This applies across all database backends (SQLite, MySQL, PostgreSQL) with corresponding test updates.

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

Co-Authored-By: Claude <noreply@anthropic.com>
3 months ago
Claude e35f16306e feat: add id as final tie-breaker in ListMemos 3 months ago
Steven b4ea7d843f feat: enhance memo sorting functionality to support multiple fields 3 months ago
Steven 95de5cc700 refactor: update migration history methods 3 months ago
Copilot b685ffacdf refactor: memo filter
- Updated memo and reaction filtering logic to use a unified engine for compiling filter expressions into SQL statements.
- Removed redundant filter parsing and conversion code from ListMemoRelations, ListReactions, and ListAttachments methods.
- Introduced IDList and UIDList fields in FindMemo and FindReaction structs to support filtering by multiple IDs.
- Removed old filter test files for reactions and attachments, as the filtering logic has been centralized.
- Updated tests for memo filtering to reflect the new SQL statement compilation approach.
- Ensured that unsupported user filters return an error in ListUsers method.
3 months ago
Steven c3d4f8e9d1 feat: implement user-specific SQL converter for filtering in user service 4 months ago
varsnotwars 4eb5b67baf
feat: attachments by id (#5008) 5 months ago
varsnotwars f4bdfa28a0
feat: filter/method for reactions by content_id (#4969) 5 months ago
johnnyjoy 506b477d50 fix: get user by username 6 months ago
varsnotwars fa2fa8a5d7
refactor: remove call to db for parent memo name (#4947) 6 months ago
johnnyjoy ed23cbc011 refactor: memo filter 6 months ago
Steven 1a75d19a89 fix: memo filter for sqlite 6 months ago
johnnyjoy 7098721617 chore: fix linter 6 months ago
johnnyjoy e24f92b719 fix: tests 6 months ago
johnnyjoy b55904a428 feat: support more filter factors 6 months ago
johnnyjoy 6d9770b9c8 chore: move filter to filters 6 months ago
johnnyjoy 7481fe10bf chore: remove order by pinned 6 months ago
johnnyjoy d6a75bba4c refactor: webhook service 7 months ago
Johnny e6e460493c refactor: general user setting 7 months ago
Johnny 9b15936873 refactor: clean unused fields 7 months ago
Johnny 778a5eb184 refactor: memo filter 7 months ago
Steven a4920d464b refactor: attachment service part2 7 months ago
Johnny 3fd29f6493 refactor: schema migrator 7 months ago
Steven f1b365f928 refactor: clean packages 8 months ago
Steven de3e55c2e6 feat: support `now()` time functions 8 months ago
Steven b89d8f5342 feat: implement hasTaskList filter 8 months ago
johnnyjoy f9e07a2245 feat: support update user's role 8 months ago
Steven 1f79ee575b fix: create user with avatar url for sqlite 8 months ago
Johnny 08f9b18ced
fix: list memo relations 9 months ago
Johnny 34ab88348e chore: sort by pinned 10 months ago
Johnny e3a4f49c5c feat: implement creator_id factor 10 months ago
Johnny 925e97882e feat: support pinned factor 10 months ago
johnnyjoy 54a48b58d7 chore: remove random field 12 months ago
johnnyjoy 07336f0392 chore: update condition concat check 12 months ago
johnnyjoy a7ca63434b feat: validate shortcut's filter 12 months ago
johnnyjoy ff04fdc459 feat: support more operators in filter 12 months ago
johnnyjoy f25acfe8e2 chore: fix linter 12 months ago
johnnyjoy e0e735d14d feat: support memo filter for mysql and postgres 12 months ago
johnnyjoy 364f005ee5 fix: filter 12 months ago
johnnyjoy 3a085f3639 chore: fix filter tests 12 months ago
johnnyjoy 8e586d348e chore: fix tag filter 12 months ago
johnnyjoy b9a0c56163 feat: support more factors in filter 12 months ago
johnnyjoy 2a392b8f8d chore: fix import order 12 months ago
johnnyjoy f31800456e chore: fix import order 12 months ago
johnnyjoy 58a867e4da fix: linter warning 12 months ago
johnnyjoy 2d731c5cc5 feat: memo filter for sqlite 12 months ago
johnnyjoy d605faeffa refactor: move pinned to memo 12 months ago
johnnyjoy 2058a8ab7b chore: move references to memo property 12 months ago