Skip to content

Show pause start/stop times on the web (day dialog / Oversigt timer) #1741

Open

Description

@renemadsen

Customer report

Timeregistrering: Pausetidspunkt stop og start skal vises i backend.

Current behaviour

  • The planning board cell shows only the pause total (time-plannings-table.component.html → formatDuration(row.planningPrDayModels[col.field]?.pauseMinutes / 60)).
  • workday-entity-dialog shows only a pause duration per shift (formControlName="pause").
  • The DTO already carries the stamps (planning-pr-day.model.ts: pause1StartedAt/pause1StoppedAt, pause10..29, pause100..202, …), and they are populated for most app-registered days.

Fix sketch

In workday-entity-dialog, a read-only list of pause segments per shift ("Pause 10:02–10:17"), built from the PauseNNStartedAt/StoppedAt slots using the C# merge rule BuildMergedPauseSegments (or a TypeScript mirror with a shared test vector); optional tooltip on the board cell's pause icon; respect useOneMinuteIntervals formatting.

Tests

Angular unit test for the segment builder (unordered slots, open pause without stop, pause across midnight); Playwright: day dialog for a seeded registration with two pauses shows both ranges.

Status

New. Use the canonical pause calculator.

Activity

  1. added 2 commits that reference this issue on Oct 3, 2026
  2. renemadsen commented on Oct 7, 2026

    @renemadsen
    MemberAuthor

    Verified on a staging installation: the day dialog lists a registered pause with its start and stop time (e.g. Pause 14:50–14:55).

  3. added a commit that references this issue on Oct 8, 2026
  4. renemadsen commented on Oct 8, 2026

    @renemadsen
    MemberAuthor

    Follow-up #1758 (pause times shown to the second) verified on a staging installation: the day dialog now lists a recorded pause as Pause 14:59:12–15:05:45 instead of 14:59–15:05. Issue stays open until the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions