Repository navigation
feat: the playground opens on a showcase state, not the engine's defaults - #13
Conversation
…ults A page whose subject is a component should open on the component as someone would actually ship it, and shipped components are tuned. 5×5 with no gap at the largest box, so the grid is legible; dot/cell at 198%, past the touching point, so the dots OVERLAP and read as one surface instead of as separate pixels; grow at 3%, because grow is how far a dot changes size over the cycle and at 50% a dot is a pulsing blob rather than a moving light; stagger PINNED at 70% rather than following the preset, so choosing another motion does not move a slider under the visitor. Square silhouette, square dots, radius 0 — the rounded corners are one control away and a rounded dot at 198% overlap hides the grid the size is there to show. The engine's defaults are untouched. That is the library's choice and the page is allowed to disagree with it, so these live in a named `SHOWCASE` beside the component with the reasoning for each, rather than by editing `DEFAULTS` and changing what every consumer gets. Five tests had encoded the old opening state and were rewritten to derive from it instead of asserting it, which is the more useful shape anyway: - the silhouette tests read the cell count off the steppers rather than hardcoding 7×7's 49, and assert the opening value is what is DRAWN rather than `DEFAULTS` - the tighter-axis test derives its grid instead of hardcoding 3×7. At 55% dot/cell 3×7 is tight on y, and at the opening 198% a 3×5 is tight on y too — so the old hardcoded arrangement would have made "gap x only redistributes air" pass for the wrong reason. 6×3 puts the tight axis back on x, and the two assertions swapped accordingly: gap x resizes the dot, gap y does not. - the stagger label test resets first, because the dial now opens pinned One new test asserts the whole opening state value by value, including that the readout agrees with the controls — "it looks right" is not a claim a test can make, and each number is a decision.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe Playground now opens with a named ChangesPlayground Showcase
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Merge Risk: ⚪ Minimal · up to The Playground opens with the documented showcase settings while engine defaults remain unchanged. No PR-introduced issue remains that should block merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Why
A page whose subject is a component should open on the component as someone would
actually ship it — and shipped components are tuned, not defaulted.
Change outline
The values live in a named
SHOWCASEbeside the component, each with the reasoningattached. The engine's
DEFAULTSare untouched — that is the library's choice andthe page is allowed to disagree — so this changes what the page shows, not what every
consumer gets.
Special things to note
the reasoning in
SHOWCASE, not the numbers — the numbers are the easy part to changeand the reasoning is the part that should be argued with.
rather than assert it. One of them was quietly wrong in a way worth naming:
and at the opening 198% a 3×5 is tight on y too. So "gap x only redistributes air"
would have passed for the wrong reason. It now derives a 6×3 grid and asserts the
two axes' roles, which are the opposite of what they were.
DEFAULTS.silhouette; both now readthe grid and the drawn value off the steppers.
dot/pitch 198%withpitch 48.5impliesdot ≈ 96, not the66.2in the same block.At 260px / 5×5 / 198% the engine computes pitch 43.5 · dot 86.1, which is what ships.
The control values were unambiguous and coherent, so those are what are set.
edits — oxfmt clean, registry ok.
🤖 Generated with Claude Code
Summary by CodeRabbit