feat: make roast planner mobile PWA ready

This commit is contained in:
2026-07-29 21:28:51 -04:00
parent 106b1104c3
commit 74b4c3a368
9 changed files with 203 additions and 0 deletions
+4
View File
@@ -25,6 +25,10 @@ npm install
npm start # http://localhost:8090 (set PORT to override)
```
## Mobile and PWA use
The planner is responsive and caches its app shell for offline use after the first visit. Browser installation and service-worker caching require HTTPS in production (localhost is exempt). Put the Docker container behind an HTTPS reverse proxy before using it as an installable PWA on a phone.
Prefill requires a model configured via the `pi` CLI (`~/.pi/agent/{models,auth}.json`) —
without one, `/api/prefill` returns `503 no_model` rather than crashing. Everything else
(the form, ledger, curve, `.alog` upload) works with no model configured.