Commit Graph

104 Commits (dc7ec8a8ad899576da16a3d6d4a335b30fb8d5dc)

Author SHA1 Message Date
Johnny dc7ec8a8ad feat: allow setting custom timestamps when creating memos and comments
Allow API users to set custom create_time, update_time, and display_time
when creating memos and comments. This enables importing historical data
with accurate timestamps.

Changes:
- Update proto definitions: change create_time and update_time from
  OUTPUT_ONLY to OPTIONAL to allow setting on creation
- Modify CreateMemo service to handle custom timestamps from request
- Update database drivers (SQLite, MySQL, PostgreSQL) to support
  inserting custom timestamps when provided
- Add comprehensive test coverage for custom timestamp functionality
- Maintain backward compatibility: auto-generated timestamps still
  work when custom values are not provided
- Fix golangci-lint issues in plugin/filter (godot and revive)

Fixes #5483
4 months ago
Johnny f58533003b fix: clean up memo_relation and attachments when deleting memo
Fixes #5472

Move cleanup logic to store.DeleteMemo to ensure data consistency:
- Delete memo_relation records where memo is source (MemoID) or target (RelatedMemoID)
- Delete attachments linked to the memo (including S3/local files)

This prevents stale COMMENT records in memo_relation after deleting
a memo that has comments.
5 months ago
Faizaan pochi da2dd80e2f
fix: return Unauthenticated instead of PermissionDenied on token expiration (#5454) 5 months ago
Johnny 7932f6d0d0
refactor: user auth improvements (#5360) 5 months ago
boojack 13fea64d15
fix(api): implement custom memo ID support in CreateMemo (#5234)
Co-authored-by: Claude <noreply@anthropic.com>
7 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 f65633e8a9 chore: fix linter issues in backend and frontend
- Remove extra blank line in memo_service.go (goimports)
- Remove invalid fields from CreateMemoRequest call (validateOnly, requestId)
- Clean up unnecessary comments

🤖 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>
7 months ago
Claude 6cb96ef65e chore: add missing punctuation in comments 7 months ago
Claude 739fd2cde6 refactor: update markdown parser
- Removed the `nodes` field from the `Memo` interface in `memo_service.ts`.
- Updated the `createBaseMemo` function and the `Memo` message functions to reflect the removal of `nodes`.
- Cleaned up the serialization and deserialization logic accordingly.

chore: remove code-inspector-plugin from Vite configuration

- Deleted the `codeInspectorPlugin` from the Vite configuration in `vite.config.mts`.
- Simplified the plugins array to include only `react` and `tailwindcss`.
7 months ago
Steven b4ea7d843f feat: enhance memo sorting functionality to support multiple fields 7 months ago
Johnny bc7decf642 refactor: remove unused constants 8 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.
8 months ago
Johnny efe6013c36 fix: add user authentication checks 8 months ago
Steven 5ad2038b1a feat: update gomark dependency and refactor markdown parsing logic 9 months ago
varsnotwars 4eb5b67baf
feat: attachments by id (#5008) 10 months ago
varsnotwars a9508b2546
chore: simplify convert reaction (#5001) 10 months ago
Neo c76ffb0fe4
chore: adds a check to only query reactions when there are actual memos (#4984) 10 months ago
varsnotwars f4bdfa28a0
feat: filter/method for reactions by content_id (#4969) 10 months ago
johnnyjoy ed23cbc011 refactor: memo filter 10 months ago
Steven 1a75d19a89 fix: memo filter for sqlite 10 months ago
johnnyjoy 6e45e9f8b6 refactor: deprecate old filter 10 months ago
johnnyjoy 6d9770b9c8 chore: move filter to filters 10 months ago
johnnyjoy 7481fe10bf chore: remove order by pinned 10 months ago
johnnyjoy 976bd332fe chore: fix linter 11 months ago
johnnyjoy d6a75bba4c refactor: webhook service 11 months ago
Steven 9972a77d9e refactor: memo service 12 months ago
Steven a4920d464b refactor: attachment service part2 12 months ago
Steven bb5809cae4 refactor: attachment service 12 months ago
Steven f12d7ae8bc chore: add asynchronous webhook dispatch 1 year ago
Steven a6be658f42 fix: list memo comments 1 year ago
Steven f1f0253e8d fix: typo 1 year ago
Johnny 34ab88348e chore: sort by pinned 1 year ago
Johnny e3a4f49c5c feat: implement creator_id factor 1 year ago
Johnny 925e97882e feat: support pinned factor 1 year ago
johnnyjoy 81e8aed6ab chore: move part of memo filter 1 year ago
johnnyjoy fafd6d81c7 chore: fix linter warning 1 year ago
johnnyjoy be5e24c0eb refactor: renovate list memos endpoint 1 year ago
johnnyjoy 97d12db3d5 refactor: renovate create memo 1 year ago
johnnyjoy 98aa0b73c5 refactor: retire memo uid 1 year ago
johnnyjoy 5e770dda52 refactor: memo name 1 year ago
johnnyjoy d605faeffa refactor: move pinned to memo 1 year ago
Steven edc3f1d9d9 chore: retire unused memo view 1 year ago
Steven 5ff8ab9a61 chore: polish creator definition 1 year ago
johnnyjoy 2a861ea430 refactor: tweak resource state in api 1 year ago
johnnyjoy 1caaef1c5b chore: fix memo compact mode 1 year ago
johnnyjoy 3220adbff9 refactor: split memo service 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
Steven cfe1765067 chore: tweak user statistics view 2 years ago
Steven 14712b42fa chore: add pagination to list inboxes 2 years ago