Cheat sheet: push-aside panel with exercise-aware focus - #46
Merged
Conversation
Two changes to make the cheat sheet a working companion rather than an overlay: - It now pushes the content aside like the Agent and Playground panels (desktop reading mode, at its own 21rem width), so a learner can keep an inline exercise and the reference on screen together. - When the learner is at a playground or challenge, the sheet narrows itself to the commands that exercise reaches for — playgrounds via their suggested-command walkthrough, challenges via the whole salted kit (the sheet explains, it never solves). A ListFilter toggle in the toolbar turns the focus off and on, and only appears when there is an exercise to focus on; a tinted strip names the exercise so the short list reads as a feature, not missing content. The mapping is pure and tested (exercise-commands.ts): scroll-spy anchors ARE scenario/challenge ids, and challenge-parsing's existing splitSegments/commandWordOf resolve command words per pipeline segment, sudo unwrapped. The panel title drops to "Cheat Sheet" to make room for the new toolbar control; aria-labels stay pinned for e2e. Co-Authored-By: Claude Fable 5 <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.
Re-lands #45, which was accidentally merged into its base branch
ui/sidebar-cleanupinstead of main (#44 merged a minute earlier, so GitHub never retargeted the stack). This is the identical commit cherry-picked onto main — see #45 for the full description and verification notes.exercise-commands.ts+ 10 unit tests; 548 vitest and 51 Playwright pass🤖 Generated with Claude Code