Extension: show installed/latest version for drift tracking

Popup footer shows its own installed version (from manifest.json, via
chrome.runtime.getManifest()); Terminals page shows the latest bundled
version next to the download link (new GET /api/extension/version, reads
the same manifest.json). Bumped manifest.json to 0.2.0 for the Today's
Arrivals change, and documented in extension-src/README.md that every
future change to this folder must bump the version too — nothing else
keeps it in sync automatically.
This commit is contained in:
jtricerolph 2026-10-09 12:12:32 +00:00
parent ebf9875ca8
commit 790431c446
8 changed files with 49 additions and 5 deletions

View file

@ -46,6 +46,15 @@ running the [`tablet-checkin`](../tablet-checkin) app.
4. Click the extension icon → **Open Settings** (or right-click the icon → Options) →
enter the tablet-checkin base URL and the terminal key → Save → Test connection.
## Versioning
Bump `manifest.json`'s `"version"` field every time anything in this folder changes.
Nothing does this automatically. The popup shows its own installed version in a small
footer; tablet-checkin's Terminals page shows the latest bundled version next to the
download link (`GET /api/extension/version`, reads this same file) — that comparison is
how staff tell an already-installed copy on a reception PC is stale and needs
re-downloading, so a missed bump silently breaks that signal.
## Known TODOs before this is production-ready
- **Row-detection selectors on `bookings_lists_checkin` are built from a single sample