Playground: compare selected systems - #1056
Merged
Merged
Conversation
Add a "compare selected systems" feature to the playground and fix several usability issues found along the way. Compare selected systems: - Shift/Ctrl/Cmd-click, right-click, or long-press (touch) a system to toggle it into a multi-selection, highlighted bright blue. A plain click/tap clears the selection. - When a selection exists, "Run all" arms yellow as "Run selected (N)" and the competition runs only among the selected systems. - The selection is remembered in the URL (?compare=a,b,c) so a link reopens with the same systems highlighted. - A hint (top-right on hover, static caption on touch) explains the gestures. Other improvements: - Remember the selected example query in the URL (?example=N). - On Run / Run all, smooth-scroll to the results (mobile usability). - Competition results panel now fits its content, growing up to the viewport height then scrolling inside the rail. - Fix a persistent horizontal scrollbar: the per-slab uptime balloons were laid out (visibility:hidden) at all times; render them only on hover (display:none). Also stop flex from shrinking slabs and cap the example <select> width. - When opened from file://, fall back to the production API if no local dev server is running. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Adds a compare selected systems feature to the playground, plus a set of usability fixes discovered while building it.
Compare selected systems
?compare=a,b,c), so a shared link reopens with the same systems highlighted and the button armed.Other improvements
?example=N), restored on reload / shared links.visibility:hidden) at all times, inflating the page scroll width; they're now rendered only on hover (display:none). Also stopped flex from shrinking slabs and capped the example<select>width.All changes are confined to
playground/(app.js,index.html,style.css), with cache-busting versions bumped.Test plan
?compare=…&example=…and confirm the systems + query are restored.🤖 Generated with Claude Code