diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-22 12:27:34 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-22 12:27:34 +0200 |
| commit | 899b1d9812c61a33554b67e3026850684e686ce1 (patch) | |
| tree | 415abc780daa5bd4cbb69d65bdb82157b44cf3ab /docs/superpowers/specs | |
| parent | 48b44a6e27b87ee8bf5340a8d7ff37afaf04b7f9 (diff) | |
| download | mygram-droid-899b1d9812c61a33554b67e3026850684e686ce1.tar.gz mygram-droid-899b1d9812c61a33554b67e3026850684e686ce1.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers/specs')
| -rw-r--r-- | docs/superpowers/specs/2026-10-22-mygram-droid-design.md | 18 |
1 files changed, 13 insertions, 5 deletions
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 |
