Skip to content

Comments

refactor: extract tooltips and simplify map components#15

Open
ztocode wants to merge 5 commits intomainfrom
M1638.002-DGS-33
Open

refactor: extract tooltips and simplify map components#15
ztocode wants to merge 5 commits intomainfrom
M1638.002-DGS-33

Conversation

@ztocode
Copy link
Contributor

@ztocode ztocode commented Feb 13, 2026

Tooltip components:

  • Create Map/tooltip/ folder and move Identify, CommunityIdentify
  • Add EnvironmentalJusticePopupContent (supports UPPER_SNAKE_CASE and PascalCase)
  • Add TrailPopupContent for Major/Regular trail popups
  • Add OpenSpacePopupContent
  • Add BlueBikeStationPopupContent with styled-components

RegionalTrailsProfile:

  • Simplify handleTrailClick with getFeaturesAtPoint, clearAllPopups, showPopup
  • Use props.length_ft only for trail length calculation
  • Add Trail Status Legend and OpenSpace popup with styled-components
  • Replace inline popups with tooltip components

CommunityTrailsProfile:

  • Replace inline EJ, OpenSpace, Blue Bike popups with tooltip components

ProjectMetricsPanel:

  • Add formula explanation text for Total Miles and Complete Rate
  • Total Miles: Existing + Planned + Envisioned + Design + gaps
  • Completed Miles: Existing trails
  • Complete rate: (existing ÷ total) × 100

Other:

  • Move NavigationControl/GeolocateControl to bottom-right
  • Restrict transformRequest to non-Mapbox tile URLs
  • Remove source-map-loader to fix robust-predicates ENOENT build error

@ztocode ztocode self-assigned this Feb 13, 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