Add Review mode calendar retrospective - #5
Merged
Merged
Conversation
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.
Adds Review, a fourth view mode: a read-only retrospective answering "what actually happened" — the counterpart to Focus's "what do I do now".
What it shows
Model
deriveReviewModelplaces each task by its authoritative date: the completion marker for terminal tasks, the due period for anything still open. Week and month due periods have no honest single-day slot, so they count toward the totals without being dropped onto a day; the year bars, bucketing by month, absorb them into their owning month (a week goes to the month holding four of its days). Tasks with no date are collected rather than discarded, and "overdue" means past due and still open as of today, independent of the month on screen.One anchor drives both the calendar and the chart, so entering a month pulls the chart to its year and changing year carries the calendar to the same month of that year.
Also
Verification
tests/unit/utils/reviewModeHelpers.test.js; full suite 109/109 passing.🤖 Generated with Claude Code