Repository navigation
feat(wework): add task reminders and tray status - #1795
Conversation
|
Warning Review limit reached
Next review available in: 19 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (31)
📝 WalkthroughWalkthroughThis PR adds runtime task completion reminders with desktop notifications via a new Tauri notification plugin, extends tray icon/menu state to show unread and running indicators, adds tray display preference toggles in general settings, and adds locale-aware reset-time formatting for codex usage tooltips. ChangesTask reminders, notifications, and tray/settings updates
Estimated code review effort: 4 (Complex) | ~75 minutes Sequence Diagram(s)sequenceDiagram
participant RuntimeWork
participant useRuntimeTaskReminders
participant Storage as localStorage
participant NotificationText as getRuntimeTaskNotificationText
participant TauriPlugin as tauri_plugin_notification
RuntimeWork->>useRuntimeTaskReminders: task status updates
useRuntimeTaskReminders->>Storage: read stored unread/running keys
useRuntimeTaskReminders->>useRuntimeTaskReminders: buildRuntimeTaskReminderSnapshot
useRuntimeTaskReminders->>Storage: persist updated unread/running keys
useRuntimeTaskReminders->>NotificationText: newly completed unread item
NotificationText-->>useRuntimeTaskReminders: title, body
useRuntimeTaskReminders->>TauriPlugin: sendRuntimeTaskCompletionNotification
TauriPlugin-->>useRuntimeTaskReminders: permission granted/notification sent
sequenceDiagram
participant WorkbenchPage
participant buildTrayMenuTaskGroups
participant SetTrayMenuStateCommand as Tauri command
participant TrayIconRenderer as tray_usage_icon
WorkbenchPage->>buildTrayMenuTaskGroups: runtimeWork, reminders, preferences
buildTrayMenuTaskGroups-->>WorkbenchPage: unread/running groups, counts
WorkbenchPage->>SetTrayMenuStateCommand: state payload with unread/running fields
SetTrayMenuStateCommand->>TrayIconRenderer: show_running_status, unread_count
TrayIconRenderer-->>SetTrayMenuStateCommand: rendered icon with badge/meter
✨ Finishing Touches🧪 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 |
Summary
Adds Wework task completion reminders across the sidebar, system notifications, settings, and tray icon.
Why
Completed tasks could lose their blue unread indicator, tray state was hard to read, and completion notifications used generic copy instead of the actual task context. This makes task completion state persistent and visible while avoiding unread noise when the user is already watching the task complete.
Validation
pnpm --filter wework exec vitest run src/features/workbench/runtimeTaskReminders.test.ts src/features/workbench/runtimeTaskNotificationContent.test.tspnpm --filter wework exec tsc --noEmit --pretty falsepnpm --filter wework lintSummary by CodeRabbit
New Features
Bug Fixes