Commit Graph

4160 Commits (main)
 

Author SHA1 Message Date
Johnny 253e79c111 style: remove unnecessary font-weight classes for cleaner UI 20 hours ago
Steven 73c301072b refactor: simplify editor scroll logic
- Extract `scrollToCaret` helper to deduplicate scroll logic
- Unify precise scroll behavior for both manual triggers and auto-scroll
22 hours ago
Steven 4e34ef22bf fix: improve editor auto-scroll and Safari IME handling (#5469)
- Use `textarea-caret` for precise cursor position calculation instead of line approximation
- Update `scrollToCursor` to scroll to the actual cursor position
- Fix Safari double-enter issue with IME in list completion
22 hours ago
Steven 61dbca8dc2 fix: prevent browser cache from serving stale memo data (#5470)
This fixes a critical data loss issue where users editing the same memo
on multiple devices would overwrite each other's changes due to aggressive
browser caching, particularly in Chromium-based browsers and PWAs.

Changes:
- Backend: Add Cache-Control headers to all API responses to prevent
  browser HTTP caching
- Frontend: Force fresh fetch from server when opening memo editor by
  invalidating React Query cache
- Frontend: Reduce memo query staleTime from 60s to 10s for better
  collaborative editing support

Fixes #5470
23 hours ago
Johnny c45a59549a fix: replace os.Exit with panic for clearer error handling 2 days ago
Johnny 69b62cccdb test: optimize store tests performance by reusing docker image and reducing build context 2 days 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.
2 days ago
Johnny 6899c2f66a chore: fix golangci-lint 2 days ago
Johnny 31f634b71a chore: add more tests 2 days ago
Johnny 8f9ff5634c chore: remove redundant icon 2 days ago
Johnny 9a3451b9d1 fix(editor): filter RelationList to only show referencing memos
- Filter out COMMENT type relations, only show REFERENCE type
- When editing a memo, only show relations where current memo is the source
- Pass memoName through EditorMetadata to RelationList for filtering
3 days 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
3 days ago
Faizaan pochi da2dd80e2f
fix: return Unauthenticated instead of PermissionDenied on token expiration (#5454) 6 days ago
Jongho Hong 07eac279d0
chore(i18n): add missing Korean translations (#5456)
Signed-off-by: Jongho Hong <myodan@pm.me>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
6 days ago
Johnny 1e8505bfeb chore: fix tests 6 days ago
Johnny af6a0726d8 chore: drop redundant indexes in sqlite migration 6 days ago
Johnny 1985205dc2 chore: remove memo_organizer table 6 days ago
Johnny f4cf2e9559 test: improve migration tests stability and maintainability
- Fix linting issues and address testcontainers deprecation in store/test/containers.go
- Extract MemosStartupWaitStrategy for consistent container health checks
- Refactor migrator_test.go to use a consolidated testMigration helper, reducing duplication
- Add store/test/Dockerfile for optimized local test image builds
7 days ago
Om vataliya 013ea52519
fix: apply theme and locale changes immediately on login screen (#5440) (#5442) 7 days ago
Faizaan pochi 7c3fcc297d
fix: allow public memo API access without authentication (#5451) 7 days ago
Johnny 14fb38f375 fix: attachment table name 7 days ago
Johnny c29c1d3e1f fix: seed data 7 days ago
Johnny cc9a214be8 revert: revert system_setting to instance_setting rename changes
Reverts only the system_setting → instance_setting rename related changes from commit d326c71.
Keeps the resource → attachment rename changes intact.

- Reverts table name back to system_setting in all database drivers (MySQL, PostgreSQL, SQLite)
- Removes migration files for the system_setting rename
- Reverts LATEST.sql files to use system_setting table
7 days ago
Johnny e75862de31 chore: fix tests 1 week ago
Johnny 79f1edc9ba chore: bump version 1 week ago
Johnny 9ccb658768 fix: sign up redirect 1 week ago
Johnny 64b487d4af chore: fix seed data 1 week ago
Johnny d326c71078 refactor(db): rename tables for clarity - resource→attachment, system_setting→instance_setting 1 week ago
Johnny 01669685b4 fix(ci): remove invalid revive rule 'use-waitgroup-go' from golangci-lint config 1 week ago
Johnny 1f755f74a4 fix(web): make login screen theme selector reactive
This fixes an issue where the theme selector on the login screen would not update its display value after selection because the component was not re-rendering. Added local state to track the current theme. Validated that this pattern is unique to the unauthenticated context.
1 week ago
Steven fb4f3e70dc fix: resolve golangci-lint issues 1 week ago
Steven e1941e7843 fix: attachment type checks 1 week ago
Faizaan pochi 874a4a7142
fix: KaTeX math rendering with underscores (#5438) 1 week ago
Steven 62646853eb chore: tweak comments display 1 week ago
Steven ed66e0fec2 chore: fix linter 1 week ago
Steven 5a8e1845e2 fix: reaction button in mobile view 1 week ago
Johnny d68ca84832 fix: delete unused attachments by using filter 1 week ago
Johnny 4b110d0d38 fix: cursor position after slash commands 1 week ago
Steven 15646a8989 chore: fix linter 1 week ago
Steven e268a1fe9c chore: tweak memo content renderer 1 week ago
Steven ac37738148 fix: default visibility setting 1 week ago
lif 86013d6c2a
fix(scripts): add file existence check in file_env (#5424)
Signed-off-by: majiayu000 <1835304752@qq.com>
1 week ago
lif cbbb585b2e
fix(frontend): ensure attachments are properly linked when creating memos (#5428)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 week ago
Sheep-realms b7b658358e
chore: update simplified chinese localization (#5422) 1 week ago
Roman Teitge 8cf99f5200
Update german translations (#5419)
Signed-off-by: Roman Teitge <83205200+rteitge@users.noreply.github.com>
1 week ago
Steven 06d1c60aaf chore: tweak domain format 2 weeks ago
Johnny d2b421213f chore: optimize RelationList and unify RelationCard usage 2 weeks ago
Johnny 77e9376e03 chore: improve metadata section UI consistency and maintainability 2 weeks ago
Johnny 5612fb8f41 feat: add HDR image and video support
- Add HDR detection utilities for wide color gamut formats (HEIC, HEIF, WebP)
- Apply colorSpace attribute to image/video elements for HDR-capable files
- Update frontend components (AttachmentCard, PreviewImageDialog, AttachmentList)
- Expand backend thumbnail generation to support HEIC, HEIF, WebP formats
- Add Color-Gamut response headers to advertise wide gamut support
- Extend avatar MIME type validation for HDR formats

Supported formats:
- Images: HEIC, HEIF, WebP, PNG, JPEG
- Videos: MP4, QuickTime, Matroska, WebM (VP9 Profile 2)

Browser support:
- Safari 14.1+, Chrome 118+, Edge 118+
- Gracefully degrades to sRGB on unsupported browsers
2 weeks ago
Johnny e761ef8684 chore: move memo-metadata components to MemoView and MemoEditor
- Remove shared memo-metadata folder
- Move metadata display components (AttachmentList, LocationDisplay, RelationList) to MemoView/components/metadata
- Move attachment types and utilities (LocalFile, AttachmentItem, toAttachmentItems) to MemoEditor/types/attachment
- Simplify AttachmentList and AttachmentCard to work directly with Attachment proto
- Update all imports across MemoEditor and MemoView components
- Better separation of concerns: MemoView handles display, MemoEditor handles local files + attachments
2 weeks ago