Repository navigation
fix(devknobs): grab tray follows the page theme and keeps one note - #113
Merged
Merged
Conversation
…s whole labels The tray took the label's inverted theme, so it was light on dark pages. Mounted nodes now get data-page from the page's own theme, read at mount. Per-element notes and their n focus are gone. One note covers the selection and goes last in the copy. One element with no note still copies its line alone. The list's implicit grid column grew to the rows' min-content, and the list, a scroll container, scrolled sideways on focus, cutting the start of a row. The column is now minmax(0, 1fr) and the label takes the row.
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.
Round 2 of grab multi select (#112), from Mert's review of the tray.
What changed
nfocuses the one note, Return adds a line in it, and ⌘↩ copies.minmax(0, 1fr), and a long label only gets "..." at its end.Nothing was copied from agentation (PolyForm Shield 1.0.0). This is our own code.
Proof
n, type a note, ⌘↩. The tray hasdata-page="dark"and backgroundrgb(22, 22, 22). Copied text:data-page="light"and shows light.scrollWidth 427againstclientWidth 368,scrollLeft 27.5after focus, so the start of the label was cut. After the fix:368/368,scrollLeft 0, and the label start shows.formatPicks([one]) === joinEntries([one])).bun testin packages/devknobs: 4696 pass, 0 fail. Web tests: 71 pass. Typecheck, lint and format check are clean.Weakened checks
None. The removed tests covered the per item notes, and that feature is gone.
Risk
Low. Grab tray UI only, not released yet (Unreleased in the CHANGELOG).
GrabEntry.notewas removed, but it only existed in the unreleased #112.How to revert
Revert this PR's squash commit on main. No release, data or config depends on it.