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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants