Open plan statistics for calculated leave usage #65

Closed
opened 2026-10-07 00:22:48 +02:00 by nessar · 7 comments
nessar commented 2026-10-07 00:22:48 +02:00 (Migrated from 172.24.0.1:8928)

Parent

What to build

The user opens a statistics popup from the calendar and sees how many new leave days the displayed valid plan uses, including a valid plan retained after cancellation. This establishes a usable first slice that later tickets extend with the other statistics.

Source: the agreed Plan Statistics Popup spec for #3 and #29, in milestone %3: V1 stats. Follow the domain glossary and ADRs 0002, 0004, 0006, and 0007.

Acceptance criteria

  • A labelled calendar control opens one statistics popup for the latest calculated valid plan. Opening it runs no optimization and changes no planning data.
  • The popup shows the number of leave placement dates with an explicit leave-day label. Declared non-working days consume no balance and are excluded from this count. A valid plan with no placements displays 0 and still permits opening the popup.
  • A retained valid plan from an incomplete calculation exposes the same popup with a prominent "Partial plan" label. Invalid input, a planning conflict, or an incomplete calculation without a retained valid plan exposes no statistics.
  • Statistics refer to the producing calculation and its submitted inputs. Editing balances, rules, declarations, or the horizon, inspecting historical trace steps, and exploring hypothetical dates do not change the displayed count.
  • A new valid outcome replaces the statistics. A new outcome without a valid plan clears them, including any already open popup. Late replies from an older calculation cannot restore or overwrite them.
  • Popup access is available with the valid outcome while trace delivery is pending or has failed. Reuse the existing result lifecycle and dialog patterns without introducing another calculation or trace-dependent summary.
  • The control and popup work with the existing language settings, keyboard opening and dismissal, visible focus, focus containment and restoration, meaningful accessible labels, and a readable mobile layout.
  • Existing behavior tests verify complete and retained partial plans, zero placements, declared-day exclusion, pending input edits, delayed or failed trace delivery, stale replies, and replacement by an outcome without a valid plan. Verify keyboard behavior and run the repository's existing tests, lint, formatting, type checks, and production build.

This ticket is independently demonstrable by calculating a plan and opening its leave-usage summary. It does not depend on declared-day period aggregation or earned-leave acquisition changes.

Blocked by

None — can start immediately.

## Parent - [#3](https://gitea.nessar.fr/nessar/vac-optimizer/issues/3) - [#29](https://gitea.nessar.fr/nessar/vac-optimizer/issues/29) ## What to build The user opens a statistics popup from the calendar and sees how many new leave days the displayed valid plan uses, including a valid plan retained after cancellation. This establishes a usable first slice that later tickets extend with the other statistics. Source: the agreed Plan Statistics Popup spec for [#3](https://gitea.nessar.fr/nessar/vac-optimizer/issues/3) and [#29](https://gitea.nessar.fr/nessar/vac-optimizer/issues/29), in milestone %3: V1 stats. Follow the domain glossary and ADRs 0002, 0004, 0006, and 0007. ## Acceptance criteria - [ ] A labelled calendar control opens one statistics popup for the latest calculated valid plan. Opening it runs no optimization and changes no planning data. - [ ] The popup shows the number of leave placement dates with an explicit leave-day label. Declared non-working days consume no balance and are excluded from this count. A valid plan with no placements displays 0 and still permits opening the popup. - [ ] A retained valid plan from an incomplete calculation exposes the same popup with a prominent "Partial plan" label. Invalid input, a planning conflict, or an incomplete calculation without a retained valid plan exposes no statistics. - [ ] Statistics refer to the producing calculation and its submitted inputs. Editing balances, rules, declarations, or the horizon, inspecting historical trace steps, and exploring hypothetical dates do not change the displayed count. - [ ] A new valid outcome replaces the statistics. A new outcome without a valid plan clears them, including any already open popup. Late replies from an older calculation cannot restore or overwrite them. - [ ] Popup access is available with the valid outcome while trace delivery is pending or has failed. Reuse the existing result lifecycle and dialog patterns without introducing another calculation or trace-dependent summary. - [ ] The control and popup work with the existing language settings, keyboard opening and dismissal, visible focus, focus containment and restoration, meaningful accessible labels, and a readable mobile layout. - [ ] Existing behavior tests verify complete and retained partial plans, zero placements, declared-day exclusion, pending input edits, delayed or failed trace delivery, stale replies, and replacement by an outcome without a valid plan. Verify keyboard behavior and run the repository's existing tests, lint, formatting, type checks, and production build. This ticket is independently demonstrable by calculating a plan and opening its leave-usage summary. It does not depend on declared-day period aggregation or earned-leave acquisition changes. ## Blocked by None — can start immediately.
nessar commented 2026-10-07 00:23:54 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #66

mentioned in issue #66
nessar commented 2026-10-07 00:24:21 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #67

mentioned in issue #67
nessar commented 2026-10-07 00:24:22 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #68

mentioned in issue #68
nessar commented 2026-10-07 00:24:24 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #69

mentioned in issue #69
nessar commented 2026-10-07 00:25:44 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #29

mentioned in issue #29
admin-backup commented 2026-10-07 23:16:32 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in commit d9f3f8d34a

mentioned in commit d9f3f8d34a01e3b14118de4b7ca726750662f0fb
nessar (Migrated from 172.24.0.1:8928) closed this issue 2026-10-08 21:09:28 +02:00

Preserved GitLab #65 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 0; visible source notes: 6.

gitlab-35-issue-65.md (SHA-256 c6aa04755e653fc57ae12d0b6212c6e1b94f1a0b6716fe835f2af23a2457f0d2)

gitlab-35-issue-65.json (SHA-256 c43ecdbc6bf93484d98a4c13b91318905494a1588ce0e5900bcfc1b0fb49a424)

Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.

<!-- gitlab-to-gitea-history:35:Issue:65 --> Preserved GitLab #65 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 0; visible source notes: 6. [gitlab-35-issue-65.md](https://gitea.nessar.fr/attachments/58c7843e-55b4-43cb-858b-d0282aba51df) (SHA-256 `c6aa04755e653fc57ae12d0b6212c6e1b94f1a0b6716fe835f2af23a2457f0d2`) [gitlab-35-issue-65.json](https://gitea.nessar.fr/attachments/dc9c89ee-61fe-4ca8-8daa-3caef7c98e33) (SHA-256 `c43ecdbc6bf93484d98a4c13b91318905494a1588ce0e5900bcfc1b0fb49a424`) Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.
gitea-emergency added this to the Development project 2026-10-11 22:14:31 +02:00
gitea-emergency moved this to Closed in Development on 2026-10-11 22:14:31 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nessar/vac-optimizer#65