+35
−38
File changed.
Preview size limit exceeded, changes collapsed.
Loading
First step of docs/coffres-multiples.md: a device can now hold several
independent vaults, one open at a time, each with its own files, drafts,
sync state and Nextcloud account.
- EnvorennCore: VaultRegistry and VaultRegistryStore read and write
vaults.json, a local list that is never synchronized. A malformed file is
refused, never guessed or overwritten. On first launch the existing vault
becomes "Mon coffre" and stays where it is: no file, sync state or
keychain item moves.
- App: VaultLibrary keeps one VaultSession per vault (environment, recorder,
identity, sync, calendars). Switching vaults swaps the whole session and
rebuilds the screens, so no view can mix two vaults. Sessions stay alive so
a sync or an autosave in the vault being left can finish.
- A switcher at the top of the sidebar lists the vaults, creates one and
opens a sheet to rename, open or remove them. Removing deletes the vault
from this device only; the server is not touched.
- Each vault gets its own keychain entry. Saving an app password used to
delete every other one; the original vault keeps its historical entry.
Erasing a vault now forgets only the CalDAV secrets of its own accounts.
- Background sync (iOS tasks, macOS activity) runs every vault, the open one
first. The share queue key stays shared by all vaults.
- Linux: the same registry in vaults.py, with a "Coffres" submenu to open,
add, rename and remove vaults. Removing never deletes the user's folder.
- conformance/vaults: ten registries that Swift (VaultRegistryTests) and
Python (Linux/test_vaults.py) accept or refuse identically.
- Translations: 26 new strings in the 24 languages. The ten short labels were
rewritten by hand with each language's existing term for "vault", and the
machine translations that were wrong were corrected; the corrections are in
tools/localization_overrides.json. "Ouvrir ce coffre" avoids the existing
"Ouvrir" key, which means "Unlock".
Checks: 626 core tests, 4 Python registry tests and the localization checks
pass; macOS and iOS build. On the real vault, the registry was created at
launch and the original vault synchronized with its existing keychain item;
a second vault opened in its own folder. The switcher and the management
sheet have not been checked on screen.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>
File changed.
Preview size limit exceeded, changes collapsed.