feat(report): make top regressions visibly expandable - #29
Merged
Merged
Conversation
The only cue that a regression row expands was an 11.5px dim caret, so the rows read as static. Each section's worst regression now starts open, every row carries a boxed caret and a "Show details" / "Hide details" hint (text dropped at phone width), and the header reacts on hover and shows a focus ring. Print expands every regression where the engine supports ::details-content. CSS only; the report still ships no JavaScript. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Nothing in the report's Top regressions list showed that a row could be opened. The only hint was a faint 11.5px
▸, and the row didn't react to hover, so it looked like a static line.loop.first). Seeing one open also tells readers the others open.details[open]. At phone width only the box shows.::details-content. Other browsers print the rows collapsed.Everything is CSS; the report still ships no JavaScript.
Testing
test_top_regressions_open_first_and_hint_expandable: it failed before the template change and passes after.pre-commit run --all-filespasses: ruff, ruff format,mypy --strict.pytest: 2447 pass, 1 fails.test_the_vendored_schema_matches_the_server_exportcompares this repo's schema copy with a siblingevalshift-servercheckout, and the two have drifted locally. It fails the same way onmainand is skipped in CI, where no sibling checkout exists.r_20260918_planner_31b276) in headless Chromium at 1320px and 390px wide and checked it by eye.🤖 Generated with Claude Code