Repository navigation
feat: add interactive controls (button, switch, text input) - #4
Merged
Merged
Conversation
Tap button with a counter, a Dark accent switch and a name input that echoes back, so agents can tap and type in the tutorial. Colors live in theme.js.
|
Nice change, @janicduplessis! Thanks for trying Stim. This repo is the Stim tutorial app, so we close tutorial PRs automatically. See you in your next worktree. If Stim saved you some time, a ⭐ on appandflow/stim would make our day. |
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.
Adds three controls below the existing title and subtitle so agents can tap and type while verifying changes, and Stim Desktop records those as agent actions: a "Tap me" button with a counter, a "Dark accent" switch that recolors the card, and a "Your name" input that echoes "Hello, ". Each has an accessibility label and a testID, so agent-device snapshots name them. Colors for the button, switch track, card and input border live in
theme.js(buttonColor,buttonTextColor,accentColor,darkAccentColor,inputBorderColor). No new dependencies; the title, subtitle,titleColor,backgroundColor, the[stim:tutorial]log line, the readiness signals andexpo.extra.stimTutorialare unchanged.How it was verified
stim logs --errorsreturned no records.stim logs --source agentshowed the snapshot, three taps on "Tap me", the switch toggle and the fill of the name input; the app then showed "Tapped 3 times" and "Hello, Janic".Built and verified with Stim.