Repository navigation
[Air #1505] Stream Deck: bare Scroll on the dial when no builder is selected - #1508
Merged
Merged
Conversation
With nothing selected the Scroll dial's press is inert (onDialDown returns early), so line 1 no longer names a delivery mode it cannot fire: the send/queue qualifier is suppressed and the strip reads a bare Scroll. Rotation still works with no builder (relaying scroll needs only the workspace path), so the axis word stays honest. Mirrors the canvas branch's rule (#1498) that the qualifier appears only where the gesture it names is live.
…tion relays with no builder Gap 1 (#1459): document that VerbKey keys draw no runtime face — the manifest Image is the hardware face; compositing subclasses (DevServerAction) render their own in onWillAppear and treat the manifest image as a placeholder. Gap 2: the 'rotation still works with nothing selected' premise — the reason line 1 is a bare Scroll rather than 'editor only' — was asserted in prose but untested. Add a behaviour guard: with an empty overview, onDialRotate still relays the scroll verb with the workspace path. Distinct from the queue-leak test, which pins rendering. Catches a future onDialRotate early-return that would leave the dial fully inert while line 1 still names a live axis.
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
Closes #1505 and #1459 — two small
apps/streamdeck/src/actions.tsitems batched into one lane.#1505 — with no builder selected, the Scroll dial's touchstrip still read
Scroll · send/Scroll · queuewhile its press is inert (onDialDownreturns early whenselectedBuilder()is undefined). Line 1 named a delivery mode for a gesture that cannot fire. This suppresses the delivery-mode qualifier in the empty state so line 1 reads a bareScroll, mirroring the canvas branch's rule (#1498) that the qualifier appears only where the gesture it names is live.#1459 — a doc comment on the
VerbKeybase class recording that its keys draw no runtime face: the manifestImageIS the hardware face, and compositing subclasses (e.g.DevServerAction) render their own face inonWillAppear, treating the manifest image as the pre-render placeholder.What changed
ScrollNav.renderTo(Stream Deck: Scroll dial names a delivery mode with no builder selected (press is inert) #1505): whenselectedBuilder()is undefined, render a bareScrollon line 1 with no· send/· queuequalifier. The existingcanvas/queue/sendbranch is untouched and now runs only when a builder is selected. Reused the already-fetched builder handle instead of callingselectedBuilder()twice.VerbKeydoc comment (Stream Deck: document on VerbKey that its keys have no runtime face (manifest image is the hardware face) #1459): records the no-runtime-face contract described above.apps/streamdeck/src/__tests__/actions.test.ts):Scrolltitle (toEqual);queuedelivery mode does not leak into line 1 when nothing is selected;onDialRotatestill relays thescrollverb with the workspace path — pinning the "rotation is still live with no builder" premise that justifies a bareScrollovereditor only. Distinct from the rendering guard; catches a futureonDialRotateearly-return that would make the dial fully inert while line 1 still names a live axis.Why line 1 (not line 2)
Line 2 already reads
No builder, so the absent target is stated. The remaining inconsistency was line 1 claiming a live delivery mode on a dead press. Rotation genuinely still works with nothing selected (onDialRotaterelaysscrollwith only the workspace path), so the axis wordScrollstays — only the delivery-mode qualifier, which describes the inert press, is dropped. This closes the last place on the dial where the strip claimed a live mode for an inert gesture — the principle #1498 established.Not in scope
Rotation does not scroll a spec/plan under review (canvas webview, not a text editor): the dial relays
scrollcorrectly, but VS Code applies it to the focused text editor, so nothing moves on a canvas. That is tracked separately as #1501 (needs a new canvas viewport-scroll command spanning wire + VS Code) and is deliberately out of this lane.Review notes
apps/streamdeckonly. No wire protocol or VS Code involvement. Well under the AIR 300-LOC ceiling.apps/streamdeckcheck-types 0 errors, esbuild build exit 0, vitest 240 passed.packages/vscode/CHANGELOG.mdnordocs/releases/UNRELEASED.mdapplies.AIR protocol: no spec/plan/review files; the review lives in this PR body.