Skip to content

Feat/UI tabs - #936

Draft
AlexAxthelm wants to merge 6 commits into
feat/metadata-v2-schemafrom
feat-ui-tabs
Draft

Feat/UI tabs#936
AlexAxthelm wants to merge 6 commits into
feat/metadata-v2-schemafrom
feat-ui-tabs

Conversation

@AlexAxthelm

Copy link
Copy Markdown
Collaborator

Summary

Related issues

Closes:

Testing

Checklist

  • PR is focused on a single concern
  • Tests pass locally and in CI
  • Docs updated for user-visible changes
  • AI-assisted portions declared (see CONTRIBUTING.md)

repro and others added 5 commits August 28, 2026 19:12
Split the single scrolling pathway detail page into a four-tab layout
(At a glance / Overview / Timeseries / Scope & Granularity) per Jacob's
wireframe, with a sticky sector + tab bar that persists on scroll.

- Add an accessible Tabs/TabPanel primitive (WAI-ARIA tabs pattern:
  roving tabindex, Arrow/Home/End keys, aria-selected/controls wiring).
- Back the active tab with a `?tab=` query param via a useActiveTab hook
  so tabs are deep-linkable, shareable, and survive reload/back. The URL
  mechanism is isolated behind the hook for a cheap later swap to path
  segments.
- Move existing v1 content into tabs: At a glance (Expert Overview, plot,
  Key Features, coverage panels), Timeseries (Supplemental Info + plot).
- Render labeled placeholders for the wireframe sections that need the
  metadata-v2 schema (#898): Assumptions & Trends, Dependencies, and the
  Data Availability table.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Render the pathway's dependencies (conditions its outcomes rely on) as a
table in the Overview tab, replacing the placeholder. Columns: Dependency,
Evidence type (a strength-colored badge), and Constraint. A Sector column
is shown only when the rows span more than one sector, so single-sector
pathways match the three-column wireframe. An empty dependency list renders
an explanatory empty state, since authoring is incremental.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Render coreDrivers as the Assumptions & Trends Overview in the Overview
tab, replacing the last placeholder: one card per driver (Policies,
Emissions targets, Technology costs, Investment, Macroeconomic drivers,
Behavioral shifts, Other drivers). A null driver is shown as an explicit
"not a core driver for this pathway" note rather than hidden, matching the
schema's distinction between an absent driver and an undescribed one. Drops
the now-unused SectionPlaceholder.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mount PathwayDetailPage with a complete v2 fixture and assert each section
routes to the right tab: Expert Overview on At a glance, coreDrivers +
dependencies on Overview, dataAvailability on Scope & Granularity, plus
deep-linking via ?tab=. Kept in its own file for mergeability.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@AlexAxthelm AlexAxthelm mentioned this pull request Aug 28, 2026
@AlexAxthelm
AlexAxthelm changed the base branch from main to feat/metadata-v2-schema August 28, 2026 17:41
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