Skip to content

feat: add project filter to report page#158

Open
AdamJ wants to merge 2 commits into
mainfrom
claude/report-project-filter-HLJKM
Open

feat: add project filter to report page#158
AdamJ wants to merge 2 commits into
mainfrom
claude/report-project-filter-HLJKM

Conversation

@AdamJ
Copy link
Copy Markdown
Owner

@AdamJ AdamJ commented May 31, 2026

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

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
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 31, 2026

Deploying timetrackerpro with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9e16bc2
Status: ✅  Deploy successful!
Preview URL: https://4fd23d41.timetrackerpro.pages.dev
Branch Preview URL: https://claude-report-project-filter.timetrackerpro.pages.dev

View logs

@AdamJ AdamJ changed the title Add project filter to report page feat: add project filter to report page May 31, 2026
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
@AdamJ AdamJ added the enhancement New feature or request label Jun 2, 2026
@github-project-automation github-project-automation Bot moved this to To triage in TimeTrackerPro Jun 2, 2026
@AdamJ AdamJ moved this from To triage to In review in TimeTrackerPro Jun 2, 2026
@AdamJ AdamJ linked an issue Jun 2, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

feature: add filtering to reports

2 participants