memos/proto/gen/api/v1
Steven 8daef1dc89 feat(activity-calendar): aggregate by ViewContext.timeBasis
Fixes the inconsistency where switching the memo list to update_time
left the activity heatmap aggregating by created_time. The heatmap
now follows the same time basis as the list it sits next to.

Backend
- UserStats gains memo_updated_timestamps (additive proto field, tag 8).
- GetUserStats and ListAllUserStats populate it alongside the existing
  memo_created_timestamps. No DB migration; memo.updated_ts already
  exists on every row.

Frontend
- useFilteredMemoStats reads timeBasis from ViewContext and selects
  the matching timestamp source.
- StatisticsView and MonthNavigator forward timeBasis through to
  MonthCalendar / YearCalendar so tooltip text matches the basis
  ("X memos in DATE" vs "X memos updated on DATE").
- Falls back to memoCreatedTimestamps when an old server returns an
  empty memoUpdatedTimestamps array (detected by length divergence,
  since protobuf-es deserializes missing repeated fields as []).

Tests
- Backend: TestGetUserStats_MemoUpdatedTimestamps verifies the field
  is populated and reflects post-creation updates.
- Frontend: filtered-memo-stats covers create/update source switching
  and the old-server fallback path; activity-calendar-tooltip covers
  basis-aware label selection.

Spec and implementation plan committed under docs/superpowers/.
2026-05-02 00:26:53 +08:00
..
apiv1connect feat(stats): admin instance resource statistics 2026-05-01 23:15:56 +08:00
ai_service.pb.go feat(ai): add BYOK audio transcription (#5832) 2026-04-13 22:09:24 +08:00
ai_service.pb.gw.go feat(ai): add instance AI providers and transcription (#5829) 2026-04-12 19:23:34 +08:00
ai_service_grpc.pb.go feat(ai): add instance AI providers and transcription (#5829) 2026-04-12 19:23:34 +08:00
attachment_service.pb.go feat(attachments): add Live Photo and Motion Photo support (#5810) 2026-04-06 10:47:01 +08:00
attachment_service.pb.gw.go feat(attachments): add Live Photo and Motion Photo support (#5810) 2026-04-06 10:47:01 +08:00
attachment_service_grpc.pb.go feat(attachments): add Live Photo and Motion Photo support (#5810) 2026-04-06 10:47:01 +08:00
auth_service.pb.go feat: replace auto-increment ID with UID for identity provider resource names (#5687) 2026-03-05 21:01:22 +08:00
auth_service.pb.gw.go refactor: user auth improvements (#5360) 2025-12-18 18:15:51 +08:00
auth_service_grpc.pb.go feat: replace auto-increment ID with UID for identity provider resource names (#5687) 2026-03-05 21:01:22 +08:00
common.pb.go fix: openapi generation (#5349) 2025-12-15 10:55:04 +08:00
idp_service.pb.go fix: openapi generation (#5349) 2025-12-15 10:55:04 +08:00
idp_service.pb.gw.go refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
idp_service_grpc.pb.go feat: replace auto-increment ID with UID for identity provider resource names (#5687) 2026-03-05 21:01:22 +08:00
instance_service.pb.go feat(stats): admin instance resource statistics 2026-05-01 23:15:56 +08:00
instance_service.pb.gw.go feat(stats): admin instance resource statistics 2026-05-01 23:15:56 +08:00
instance_service_grpc.pb.go feat(stats): admin instance resource statistics 2026-05-01 23:15:56 +08:00
memo_service.pb.go feat: add link metadata endpoints 2026-04-29 22:38:08 +08:00
memo_service.pb.gw.go feat: add link metadata endpoints 2026-04-29 22:38:08 +08:00
memo_service_grpc.pb.go feat: add link metadata endpoints 2026-04-29 22:38:08 +08:00
shortcut_service.pb.go fix(api): switch user resource names to usernames (#5779) 2026-03-25 09:11:17 +08:00
shortcut_service.pb.gw.go refactor: clean unused fields 2025-06-23 22:55:14 +08:00
shortcut_service_grpc.pb.go feat: replace auto-increment ID with UID for identity provider resource names (#5687) 2026-03-05 21:01:22 +08:00
user_service.pb.go feat(activity-calendar): aggregate by ViewContext.timeBasis 2026-05-02 00:26:53 +08:00
user_service.pb.gw.go feat(auth): add SSO user identity linkage (#5883) 2026-04-23 08:51:45 +08:00
user_service_grpc.pb.go feat(auth): add SSO user identity linkage (#5883) 2026-04-23 08:51:45 +08:00