Skip to content

feat(explore): unified explore with entity tabs + Map/List/Hybrid toggle#30

Merged
nicholasalanbrown merged 6 commits intomainfrom
feat/unified-explore
Feb 27, 2026
Merged

feat(explore): unified explore with entity tabs + Map/List/Hybrid toggle#30
nicholasalanbrown merged 6 commits intomainfrom
feat/unified-explore

Conversation

@nicholasalanbrown
Copy link
Contributor

Summary

Refactors the explore experience into a single unified view at /explore with entity tabs and a Map/List/Hybrid layout toggle.

Changes

New components

  • ExplorerTabBar — horizontal tab strip: Utilities, Grid Operators, Power Plants, Programs, Transmission Lines
  • ExplorerToolbar — Map / List / Hybrid 3-way toggle (desktop only)
  • PowerPlantListPanel — power plants in the explorer panel, fuel type filter, capacity sort
  • TransmissionListPanel — transmission lines in the explorer panel, voltage class filter

Refactored

  • ExplorerContext — new tab + layout state fields; URL-synced (?tab=utilities&layout=hybrid); backwards-compat with old ?view= param
  • ExplorerShell — layout-aware: hybrid renders SplitPane, list renders full-width panel, map renders full-width map
  • ExplorerPanel — routes to correct list or detail panel based on active tab
  • ExplorerMap — uses state.tab instead of state.view for grid operator context
  • List panels — removed back buttons (tabs handle entity navigation)
  • Shell layout — simplified top nav to Explore / API / About

Layout behavior

  • Desktop: tab bar + toggle in a single header row. Hybrid = SplitPane. List = full-width panel. Map = full-width map.
  • Mobile: tab bar in header, floating pill button toggles list ↔ map.

Testing

  • tsc --noEmit clean (only pre-existing pmtiles error)

@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opengrid Ready Ready Preview, Comment Feb 27, 2026 2:52pm

Request Review

… toggle

- Add ExplorerTabBar: Utilities, Grid Operators, Power Plants, Programs, Transmission Lines
- Add ExplorerToolbar: Map / List / Hybrid desktop toggle
- Refactor ExplorerContext: tab-based navigation, layout state (hybrid/list/map), URL-synced
- Refactor ExplorerShell: layout-aware rendering (SplitPane for hybrid, full-panel for list/map)
- Mobile: floating List/Map toggle button (no hybrid on mobile)
- Add PowerPlantListPanel: power plants in explorer with fuel filter + capacity sort
- Add TransmissionListPanel: transmission lines in explorer with voltage class filter
- Remove back buttons from list panels (tabs handle entity switching)
- Simplify top nav: Explore / API / About
- Backward-compat: old ?view= URL param still works via parseTab()
…ransmission toggle

- Replace custom toolbar buttons with edges SegmentedControl (size=sm)
- Wire InteractiveMap layers control with onLayerToggle + onMapTypeChange
- Add legend props to transmission-lines, power-plants, ev-charging, pricing-nodes
- Layer visibility state: transmission + power plants on by default, ev/pricing off
- Map type now controlled (neutral default, user can switch via layers panel)
@nicholasalanbrown nicholasalanbrown merged commit 3a211f0 into main Feb 27, 2026
3 checks passed
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