Skip to content

[Air #1505] Stream Deck: bare Scroll on the dial when no builder is selected - #1508

Merged
amrmelsayed merged 7 commits into
mainfrom
builder/air-1505
Aug 18, 2026
Merged

amrmelsayed merged 7 commits into
mainfrom
builder/air-1505

Conversation

@amrmelsayed

@amrmelsayed amrmelsayed commented Aug 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Closes #1505 and #1459 — two small apps/streamdeck/src/actions.ts items batched into one lane.

#1505 — with no builder selected, the Scroll dial's touchstrip still read Scroll · send / Scroll · queue while its press is inert (onDialDown returns early when selectedBuilder() 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 bare Scroll, 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 VerbKey base class recording that its keys draw no runtime face: the manifest Image IS the hardware face, and compositing subclasses (e.g. DevServerAction) render their own face in onWillAppear, 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): when selectedBuilder() is undefined, render a bare Scroll on line 1 with no · send / · queue qualifier. The existing canvas / queue / send branch is untouched and now runs only when a builder is selected. Reused the already-fetched builder handle instead of calling selectedBuilder() twice.
  • VerbKey doc 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.
  • Tests (apps/streamdeck/src/__tests__/actions.test.ts):
    • updated the empty-state guard to assert the bare Scroll title (toEqual);
    • added a rendering guard that the queue delivery mode does not leak into line 1 when nothing is selected;
    • added a behaviour guard that with an empty overview onDialRotate still relays the scroll verb with the workspace path — pinning the "rotation is still live with no builder" premise that justifies a bare Scroll over editor only. Distinct from the rendering guard; catches a future onDialRotate early-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 (onDialRotate relays scroll with only the workspace path), so the axis word Scroll stays — 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 scroll correctly, 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

  • Scope: apps/streamdeck only. No wire protocol or VS Code involvement. Well under the AIR 300-LOC ceiling.
  • Verification: apps/streamdeck check-types 0 errors, esbuild build exit 0, vitest 240 passed.
  • No changelog entry: this is a Stream Deck plugin fix, not the VS Code extension, so neither packages/vscode/CHANGELOG.md nor docs/releases/UNRELEASED.md applies.

AIR protocol: no spec/plan/review files; the review lives in this PR body.

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.
@amrmelsayed
amrmelsayed merged commit ec1f9fe into main Aug 18, 2026
7 checks passed
amrmelsayed added a commit that referenced this pull request Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stream Deck: Scroll dial names a delivery mode with no builder selected (press is inert)

1 participant