Milestone 3: launch (20261008.05)
Backup and restore: restore from Settings (any backup in the folder, or an
uploaded file) or from the command line with scripts/restore.sh. Each restore
checks the file first, saves a copy of the current data so it can be undone,
and keeps the person restoring signed in. Backups are now single
self-contained files. Drilled end to end: last night's backup brings
everything back exactly, including onto an empty new machine.
Speed: a phone's first load is 147 KB compressed (target 150). The ideas box,
account menu and sign-in screens load on demand, a small built-in toast
replaces sonner, the Inter font is trimmed to the characters used, and files
and API answers are served compressed. Every screen's data comes back in
under 100 ms with 50,000 transactions (server/bench).
Accessibility: no WCAG 2.2 AA issues on any screen in either theme. Darker
status text colors, 44 px touch targets on phones, reduced motion honoured,
and focus returns after dialogs close.
Also: an in-app guide ("How Spendlight works"), OFX/QFX/QBO import, and tags
on individual parts of a split purchase.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
19
scripts/restore.sh
Executable file
19
scripts/restore.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Restore Spendlight from a backup when the app itself can't be used. For an
|
||||
# everyday restore, use Settings → Backups instead.
|
||||
#
|
||||
# scripts/restore.sh spendlight-nightly-20261007-023000.db
|
||||
#
|
||||
# The file must be in the backups folder. A "before restore" copy of the
|
||||
# current database is saved there first.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
name="$(basename "${1:?Usage: scripts/restore.sh <backup file name from the backups folder>}")"
|
||||
docker compose stop spendlight
|
||||
if ! docker compose run --rm --no-deps spendlight spendlight restore "/backups/${name}"; then
|
||||
docker compose start spendlight
|
||||
exit 1
|
||||
fi
|
||||
docker compose start spendlight
|
||||
echo "Spendlight is running again on the restored data."
|
||||
Reference in New Issue
Block a user