Skip to content

Feat add parent views and breadcrumbs#111

Merged
f3-jolt merged 3 commits into
stagingfrom
feat-add-parent-views
Apr 15, 2026
Merged

Feat add parent views and breadcrumbs#111
f3-jolt merged 3 commits into
stagingfrom
feat-add-parent-views

Conversation

@f3-jolt

@f3-jolt f3-jolt commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

👋 TL;DR

Adds Area and Sector stat pages to complete the regional hierarchy (Nation → Sector → Area → Region → AO), plus a PWA-friendly breadcrumb/back-navigation bar, WIP disclaimers on the new pages, an Achievements card, and a unified search modal.

🔎 Details

New pages: Area & Sector

  • /stats/sector/:sectorId — summary card, area breakdown table, charts scaffold
  • /stats/area/:areaId — summary card, region breakdown table, charts scaffold
  • Both pages are wired to new BigQuery loaders (src/lib/bq/sectors.ts, src/lib/bq/areas.ts) and expose the same filter/loader pattern as existing region/AO pages
  • Skeleton loading states included (loading.tsx) for both routes

WIP disclaimer banner

  • Yellow warning banner rendered below the page header on both Area and Sector pages noting the pages are not final

Breadcrumb + back navigation

  • New Breadcrumb component (src/components/breadcrumb.tsx) using @heroui/breadcrumbs
  • Layout: ← Back button (calls router.back()) on the left, breadcrumb trail on the right
  • Added to all stat pages: Nation, Sector, Area, Region, AO, PAX
  • Trails are built from data already loaded on each page — no extra BQ round-trips

✅ How to Test

  • Navigate to a known Sector (/stats/sector/:id) — page renders with summary, area breakdown, breadcrumb bar, and WIP banner
  • Navigate to a known Area (/stats/area/:id) — page renders with summary, region breakdown, breadcrumb bar, and WIP banner
  • On any stat page, tap ← Back — confirm it returns to the previous page in history
  • Confirm the breadcrumb trail shows the correct ancestor links (e.g. on an Area page: Home › Nation › {Sector Name})
  • In a PWA (add to home screen), verify back navigation works correctly via the back button since the browser chrome is hidden

🥜 GIF

lack-of-hustle

@f3-jolt f3-jolt merged commit 3300ff4 into staging Apr 15, 2026
6 checks passed
@f3-jolt f3-jolt deleted the feat-add-parent-views branch April 15, 2026 01:23
@f3-jolt f3-jolt mentioned this pull request Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant