Skip to content

Stream Deck: document on VerbKey that its keys have no runtime face (manifest image is the hardware face) #1459

Closed

Description

@amrmelsayed

Ride-along, not its own lane (same pattern as #1454): add a short comment to VerbKey in apps/streamdeck/src/actions.ts recording which kind of action it is, and fold it into the next PR that touches that file.

What to write (wording is the implementer's, content is the point):

Keys built on VerbKey have no runtime face: they implement onKeyDown only — no renderTo, no setImage — so the manifest States[].Image is the permanent image on the hardware, not a pre-render placeholder. Contrast the compositing actions (SlotKey/BuilderAction, the Gates key, Send Feedback, Run Dev, and ReviewNav's dials), which repaint an SVG face on every render and therefore treat the manifest image as a placeholder only.

Why it is worth a comment. Whether an action composites its own face decides what changing its icon actually affects — picker-only, or picker and the physical key. That was not obvious from either file: I assumed picker-only when filing #1440, and #1444's builder found the opposite by checking the class hierarchy. The next person doing icon work will ask the same question, and the answer lives in a class shape rather than anywhere named.

Established in #1444 (PR #1453); the reasoning is written up in that issue's shipping record.

Activity

  1. added
    area/streamdeck
    on Aug 15, 2026
  2. added a commit that references this issue on Aug 18, 2026
  3. amrmelsayed commented on Aug 18, 2026

    @amrmelsayed
    CollaboratorAuthor

    Shipped in PR #1508 (merge commit ec1f9fe), folded in as a ride-along alongside #1505 since both were edits to apps/streamdeck/src/actions.ts.

    The VerbKey base class now documents that its keys have no runtime face: the base never calls setImage, so the manifest Image IS the hardware face, and compositing subclasses (e.g. DevServerAction) render their own in onWillAppear and treat the manifest image as the placeholder shown until that first render lands.

    Note: this issue did not auto-close on merge. The PR body read Closes #1505 and #1459, and GitHub only honours the keyword before each individual number, so only #1505 was linked. Worth writing Closes #1505, closes #1459 on future multi-issue lanes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/streamdeck

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions