fix(mood): open the reminder's entry sheet only in the own record

This commit is contained in:
Marc-André Bombeck committed 2026-10-11 13:37:46 +02:00
1 parent 3c4e053dcd
commit a4a3318de3
3 files changed
+143 -9

No files matched your search

+4 -1
View File
@@ -36,7 +36,10 @@ export const NOTIFICATION_TAP_PATHS: Record<EventType, string | null> = {
WITHINGS_SYNC_FAILED: "/settings/integrations",
SYSTEM_ALERT: "/",
PERSONAL_RECORD: "/achievements",
// `?add=1` opens the mood entry sheet on the first paint.
// `?add=1` opens the mood entry sheet on the first paint, and only in the
// recipient's own record: a session switched into another record opens the
// page without the sheet (`src/app/mood/page-client.tsx`). No other target
// here opens a write form.
MOOD_REMINDER: "/mood?add=1",
CYCLE_PERIOD_SOON: "/cycle",
CYCLE_PERIOD_CONFIRM: "/cycle",