mysociety / caps

A simple, open database of local government climate action plan documents and emissions data.
https://cape.mysociety.org
Other
9 stars 2 forks source link

Split single tier types #707

Closed zarino closed 1 week ago

zarino commented 1 week ago

Fixes #611.

Adds an "Advanced filter" for authority_type, on the Single Tier scorecard.

Screenshot 2024-11-15 at 18 50 39

While I was there, I also fixed a long-standing code smell, where we had been using authority_type to refer to both actual MapIt council authority types (eg: "UTA", "DIS", "CTY") and Scorecards scoring groups (eg: "single-tier").

This makes the PR look much more complex than it actually is. Best to review each commit separately!

zarino commented 1 week ago

Thanks @struan! I spotted that very cludgey filter description appending behaviour but didn’t want to get even further into the weeds fixing it. Glad you did it instead of me! 🤣