navi/src/components
Matt Johnson 38d11bea99 navi: read auth login/logout URLs from /api/config (extraction #2 PR-C)
Panel.jsx now reads the login/logout URLs from the deployment config
(cfg.auth.login_url / cfg.auth.logout_url) instead of hardcoding them, with
the current home-profile literals kept as fallback. This completes the
extraction #2 trio:
  - PR-A (recon #6):   adds the `auth` block to the deployment profile YAMLs
  - PR-B (navi-backend #1): navi-config service serving /api/config on :8422
  - PR-C (this):       frontend consumes auth.* from /api/config

Behavior is unchanged in every case: the fallback literals are used if the
backend doesn't yet serve `auth` (older recon) or when FALLBACK_CONFIG is in
effect (offline / config API unreachable). useConfig() returns the cached
deployment config (null until loaded); the optional-chaining + ?? fallback
keeps clicks working before config loads.

Also adds the same `auth` block to src/config.js FALLBACK_CONFIG so offline
mode has working URLs.

No test added: navi has no test infrastructure today; flagged with a
TODO(navi) at the change site for when test infra lands.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 09:09:24 -06:00
..
ContactList.jsx feat: add three-dot actions menu to contact cards 2026-04-28 23:34:46 +00:00
ContactModal.jsx feat: geocode search + map pick for contact location 2026-04-28 23:05:28 +00:00
DirectionsPanel.jsx feat: drag-and-drop stop reordering and fix radial add-stop 2026-05-09 15:40:12 +00:00
GpsOriginItem.jsx
LayerControl.jsx feat: Add satellite imagery with Map/Satellite/Hybrid view modes 2026-05-02 02:01:56 +00:00
LocateButton.jsx feat(ui): Redesign bottom-right map control cluster 2026-05-01 23:17:13 +00:00
LocationInput.jsx feat: wilderness maneuvers, pick-from-map, distance formatting, place card panel 2026-05-09 06:09:14 +00:00
ManeuverList.jsx feat: wilderness maneuvers, pick-from-map, distance formatting, place card panel 2026-05-09 06:09:14 +00:00
MapView.jsx fix: apply theme overlay config to contour layers 2026-05-21 21:42:41 +00:00
ModeSelector.jsx fix: mobile UX — GPS permission flow, traffic toggle, overflow 2026-04-22 03:27:21 +00:00
Panel.jsx navi: read auth login/logout URLs from /api/config (extraction #2 PR-C) 2026-05-22 09:09:24 -06:00
PlaceCard.jsx feat: wilderness maneuvers, pick-from-map, distance formatting, place card panel 2026-05-09 06:09:14 +00:00
PlaceDetail.jsx Redesign wiki links in place card 2026-04-29 19:19:19 +00:00
RadialMenu.jsx fix: Save wedge highlights when authenticated 2026-04-29 00:08:08 +00:00
SearchBar.jsx feat: unified routing with Drive mode default and Add stop wedge 2026-05-08 21:59:10 +00:00
StopItem.jsx fix: mobile UX — GPS permission flow, traffic toggle, overflow 2026-04-22 03:27:21 +00:00
StopList.jsx fix: show pendingDestination as visible card when Get Directions clicked 2026-04-27 00:34:27 +00:00
ThemePicker.jsx feat(ui): Show theme name as picker trigger button 2026-05-01 23:00:11 +00:00