feat: add project filter to report page#158
Open
AdamJ wants to merge 2 commits into
Open
Conversation
Adds a project dropdown to the weekly report page so users can scope the week preview, AI prompt, and generated summary to a single project. Also introduces filterWeekByProject utility and a full test suite for reportUtils. - reportUtils: add filterWeekByProject(week, project) — filters days/tasks by project name, excludes empty days, recomputes totalDuration - reportUtils.test.ts: new test file covering filterWeekByProject, formatDuration, groupByCalendarWeek, and getMostRecentCompleteWeek - Report.tsx: add selectedProject state + filteredWeek memo; render a project Select below week navigation when the week has ≥1 project; pass filteredWeek to WeekPreview, generate(), and auto-save; include project in localStorage key so filtered summaries don't collide with full-week summaries; reset project on week change https://claude.ai/code/session_014FCyGZxPpxqy1z1Stg4X9u
Deploying timetrackerpro with
|
| Latest commit: |
9e16bc2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4fd23d41.timetrackerpro.pages.dev |
| Branch Preview URL: | https://claude-report-project-filter.timetrackerpro.pages.dev |
The test hardcoded "2026-01-15" as a "past" date, but CI machines run with a real-world clock where that date is in the future. Use Date.now() - 365 days so the date is always in the past regardless of when CI runs. https://claude.ai/code/session_014FCyGZxPpxqy1z1Stg4X9u
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 a project dropdown to the weekly report page so users can scope the
week preview, AI prompt, and generated summary to a single project. Also
introduces filterWeekByProject utility and a full test suite for reportUtils.