feat: sticky note selection UI and sidebar panel - #4
Merged
Merged
Conversation
- StickyNote accepts a `selected` prop; when true, renders blue accent border, glow shadow, and tinted header — matching ScreenNode's visual selection language - Click handler calls onSelect before drag so single-click selects the note without requiring a separate click - New StickyNoteSidebar panel (mirroring Sidebar.jsx structure) shows color picker, author input, content textarea, and delete button for the selected note - Drawd wires selectedStickyNote state to the selected prop; selecting a sticky note clears screen/connection/hotspot/group selection and vice versa; click-away and Escape/Delete keyboard handling already existed
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
2px solid #61afefborder, blue glow shadow, and tinted header, matching the existing ScreenNode selection visual languageFiles Changed
src/components/StickyNote.jsxselected/onSelectprops; visual state cascade (multi > single > default)src/components/StickyNoteSidebar.jsxsrc/Drawd.jsxselected/onSelect; renderStickyNoteSidebar; mutual-exclusion clear on screen selectTest plan
npm test— 229 tests passnpx vite build— clean build