bug: Epic arrows on the Plan page never turn when opened or closed
Back to our planProblem
In plain words: on the public Plan page, the little arrow on each epic never changes. It points up whether the epic is open or closed, so a neighbor can't tell which it is. The milestone arrow above it works.
The page already uses the shared Disclosure from the UI kit for milestones and epics. The fault is inside that component: its arrow turns whenever any open box around it is open, not only its own. An epic sits inside an open milestone, so its arrow is always turned.
Steps to reproduce
- Open the Plan page (
/roadmap). - Open any milestone.
- Look at the arrows on the epics inside it: all point up while closed.
- Open one epic: its arrow looks exactly the same.
- A closed milestone shows a down arrow, as it should.
Checked on the live site on 2026-11-09. In the browser, each closed epic's arrow has a 180 degree turn (it should have none), and opening or closing an epic changes nothing. Annotated screenshots of the closed and open states are below.
Closed epics: each arrow points up, the same as an open milestone (red boxes).
<img width="1512" height="812" alt="Image" src="https://github.com/user-attachments/assets/f5f79241-8b92-4077-98d7-6783402fda0e", opens in a new tab />
An open epic: its arrow looks exactly the same as when it is closed (red box).
<img width="1512" height="812" alt="Image" src="https://github.com/user-attachments/assets/c53e6d36-fc8a-4db3-b7f1-7a1bfb7c576e", opens in a new tab />
Details
src/platform/ui/Disclosure.tsxturns the arrow withgroup-open:rotate-180, and each box carries the plaingroupclass. In Tailwind,group-open:matches any ancestorgroupthat is open, so a box nested inside an open box is always "open" as far as its arrow goes.- A named group (
group/name) has the same problem, because it also matches any ancestor with that name. - The same applies to any other place a
Disclosuresits inside another one, now or later.
Proposed fix
Make the arrow react only to its own box, for example with a selector on the direct parent ([details[open]>summary>&]:rotate-180, written as one Tailwind variant), and drop the plain group class if nothing else in the file needs it. No new component and no change to the Plan page: it keeps using the shared Disclosure.
Acceptance criteria
- Not done: An epic's arrow points down when it is closed and up when it is open, inside an open milestone.
- Not done: A milestone's arrow still works, and so do the FAQ list, the "On this page" bar and the chart "smaller pieces" rows.
- Not done: A test covers a
Disclosureinside an openDisclosureand fails on the old class. - Not done: The UI kit gallery shows a nested example, and it is checked in a browser in light and dark.
- Not done: The Plan page is checked on the live site after the deploy.
- Not done: Nothing outside the kit writes a raw
detailsorsummary.
Files likely touched
src/platform/ui/Disclosure.tsx, src/platform/ui/Disclosure.test.tsx, src/app/(frontend)/dev/gallery/DisplayGallery.tsx
Must not touch
src/modules/roadmap/
Open questions
None. Note: src/platform/ui/ is a shared hot spot, so the overlap check applies before anyone claims this.
Area
frontend, styling, ux
Priority
medium
Part of #919 (Plan and board automation), where the Plan page was built.
Generated by Claude Code, opens in a new tab