freezmo/components
Martin Dvorak 77819b5961 Push reminders: personal to the notes, generic without them
The daily reminder said one generic line to everyone, because the server
never sees a deck. Now the notification text is written in the browser
(lib/reminder.ts) and travels with the subscription:

- Personal: "3 cards are due in Sky deck", in the app's language, tapping
  through to /review. Without notes (or with nothing due) it is the plain
  nudge, translated in both languages — push.title / push.due.* / push.generic.
- POST /api/push accepts an optional message {title, body, url}; url must be
  a path on this app, so a stolen subscription cannot make the notification
  link elsewhere. The store keeps endpoint, keys, the message and createdAt
  (a refresh no longer resets the timestamp).
- components/PushReminderSync.tsx refreshes the stored text when the app
  opens and whenever the tab becomes visible (throttled to twice a day), so a
  count is only ever sent while it is true.
- scripts/send-reminders.mjs sends each device its own text and falls back to
  PUSH_REMINDER_TITLE/_BODY for a subscription that has none
  (scripts/reminder-payload.mjs, unit-checked).
- /api/push/test previews the real reminder with a "Test:" prefix.
- deploy/freezmo-reminders.{service,timer}: the daily send as a systemd user
  timer (18:00 local, Persistent, randomised), documented in the README.
- Settings copy, privacy page (en+cs) and .env.example say exactly what the
  server now holds.
- phase2-test grew the whole path with a faked browser subscription: personal
  text in en and cs, the generic fallback in both, the URL guard, and the
  sender's preference order (81 checks).

Version 0.8.2, SW v104.
2026-10-18 14:34:15 +00:00
..
activities The scene stops heating the MacBook 2026-10-15 19:42:29 +02:00
chat Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
exam Report question: skip a broken card and tell the server 2026-10-12 07:12:55 +00:00
homework The scene stops heating the MacBook 2026-10-15 19:42:29 +02:00
podcast Aero music: the button works on the podcast player 2026-10-16 21:04:39 +00:00
teach Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
AeroMusic.tsx Aero music: the button works on the podcast player 2026-10-16 21:04:39 +00:00
AiDisclaimer.tsx Chat chrome: one gutter, one radius scale, one even glass recipe 2026-10-14 21:32:50 +00:00
ApiKeyGate.tsx Key fields: keep the browser's password UI away, fix the keyboard layout 2026-10-16 10:12:20 +00:00
AppHeader.tsx One-pill study chrome, toggling chat pickers, readable homework steps 2026-10-12 14:21:11 +00:00
CookieConsent.tsx Aero goes underwater with rising bubbles; floating cookie notice; Czech title 2026-10-13 05:46:53 +00:00
DataSection.tsx Podcast mode: notes read aloud with a lyric-style word highlight 2026-10-16 11:42:15 +00:00
DeckCard.tsx Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
FolderBar.tsx Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
HomeworkCard.tsx Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
IceBackdrop.tsx The scene stops heating the MacBook 2026-10-15 19:42:29 +02:00
icons.tsx Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
InstallSheet.tsx The scene stops heating the MacBook 2026-10-15 19:42:29 +02:00
LearningSection.tsx Push reminders: personal to the notes, generic without them 2026-10-18 14:34:15 +00:00
LegalPage.tsx Privacy policy, terms of service, cookie policy + a cookie notice 2026-10-12 21:26:55 +00:00
LibraryScreen.tsx Podcast mode: notes read aloud with a lyric-style word highlight 2026-10-16 11:42:15 +00:00
LinkLoadingScreen.tsx Link loading overlay escapes the glass card (portal to body) 2026-10-12 19:04:38 +00:00
LoadingState.tsx The scene stops heating the MacBook 2026-10-15 19:42:29 +02:00
ModelErrorActions.tsx Phase 1: backup, encrypted sync and monthly-usage handling 2026-10-10 13:43:42 +00:00
MotionPreference.tsx Design pass (all themes + chat UI), model picker, reduce-motion toggle 2026-10-14 05:06:02 +00:00
NotFoundScreen.tsx Custom Frutiger Aero 404 2026-10-14 15:27:47 +00:00
OfflineBanner.tsx Native-feel pass: PWA integration, system back, offline, haptics, undo 2026-10-10 12:16:03 +00:00
ProvidersSection.tsx Key fields: keep the browser's password UI away, fix the keyboard layout 2026-10-16 10:12:20 +00:00
PushReminderSync.tsx Push reminders: personal to the notes, generic without them 2026-10-18 14:34:15 +00:00
ReportQuestionButton.tsx Accessibility pass, report control for homework exercises, clearer rail actions 2026-10-12 21:15:56 +00:00
ResultsScreen.tsx The scene stops heating the MacBook 2026-10-15 19:42:29 +02:00
ReviewClient.tsx Smart review: name the source deck on every card, break the counts down 2026-10-15 19:27:04 +00:00
RouteLoading.tsx One loading screen everywhere (the deck wizard's) 2026-10-12 18:43:53 +00:00
RouteTransition.tsx Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
SegmentedPill.tsx Aero button glass + homework report control; reduced-motion sheet glitch 2026-10-14 09:19:54 +00:00
ServiceWorkerRegistrar.tsx Infra: split dev and production (releases, services, deploy script) 2026-10-11 19:25:29 +00:00
SessionFeed.tsx Smart review: name the source deck on every card, break the counts down 2026-10-15 19:27:04 +00:00
SettingsDialog.tsx Key fields: keep the browser's password UI away, fix the keyboard layout 2026-10-16 10:12:20 +00:00
ShareChooser.tsx Phase 1: backup, encrypted sync and monthly-usage handling 2026-10-10 13:43:42 +00:00
Sidebar.tsx Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
SpeakButton.tsx Study cards: from-your-notes, read aloud, timed runs 2026-10-15 05:53:47 +00:00
StatsScreen.tsx Phase 2: learning engine — history, SRS review, mistakes, stats, exam, reminders 2026-10-10 14:15:21 +00:00
StudyFeed.tsx Skipping a card is not a mistake 2026-10-15 13:59:55 +00:00
SyncSection.tsx Phase 1: backup, encrypted sync and monthly-usage handling 2026-10-10 13:43:42 +00:00
TabBar.tsx Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
ThemeSection.tsx New Aero background (Gemini-made), old credit removed 2026-10-13 08:10:05 +00:00
ThemeToggle.tsx Chat chrome: one gutter, one radius scale, one even glass recipe 2026-10-14 21:32:50 +00:00
Toaster.tsx Native-feel pass: PWA integration, system back, offline, haptics, undo 2026-10-10 12:16:03 +00:00
ui.tsx Design pass (all themes + chat UI), model picker, reduce-motion toggle 2026-10-14 05:06:02 +00:00
UploadScreen.tsx The scene stops heating the MacBook 2026-10-15 19:42:29 +02:00
WizardActionBar.tsx Aero button glass + homework report control; reduced-motion sheet glitch 2026-10-14 09:19:54 +00:00
WizardModeSwitch.tsx Podcast mode: notes read aloud with a lyric-style word highlight 2026-10-16 11:42:15 +00:00