fix(recurring): skip records the occurrence date, not the view's today#11
Open
renatomen wants to merge 2 commits into
Open
fix(recurring): skip records the occurrence date, not the view's today#11renatomen wants to merge 2 commits into
renatomen wants to merge 2 commits into
Conversation
U1: add a distinct optional occurrenceDate to the task context menu options, set by occurrence-addressed views (Calendar) and omitted by list/board producers, so occurrence-aware logic never infers occurrence-ness from the overloaded targetDate. U2: skip now passes the occurrenceDate when present (Calendar), otherwise no explicit date so the service's anchor-aware default resolves it - scheduled for scheduled-anchored recurrences (fixing the List/Kanban 'records today' bug) and today for completion-anchored recurrences (unchanged).
Adds the List/Kanban unskip-label path (occurrenceDate absent + resolved scheduled date already skipped), a due-only recurring case, and a showTaskContextMenu occurrenceDate-forwarding test; makes the completion-anchored assertion timezone-deterministic via getTodayString().
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
PR1 of the completion-date-control work (seam + skip fix).
occurrenceDateto the task context-menu options, set by occurrence-addressed views (Calendar, for recurring tasks) and omitted by list/board producers. Occurrence-aware logic reads this field instead of inferring occurrence-ness from the overloadedtargetDate.occurrenceDatewhen present (Calendar), otherwise no explicit date so the service's anchor-aware default resolves it — scheduled for scheduled-anchored recurrences (fixing the List/Kanban "records today" bug) and today for completion-anchored recurrences (unchanged).Testing
taskContextMenu.occurrenceContext.test.ts,taskContextMenu.skip.test.ts(List/Kanban, Calendar, completion-anchored, unskip, due-only,showTaskContextMenuforwarding). Verified red-before-green on the skip fix.Notes