Skip to content

fix: include entries starting at "from"; check the client in add-project - #358

Merged
Martin-1997 merged 1 commit into
masterfrom
fix/range-start-and-project-client
Nov 22, 2026
Merged

Martin-1997 merged 1 commit into
masterfrom
fix/range-start-and-project-client

Conversation

@Martin-1997

Copy link
Copy Markdown
Collaborator

Two small fixes for 1.0.3, found while reviewing the release:

  • Entries at the start of the range were missing. WorkIntervalMapper::findLatestInterval and ReportItemMapper filtered with start > from, so an entry starting exactly at "from" was left out of the Timer list, Reports, Dashboard and Timelines. Since fix: include the whole "to" day in dashboard, reports and timelines #352 every range starts at 00:00, and manual entries are saved to the minute, so a manual entry at 00:00 of the first day was dropped. The range is now from <= start < to.
  • add-project didn't check the client ID. Through the API, a project could be linked to another user's client, whose name was then shown in the project list. It's now checked like in edit-project (404 Not Found).
  • Also: the doc comment of userTimeZone() was separated from its method in Timelines and reports: period and dates in the browser's time zone (#323) #354.

Tests: new RangeStartAndProjectClientTest. Two existing mapper tests recorded the old bound and now expect from to be included. Integration suite (50 tests), phpstan and lint pass.

🤖 Generated with Claude Code

- Timer list, reports, dashboard and timelines left out entries that start
  exactly at the "from" bound (e.g. a manual entry at 00:00 of the first
  day): the range is now [from, to).
- add-project accepted any client ID, so a project could be linked to a
  client of another user. It now checks it like edit-project (404).
- Move the doc comment of userTimeZone() back to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Martin-1997 added a commit that referenced this pull request Nov 22, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Martin-1997 Martin-1997 mentioned this pull request Nov 22, 2026
@Martin-1997
Martin-1997 merged commit 6fd37b2 into master Nov 22, 2026
20 checks passed
Martin-1997 added a commit that referenced this pull request Nov 22, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant