Repository navigation
Layout builder: mark keys that hold other actions, with the ways back - #30
Merged
Merged
Conversation
Keys of the Riglight profile given other actions in the app lose their Riglight Slot, so a layout no longer reaches them, and nothing said so. The runtime now lists the decks that show slots and their keys without one; the layout builder marks those keys "Not in layout" and explains how to put a slot back or restore the whole profile (the SDK lets a plugin neither change nor reset a profile, only switch to a bundled one, which the app offers to add when missing). The virtual deck can replace keys (POST /api/replaced) for the e2e test. Fixes #17 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wh8yKGhaWQVitkQPu8tehD
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.
Requested in the project thread
What and why
Fixes #17. A beta tester gave keys of the Riglight profile other actions in the Stream Deck app. Those keys lost their Riglight Slot, so layout changes stopped reaching them, and nothing explained why.
DeckRuntime.decks()lists the devices that show Riglight Slots, plus their keys without one.decks.listanddecks.openRiglight. The plugin and the virtual deck provide both.The Stream Deck SDK can't change or reset a profile; a plugin can only switch to a bundled one. That's why both ways back are steps for the user. Users can still keep their own actions on the profile, so the note is informational, not an error.
How it was verified
npm run checkpasses (950 tests), with new runtime tests fordecks().POST /api/replaced). The note and the marks appear, the restore button answers, and the note goes away once the slots are back. All layout e2e specs pass.Checklist
npm run checkpassesHardware questions
switchToProfileoffer to re-add a bundled profile that the user deleted? The tester's report suggests it does, but Elgato doesn't document it. Check on a real deck.Generated by Claude Code