From 899b1d9812c61a33554b67e3026850684e686ce1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 22 Oct 2026 12:27:34 +0200 Subject: Splash gates the app while Foldergram indexes Foldergram is unusably slow during a scan, so the splash (renamed from LockActivity) now shows on every start and return to the app: PIN if set, then it polls /api/scan-progress every 5 s and stays on "Library is indexing" until the scan ends. Home connects only after the splash. Builds and deploys; the indexing path is not yet tested on the TV. Co-Authored-By: Claude Opus 5.5 --- .../specs/2026-10-22-mygram-droid-design.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/superpowers/specs/2026-10-22-mygram-droid-design.md b/docs/superpowers/specs/2026-10-22-mygram-droid-design.md index 4545884..13dd378 100644 --- a/docs/superpowers/specs/2026-10-22-mygram-droid-design.md +++ b/docs/superpowers/specs/2026-10-22-mygram-droid-design.md @@ -142,11 +142,19 @@ videos only, endless, paged with the same seed. - Optional app PIN, 4 to 8 digits, typed twice; Remove PIN when one is set. - Header with a back arrow, like the folder grid. -### PIN lock - -- Only when a PIN is set: a splash with the logo and a PIN field covers - any screen at app start and whenever the app comes back after leaving - the screen (an Application lifecycle counter tracks started activities). +### Splash (PIN lock and indexing wait) + +- A splash with the logo covers any screen at app start and whenever the + app comes back after leaving the screen (an Application lifecycle + counter tracks started activities). Home connects only after it. +- When a PIN is set it asks for it first. +- Then it checks `GET /api/scan-progress`: while `isScanning`, it stays + with a spinner, "Library is indexing" and the server's phase message + plus the derivative job counter, polling every 5 s; Foldergram is + unusably slow while indexing. Idle: it closes at once. +- Unreachable at the first check: it lets the user in so Home shows its + error with Retry. After a scan was seen, failed polls keep waiting. +- A scan that starts while the app is open does not interrupt it. - Back on the lock screen leaves the app. - Stored as salt plus SHA-256, never the PIN. It is a privacy screen, not protection against someone with adb or root on the TV; clearing the -- cgit v1.2.3