Make timetable checks quiet when no mirror is configured
Merged
FC
20d ago+32+32+01234567890123456789-8-8-0123456789
Summary
transit-data/service.ts check()
+ if no mirror configured → 'unsupported' (no request, no failure, no backoff)
transit-data/refresh-policy.ts scheduleNotices()
+ skip "Orari non confermati da GTT da oltre 48 ore" when updatesConfigured === false
StopBoardPanel
+ unsupported → "Orari dal pacchetto incluso nell'app: si aggiornano con le nuove versioni. …"
Follow-up to #23 (empty TIMETABLE_MIRRORS), raised by CodeRabbit on #25: every manifest check failed with "Nessun server orari configurato" and backed off, and boards would show a permanent unconfirmed warning 48 hours after install — misleading during the field test. The provenance line still shows the bundled feed version and date; "Aggiorna orari" still refreshes the GTT identity remap.
Evidence
- Before:
check('manual')→failed, backoff recorded;scheduleNotices(…, +49 h)→schedule-unconfirmed.
After: new tests: no-mirror check →unsupported, zero requests, no failure/error; no-mirror notices at +49 h → none (with a mirror →schedule-unconfirmed, unchanged). bun run verify: typecheck, zero-warning lint, 503 tests.
Merge Danger
Door: two-way
Blast Radius: transit-data
Optional timetable refresh status and one board notice.
Summary by cubic
Makes timetable checks quiet when no mirror is configured, so an empty TIMETABLE_MIRRORS no longer produces failed checks, backoff, or a permanent "unconfirmed" warning on boards.
- Mirrorless checks now return
unsupportedwithout making a request or recording a failure. - The 48-hour "Orari non confermati" notice is suppressed when updates are unavailable; the provenance line still shows the bundled feed version and date.
- "Aggiorna orari" still refreshes the GTT identity remap, and board UI shows a message explaining that timetable data ships with app updates.