On-device config panel #6
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/6/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finishes Phase 1: the app can now be set up on the device, instead of by hand-placing a JSON file over USB. A missing config used to print /mnt/ext1/system/config/kavita-sync.json and stop — a path you can't do anything about from the reader, which is the whole reason this phase exists.
A two-step wizard: server + credentials, then library picks. Reached by a Setup button in the header, and it opens itself on first run. A rejected key or unreachable server now offers Fix setup.
Verified on the device
Known open: the login path is the default and is unverified
Ambiguous, and deliberately not treated as 'login is broken': login() returns empty both for a 401 and for a 200 whose body lacks apiKey, and the screen prints the same message for either — so a mistyped password is indistinguishable from a bad response shape, and typing on the e-ink keyboard is what prompted the login path to begin with. scripts/probe.sh with KAVITA_USER/KAVITA_PASS settles it from the Mac in seconds. If login works: split the error messages. If not: flip the default to Mode::ApiKey, one line. Shipping as-is by choice — the device already holds a working config.
Design notes
Three gaps deferred, recorded in the spec's Known gaps section.