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

Scorecards 2023 Bugs #586

Closed lucascumsille closed 1 year ago

lucascumsille commented 1 year ago

❗️ Tick an item off as soon as you’ve committed the fix to 589-scorecards-bugs 👍

Social graphics

Homepage

Section child page

Council page

lucascumsille commented 1 year ago

Sorry @struan I know I had told you that we would follow the same behaviour as the methodology page. But yesterday with @zarino decided to display Single tier by default.

Like /sections/, /sections// doesn’t currently show a table, by default, on pageload. As above, I think this page should behave like the homepage, with the "Single Tier" button pre-selected (or "Combined Authority" if this is a section that only applies to CAs), until the user chooses otherwise.

My thought in order to prevent:

Even worse, when you click that council type button, the entire page reloads and you’re left staring at the top of the new page, while the table of questions is (in my case) at least two full page scrolls down below. Yuck.

It would be to add an ID to the table section, and add that id to the buttons. For example {% url 'scoring:section' section.code %}?type=county/#table-id

For this issue:

When you "select" a council type button under "show questions by type of council" on /sections//, the button doesn’t display as "active".

Is it too much hassle to add a body class like single-tier combined? that way controlling the active effect via CSS would be quite simple. I think we could achieve it with JS, but probably it would have less hassle with Django.

lucascumsille commented 1 year ago

@zarino and @struan I have created this ticket to capture any bugs that might need fixing during next week.