[codex] Implement local notifications and inbox#107
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (32)
📝 WalkthroughWalkthroughThis PR implements a complete notification system for Dayova, spanning backend APIs, database schema, frontend screens, and background synchronization. It adds notification preferences, scheduling, delivery tracking, and user-facing inbox/settings UIs. It also refactors the switch component and adds completion toggles across the app. ChangesNotification System Implementation
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Suggested labels
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@codex Tell me if there will be a system push notification for example if there is an upcoming task in 15 mins and I have the app open? |
Short answerYes — if notification permission is granted and system notifications are enabled, this PR should schedule a local system notification for an upcoming task at the configured reminder offset, which defaults to 15 minutes. The app installs What happens when the app is open?The implementation calls
So while the app is foregrounded, it is configured to show the notification visually, but without sound or badge updates. This matches Expo’s foreground notification model: Expo says foreground behavior is controlled with One platform caveat: Expo’s Notifications SDK docs note that on Android, Is it server push or local notification?This PR is local scheduled notifications only, not server push. The PR body says server push remains future work, and the code schedules notifications on-device with So if by “system push notification” you mean “remote push from a server,” then no. If you mean “an OS/system notification shown by the phone,” then yes, this is implemented as a local scheduled system notification. For “upcoming task in 15 mins” specificallyThe planner creates a startMinutes - preferences.reminderOffsetMinutesand the default That means:
PreconditionsIt will only happen if all of these are true:
Commands used
No code changes were made, so I did not commit or create a follow-up PR. |
|
@codex What if the reminder offset is being changed but the event is already created? |
|
Summary
Committed changes with:
Created follow-up PR:
Testing
|
…ment-local-notifications-and-in Avoid duplicate before-event reminders after offset changes
Summary
Scope notes
This PR intentionally uses local scheduled notifications only. Server push notifications and per-event notification customization remain future work tracked separately.
The PR diff was checked against
mainand does not include the separate skill/context documentation changes.Validation
pnpm checkpnpm testSummary by CodeRabbit
New Features
UI/UX Improvements
Documentation