reclaim/app/lib/widgets
flemming-it 51beb332c4 feat(ui): ModeBanner replaces DemoBanner + no silent mock-fallback
Two related fixes so the app never silently presents itself as
a demo when it is in fact running against a real hub:

  - The orange 'Demo-Daten · KEINE Rechtsberatung' banner was
    hard-coded into every data screen, regardless of whether
    the active repository was the in-memory MockRepository or
    the live HubRepository. Replaced with ModeBanner, which
    picks one of three voices by repository.mode:

      demo      orange T4 — 'Demo-Daten · KEINE Rechtsberatung'
      hub-live  petrol     — 'Live aus Hub · <endpoint>'
      hub-down  warm-warn  — 'Hub nicht erreichbar — leere Liste'

  - main.dart's _pickRepository used to fall back to
    MockRepository whenever HubRepository.connect() came back
    unhealthy. That silently downgraded a live deployment to
    demo data, which is exactly what the user is trying to avoid.
    Removed: when useHub=true, the HubRepository is returned
    regardless. Its list() returns [] on hub-down, and the
    'hub-down' banner explains why the screens are empty.
    Mock data only shows when the user explicitly turns useHub
    off in the Hub-Reiter.

Also: legend arrow icons now point in the actual axis direction
(→ for Schaden, ↑ for Nutzen) instead of the bidirectional ↔/↕,
which suggested the axes ran both ways. Mini-chips and the
expanded legend rows are consistent.

Signed-off-by: flemming-it <sf@flemming.it>
2026-06-18 15:57:50 +02:00
..
brand_wordmark.dart feat(brand): BrandWordmark renders ∆I in petrol, lifts the logo 2026-06-18 15:06:13 +02:00
delta_mark.dart feat(brand): rename product to Recl∆Im (Reclaim) across app, bundle, docs 2026-06-18 13:42:55 +02:00
evidence_sidebar.dart feat(brand): rename product to Recl∆Im (Reclaim) across app, bundle, docs 2026-06-18 13:42:55 +02:00
heatmap_grid.dart feat(brand): rename product to Recl∆Im (Reclaim) across app, bundle, docs 2026-06-18 13:42:55 +02:00
hub_capabilities_card.dart feat(brand): rename product to Recl∆Im (Reclaim) across app, bundle, docs 2026-06-18 13:42:55 +02:00
mode_banner.dart feat(ui): ModeBanner replaces DemoBanner + no silent mock-fallback 2026-06-18 15:57:50 +02:00
norm_text_card.dart feat(ui): inline the normative text + open-source URL 2026-06-18 13:43:22 +02:00
reclaim_card.dart feat(brand): rename product to Recl∆Im (Reclaim) across app, bundle, docs 2026-06-18 13:42:55 +02:00
source_chip.dart feat(brand): rename product to Recl∆Im (Reclaim) across app, bundle, docs 2026-06-18 13:42:55 +02:00
tier_badge.dart fix(ui): make T1–T4 readable + lift Recl∆Im into the nav rail 2026-06-18 14:44:14 +02:00