Skip to content

Conversation

elvbom
Copy link
Contributor

@elvbom elvbom commented Sep 30, 2025

✨ What’s Changed?

OK so there's a lot going on here.

First of all, in /components:

  • make ranked list compontents reusable for other entities than municipalities

  • move ranked list components out of municipality component folder into new ranked folder

  • make map components reusable for other entities than municipalities

  • move map components out of municipality compontent folder into new maps folder

  • add component folder regions with first regional components (not used on site atm)

  • rename ranked list on landing page to top lists to make distinction between it and ranked components clearer

In /data:

In /hooks:

  • add useRegions hook for regional data
  • add useNationalData for national data
  • move municipality related hooks to own folder to keep things a bit tidier

Other:

  • add calls to API endpoints /regions and /national-data
  • add regional ranked page (not accessible from header menu)
  • add translations related to changes above
  • add geo json file for Swedish regions
  • add types for entity rankings and regions
  • update sorting of rankings

Run with Klimatbyran/garbo#961 in the backend to access regional data

📸 Screenshots (if applicable)

Screenshot 2025-09-30 at 10 01 17

📋 Checklist

  • PR title starts with [#issue-number]; if no issue is applicable use: [fix], [feat], [prod], or [copy]
  • I've verified the change runs locally both on mobile and desktop
  • I've set the labels, issue, and milestone for the PR
  • [OPTIONAL] I've created sub-tasks or follow-up issues as needed (check if NA)

🛠 Related Issue

Follow ups #1082 #1083

@elvbom elvbom changed the title [feat] make map and ranked lists usable for more entities [feat] make map and ranked lists usable for more entities + regional overview behind feature flag Sep 30, 2025
@elvbom elvbom added enhancement New feature or request chore code cleaning/maintanence labels Sep 30, 2025
@elvbom elvbom marked this pull request as ready for review September 30, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore code cleaning/maintanence enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant