mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
8860e16149
Three things the CI would have caught. The settings dialog's switches are the shared ToggleSwitch now, which is a button with aria-pressed rather than a role="switch" with aria-checked, and three tests still looked for the old shape. The page's wiring test mocks the whole hook, so the day map the timeline reads was undefined there and every case in the file died on it. The mock carries it now, empty, because the fold has a suite of its own. That suite is new: what it pins is the fold rather than the rows inside it, which the panel's own tests already cover end to end. That it says nothing on a quiet day, that the line reads shut, that the count takes the singular at one, that it starts closed, that both actions reach the journal with the stay they belong to, and that the span follows the traveller's own clock. The grouping the hook does moved into the model beside the other pure shaping, where it is four cheap tests instead of a round trip through MSW: by day, in the order they were lived, only what is still waiting, and no bucket at all for a day whose stays are all handled.