Skip to content

fix(plannings): the day dialog shows pause start and stop to the second (#1741) - #1758

Merged
renemadsen merged 1 commit into
stablefrom
fix/1741-pause-times-seconds
Oct 8, 2026
Merged

renemadsen merged 1 commit into
stablefrom
fix/1741-pause-times-seconds

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Follow-up to #1749 (#1741).

The day dialog lists each shift's recorded pauses as Pause HH:mm–HH:mm. That hides the seconds, so a short pause or two pauses in the same minute cannot be read. The listing now shows the full stamp: Pause 14:50:07–14:55:31.

  • pause-segments.util.ts: segments are formatted HH:mm:ss. Merging and clamping already worked on whole seconds and are unchanged; a pause running past midnight ends at 24:00:00.
  • Unit tests (util + dialog) use stamps with seconds, plus a case of start and stop within one minute.
  • Playwright s/day-dialog-pause-times.spec.ts patches stamps with seconds and asserts 10:02:40–10:17:10 / 12:30:00–12:45:00.

Tests run in CI only.

🤖 Generated with Claude Code

…nd (#1741)

The pause listing under each shift showed HH:mm, so a pause of a few seconds,
or two pauses in the same minute, could not be read. It now shows the full
HH:mm:ss of each stamp; a pause running past midnight ends at 24:00:00.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 8, 2026 12:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The formatting change is correct, focused, and covered across utility, component, and end-to-end tests.

0 open findings

What changed in this PR

Updates day-dialog pause ranges to display second-level timestamps.

Changes:

  • Formats pause segments as HH:mm:ss, including open and midnight-clamped pauses.
  • Updates unit and Playwright coverage for second-level timestamps.
File Description
workday-entity-dialog.component.spec.ts Updates dialog expectations for seconds.
pause-segments.util.ts Adds second-level pause formatting.
pause-segments.util.spec.ts Covers seconds and same-minute pauses.
day-dialog-pause-times.spec.ts Verifies seconds in the rendered dialog.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@renemadsen
renemadsen merged commit 79bb5f5 into stable Oct 8, 2026
41 checks passed
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