feat: snooze button, task detail sync, delete button, AI enrichment cancel - #2
Merged
Merged
Conversation
The overdue count was computed inside a useMemo with a `now` that only refreshed when the task list reference changed. Tasks becoming overdue while the page was idle wouldn't trigger a recompute, so the button could be missing despite overdue tasks existing. Always show the button and let the action handler (which computes fresh `now`) show a toast if nothing is overdue.
Wire up SSE sync stream so the task detail page receives live updates from other tabs and AI enrichment. Defers refresh while the user has unsaved edits to avoid losing work. Also change QuickActionPanel key from updated_at to id so sync refreshes don't forcibly remount the panel mid-edit.
Surface a dedicated trash button on the floating selection bar so users can bulk-delete without opening the More sheet.
Remove the ai-to-process label after updateTask so the enrichment worker does not overwrite the user's manual changes. Done outside the transaction so undo restores the label and lets enrichment resume.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
overdueCountcomputed inuseMemo; badge only appears when overdue tasks exist, action handler shows toast if nothing is overdueupdated_attoidto prevent forced remount mid-editai-to-processlabel afterupdateTaskso enrichment doesn't overwrite manual changes; undo restores the labelTest plan
npm run type-check && npm run lint && npm test— all passnpm run test:e2e🤖 Generated with Claude Code