feat: Speichern, Laden und Autosave für Kürläufe hinzufügen

- Datei-Menü mit Neu, Öffnen, Speichern und Speichern unter
- .tres-Persistenz unter user://routines mit Schema-Version
- Autosave nach 1,5 s und Wiederherstellung beim Start
- Dirty-State im Fenstertitel und Rückfrage vor Verwerfen
- Öffnen-Dialog mit 48-px-Buttons für Touch-Bedienung
- Tests auf 265 Assertions erweitert
This commit is contained in:
torsten 2026-10-30 08:11:00 +01:00
parent 98eb5b7e2f
commit 1623fb2590
8 changed files with 590 additions and 34 deletions

View file

@ -5,6 +5,11 @@ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
PROJECT_DIR="$REPO_ROOT/rinkplanner"
GODOT="${GODOT:-/opt/godot/Godot_v4.7.2-stable_linux.x86_64}"
# Isolate user:// so tests never touch the real autosave or saved routines.
TEST_DATA_HOME="$(mktemp -d "${TMPDIR:-/tmp}/rinkplanner-tests.XXXXXX")"
trap 'rm -rf "$TEST_DATA_HOME"' EXIT
export XDG_DATA_HOME="$TEST_DATA_HOME"
if [[ ! -x "$GODOT" ]]; then
echo "Godot binary not found: $GODOT" >&2
echo "Set GODOT=/path/to/godot" >&2