Commit Graph

33 Commits (f3f059b2f78666e3532c2f7639f7307f1756bcf8)

Author SHA1 Message Date
boojack f3f059b2f7 chore: add batch get settings API 1 month ago
boojack 9c5c604944 feat: add link metadata endpoints 2 months ago
memoclaw 24fc8ab8ca
feat(mentions): add memo mention parsing, notifications, and rendering (#5811)
Co-authored-by: memoclaw <265580040+memoclaw@users.noreply.github.com>
2 months ago
memoclaw 3f3133d6e2
feat(memo): add share links for private memos (#5742)
Co-authored-by: memoclaw <265580040+memoclaw@users.noreply.github.com>
3 months ago
Johnny 7053edae27 fix: allow guests to view public memo comments
Add ListMemoComments to public endpoints whitelist so unauthenticated
users can see public comments. The service layer already filters
comments by visibility (only PUBLIC for guests).

Fixes #5471
5 months ago
Johnny 7932f6d0d0
refactor: user auth improvements (#5360) 6 months ago
Steven 6926764b91 fix: allow unauthenticated CreateUser for first user registration
Add CreateUser to PublicMethods ACL whitelist to fix "authentication required"
error during first-time setup. The CreateUser method already has proper security
logic that automatically assigns HOST role to the first user and enforces
DisallowUserRegistration setting for subsequent users.

Fixes #5352

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
6 months ago
Johnny 09afa579e4 chore: implement session sliding expiration and JWT authentication
- Added UpdateSessionLastAccessed method to update session access time.
- Enhanced Authenticate method to support both session cookie and JWT token authentication.
- Introduced AuthResult struct to encapsulate authentication results.
- Added SetUserInContext function to simplify context management for authenticated users.

refactor(auth): streamline gRPC and HTTP authentication

- Removed gRPC authentication interceptor and replaced it with a unified approach using GatewayAuthMiddleware for HTTP requests.
- Updated Connect interceptors to utilize the new authentication logic.
- Consolidated public and admin-only method checks into service layer for better maintainability.

chore(api): clean up unused code and improve documentation

- Removed deprecated logger interceptor and unused gRPC server code.
- Updated ACL configuration documentation for clarity on public and admin-only methods.
- Enhanced metadata handling in Connect RPC to ensure consistent header access.

fix(server): simplify server startup and shutdown process

- Eliminated cmux dependency for handling HTTP and gRPC traffic.
- Streamlined server initialization and shutdown logic for better performance and readability.
6 months ago
Johnny edd3ced9bf
refactor: migrate to connect-rpc (#5338) 6 months ago
Steven 71d0dbaf41 chore: fix linter 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
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`.
8 months ago
Steven 42d1650c6d chore: tweak auth service 12 months ago
Steven 5821bb7a65 chore: update auth service 12 months ago
Johnny 6e4d1d9100 fix: auth context 12 months ago
Johnny a2bfa82a88 fix: linter 1 year ago
Johnny 741fe35c2a refactor: rename session methods in auth service 1 year ago
Steven d71fd2f84a refactor: auth service 1 year ago
Steven a4920d464b refactor: attachment service part2 1 year ago
Steven 1ea4cc453c refactor: workspace setting service 1 year ago
Steven c9ab03e1a0 refactor: user service 1 year ago
Johnny b897b243e5 feat: dynamic fetch user stats 1 year ago
johnnyjoy be5e24c0eb refactor: renovate list memos endpoint 1 year ago
johnnyjoy 0dcd0904e8 refactor: remove resource uid 1 year ago
johnnyjoy ee96465be0 feat: list user stats 1 year ago
johnnyjoy 34c26a394a feat: implement user stats endpoint 1 year ago
Steven d11e7a3a9a chore: remove duplicated requests 2 years ago
Steven b3b4aa9ddb chore: remove unused code 2 years ago
Steven 17ecfb5cf5 fix: acl config 2 years ago
Steven 9265b8e2bd chore: update tags filter 2 years ago
Steven bb076ce486 chore: update list workspace settings 2 years ago
Steven 144269fbbc chore: fix router 2 years ago
Steven 20dd3e17f7 chore: rename router package 2 years ago