Leave balances are currently initialized randomly instead of being restored from the browser. Theme preference starts in System on each visit.
Resulting behavior
Restore supported saved settings and readable saved leave balances during application startup. Initialization must preserve readable saved planning data.
Acceptance criteria
Restore theme preference, language, and week numbers before their controls are presented for use.
Restored System resolves the device's current appearance and continues following it; restored Light or Dark remains an explicit override.
Restore a readable saved balance list with the same quantities, leave types, identities, order, availability dates, and expiry dates before the initial planning calculation.
Keep saved dates unchanged, including expired dates. Existing planner validation and remaining-balance classification continue to handle the restored inputs.
A saved empty list is present data: restore it as empty and do not generate random balances.
When no saved balance list exists, use the random initialization specified in #23.
When saved balance data cannot be decoded into supported balance records, delete only that balance data and use the same random fallback. Unrelated settings and planning rules must remain intact.
Reading and restoring balances must not save untouched random defaults or overwrite readable saved balances.
Verification
Seed browser storage, create a fresh application/component instance, and inspect rendered settings and balance fields. Cover explicit and System theme restoration, dated balance restoration, an expired balance, a saved empty list, absent balance data, and unreadable balance data. Verify the deletion affects only unreadable balance storage.
Coordination
Uses the save format from #21 and the startup fallback from #23. Existing planning rules retain their local restoration behavior.
## Problem
Leave balances are currently initialized randomly instead of being restored from the browser. Theme preference starts in System on each visit.
## Resulting behavior
Restore supported saved settings and readable saved leave balances during application startup. Initialization must preserve readable saved planning data.
## Acceptance criteria
- Restore theme preference, language, and week numbers before their controls are presented for use.
- Restored System resolves the device's current appearance and continues following it; restored Light or Dark remains an explicit override.
- Restore a readable saved balance list with the same quantities, leave types, identities, order, availability dates, and expiry dates before the initial planning calculation.
- Keep saved dates unchanged, including expired dates. Existing planner validation and remaining-balance classification continue to handle the restored inputs.
- A saved empty list is present data: restore it as empty and do not generate random balances.
- When no saved balance list exists, use the random initialization specified in [#23](https://gitea.nessar.fr/nessar/vac-optimizer/issues/23).
- When saved balance data cannot be decoded into supported balance records, delete only that balance data and use the same random fallback. Unrelated settings and planning rules must remain intact.
- Reading and restoring balances must not save untouched random defaults or overwrite readable saved balances.
## Verification
Seed browser storage, create a fresh application/component instance, and inspect rendered settings and balance fields. Cover explicit and System theme restoration, dated balance restoration, an expired balance, a saved empty list, absent balance data, and unreadable balance data. Verify the deletion affects only unreadable balance storage.
## Coordination
Uses the save format from [#21](https://gitea.nessar.fr/nessar/vac-optimizer/issues/21) and the startup fallback from [#23](https://gitea.nessar.fr/nessar/vac-optimizer/issues/23). Existing planning rules retain their local restoration behavior.
There is no user-settings restoration implementation. Existing language and calendar settings are restored independently. Specify the user settings to restore, together with #18 and #21.
Evidence: reviewed issue requirements/discussions and f1f0835 (published application source; live main 57a39c81 only adds Renovate configuration). Tested an isolated checkout of the published source: 20 test files, 157/157 tests passed, including the five benchmark scenarios. Local commit 51978f7 and uncommitted edits were inspected separately and are not evidence of published completion.
Completion audit — 2026-10-02
There is no user-settings restoration implementation. Existing language and calendar settings are restored independently. Specify the user settings to restore, together with #18 and #21.
Evidence: reviewed issue requirements/discussions and f1f0835 (published application source; live main 57a39c81 only adds Renovate configuration). Tested an isolated checkout of the published source: 20 test files, 157/157 tests passed, including the five benchmark scenarios. Local commit 51978f7 and uncommitted edits were inspected separately and are not evidence of published completion.
changed title from appliquer les reglages du localstorage to Restore saved settings and balances before initializing defaults
<p>changed title from <code class="idiff"><span class="idiff left right deletion">appliquer les reglages du localstorage</span></code> to <code class="idiff"><span class="idiff left right addition">Restore saved settings and balances before initializing defaults</span></code></p>
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.
Problem
Leave balances are currently initialized randomly instead of being restored from the browser. Theme preference starts in System on each visit.
Resulting behavior
Restore supported saved settings and readable saved leave balances during application startup. Initialization must preserve readable saved planning data.
Acceptance criteria
Verification
Seed browser storage, create a fresh application/component instance, and inspect rendered settings and balance fields. Cover explicit and System theme restoration, dated balance restoration, an expired balance, a saved empty list, absent balance data, and unreadable balance data. Verify the deletion affects only unreadable balance storage.
Coordination
Uses the save format from #21 and the startup fallback from #23. Existing planning rules retain their local restoration behavior.
mentioned in issue #20
Completion audit — 2026-10-02
There is no user-settings restoration implementation. Existing language and calendar settings are restored independently. Specify the user settings to restore, together with #18 and #21.
Evidence: reviewed issue requirements/discussions and
f1f0835(published application source; live main57a39c81only adds Renovate configuration). Tested an isolated checkout of the published source: 20 test files, 157/157 tests passed, including the five benchmark scenarios. Local commit 51978f7 and uncommitted edits were inspected separately and are not evidence of published completion.mentioned in issue #18
mentioned in issue #19
mentioned in issue #21
changed title from
appliquer les reglages du localstoragetoRestore saved settings and balances before initializing defaultschanged the description
mentioned in issue #23
mentioned in commit
b0ba4227acPreserved GitLab #22 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 1; visible source notes: 9.
gitlab-35-issue-22.md (SHA-256
587c54eaef60c04a7a001fada401228bd1f8b960f7a6b9f292badf9d17ac2980)gitlab-35-issue-22.json (SHA-256
9ccebab97d0c79a1bc94cf48eba174038e95dfe7238cebdca4844278a601c952)Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.