Repository navigation
Let a member hide components on their own canvas - #74
Merged
Merged
Conversation
A "Show components" toggle in the file menu leaves component nodes, and sections they empty, off this viewer's canvas. The setting lives in this browser's localStorage, so other members, viewers and agents still see everything. The Design System page always shows its components, and opening a link or comment that targets a component turns them back on. Co-Authored-By: Claude Opus 5.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.
Trigger
Feature pages often carry component sections that serve agents and designers as references. A reviewer who only wants the screens had no way to clear them away, and since only agents can change a canvas, there was nothing a member could do about it.
Behavior
localStorage["sharpner:hide-components"]), shared across files. Nothing goes to the FileRoom, so other members, share-link viewers and agents still see everything. MCP andget_app_stateare unchanged.The filter,
withoutComponents, runs beforelayoutRectsinsideCanvasLayout.page, and the geometry cache keys on the flag.Verification
pnpm test(711 passed),pnpm typecheckandpnpm buildpass. The newsrc/canvas-layout.test.tscovers component and section filtering and the hidden-anchor rule.verify-sharpneron a local instance. I made a page with a screen section, a components-only section and a comment on a component, then checked:design-systempage kept its component while hiding was on🤖 Generated with Claude Code