docs: add ADR for restoring saved planning inputs before generating random defaults

This commit is contained in:
nessar committed 2026-10-04 21:31:38 +02:00
1 parent 96a39473e6
commit bdb1e3e230
1 file changed
+3
@@ -0,0 +1,3 @@
# Restore Saved Planning Inputs Before Generating Random Defaults
VacOptimizer restores a single locally saved leave-balance list, including an intentionally empty list, with its quantities, leave types, availability dates, and expiry dates; planning rules retain their existing local persistence. Random initial balances are generated when the saved balance list is absent or unreadable: unreadable balance data is deleted first, and the generated list remains unsaved until the first balance edit, after which every balance edit automatically saves the entire current list. Restoring valid saved inputs before initialization prevents random defaults from overwriting user data and keeps a single dataset within the client-side scope of ADR 0002.