Repository navigation
feat(ui): better flows - #22
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e demo Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
A flow's inputs get their own roomy form, and groups and lists of inputs are drawn as tables instead of a line of raw JSON.
c.object(shape, { label }); neighbouring groups with the same fields are one table, a row each. Cards on narrow widths (container query). One die per row.c.array(item, { min, max, label })has a count field, a remove button per row, and fresh generated values for new rows.defaultmay be a function; each item starts from its own defaults. A list with no value starts atmin(it used to fail Run with defaults andspecbook test).data-specbook-inputs) merge deeply, and Run with defaults includes the preset. A select default other than the first option is honoured in the form, as in the CLI. Errors name the path, e.g.travelers[2].gender.Dynamic inputsflow in theUIgroup, no request, to show the controls.Host.tsx) to keep the embed's first-click size within budget.c.object/c.array) with a link to the demo flow (demo.specbook.dev/#/seq/ui-demo, live once the demo is redeployed), and thenew-petsnippet on that page now shows only the flow's inputs, not its steps.Notes for review
inputs.test.ts,browser/inputs.test.tsx, core control and runner tests), an embed test at desktop width, and I checked that the new ones fail when the behaviour is broken. The two app tests that count the example's flows go from 5 to 6.specbook dev; a reload-free update is planned separately.🤖 Generated with Claude Code