Part of the UI/UX refresh (audit of 2026-11-13). Decision taken by the maintainer on 2026-11-13: random initial balances are removed. This supersedes the random-default part of ADR 0005.
Today, when no saved leave-balance list exists, three random leave balances are generated and a calculation runs on them, so a first-time visitor sees a plan for balances they never entered. Instead, a first visit starts with an empty leave-balance list and an empty state that invites the person to enter their leave balances.
Acceptance criteria
When the saved leave-balance list is absent or unreadable, the list starts empty; unreadable data is still deleted first. No random quantity is generated anywhere in the application code.
A valid saved list, including an intentionally empty one, is restored exactly as before, and every balance edit still saves the whole list.
With no leave balance, the configuration panel shows an empty state that explains what to enter and leads to adding the first leave balance; text is translated in fr, en, de and es.
With no leave balance, no calculation starts automatically; the results panel shows the calendar for the planning horizon (weekends, public holidays, declared non-working days) with a short invitation instead of plan figures.
Declared non-working days, planning rules and the planning horizon keep their existing persistence.
A new ADR records the decision and marks the random-default part of ADR 0005 as superseded; CONTEXT.md is updated if it mentions random defaults.
Tests cover first visit, unreadable saved data, and restored saved lists.
Blocked by
None - can start immediately.
## What to build
Part of the UI/UX refresh (audit of 2026-11-13). Decision taken by the maintainer on 2026-11-13: random initial balances are removed. This supersedes the random-default part of ADR 0005.
Today, when no saved leave-balance list exists, three random leave balances are generated and a calculation runs on them, so a first-time visitor sees a plan for balances they never entered. Instead, a first visit starts with an empty leave-balance list and an empty state that invites the person to enter their leave balances.
## Acceptance criteria
- [ ] When the saved leave-balance list is absent or unreadable, the list starts empty; unreadable data is still deleted first. No random quantity is generated anywhere in the application code.
- [ ] A valid saved list, including an intentionally empty one, is restored exactly as before, and every balance edit still saves the whole list.
- [ ] With no leave balance, the configuration panel shows an empty state that explains what to enter and leads to adding the first leave balance; text is translated in fr, en, de and es.
- [ ] With no leave balance, no calculation starts automatically; the results panel shows the calendar for the planning horizon (weekends, public holidays, declared non-working days) with a short invitation instead of plan figures.
- [ ] Declared non-working days, planning rules and the planning horizon keep their existing persistence.
- [ ] A new ADR records the decision and marks the random-default part of ADR 0005 as superseded; CONTEXT.md is updated if it mentions random defaults.
- [ ] Tests cover first visit, unreadable saved data, and restored saved lists.
## Blocked by
None - can start immediately.
Refinement of the fourth acceptance criterion, decided during implementation: the condition is "no leave balance AND no declared non-working day" (nothing to plan), not "no leave balance" alone. Reason: declared non-working days can earn leave through planning rules (ADR 0007), and that earned leave can be placed, so a plan with an empty balance list is a supported case. The same single condition governs the automatic calculation on load, the disabled Calculate action, and the invitation shown in the results panel. With no balance but at least one declared non-working day, behaviour is unchanged.
Refinement of the fourth acceptance criterion, decided during implementation: the condition is "no leave balance AND no declared non-working day" (nothing to plan), not "no leave balance" alone. Reason: declared non-working days can earn leave through planning rules (ADR 0007), and that earned leave can be placed, so a plan with an empty balance list is a supported case. The same single condition governs the automatic calculation on load, the disabled Calculate action, and the invitation shown in the results panel. With no balance but at least one declared non-working day, behaviour is unchanged.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What to build
Part of the UI/UX refresh (audit of 2026-11-13). Decision taken by the maintainer on 2026-11-13: random initial balances are removed. This supersedes the random-default part of ADR 0005.
Today, when no saved leave-balance list exists, three random leave balances are generated and a calculation runs on them, so a first-time visitor sees a plan for balances they never entered. Instead, a first visit starts with an empty leave-balance list and an empty state that invites the person to enter their leave balances.
Acceptance criteria
Blocked by
None - can start immediately.
Refinement of the fourth acceptance criterion, decided during implementation: the condition is "no leave balance AND no declared non-working day" (nothing to plan), not "no leave balance" alone. Reason: declared non-working days can earn leave through planning rules (ADR 0007), and that earned leave can be placed, so a plan with an empty balance list is a supported case. The same single condition governs the automatic calculation on load, the disabled Calculate action, and the invitation shown in the results panel. With no balance but at least one declared non-working day, behaviour is unchanged.