Repository navigation
Commit fb28790
committed
feat: ask for the variables of a file on a single screen
Experiment: the default reporter asks for all the variables of a file (and
of each template) on one screen, in the style of an onboarding wizard.
- Answered questions collapse to one line and can be edited again (up/down,
tab). The focused question shows its description and input.
- Questions appear and disappear as answers change their when conditions,
and defaults that reference other variables follow the answers.
- Answers are validated when a question is left and on submit (the first
invalid question is focused). Escape cancels.
- VariableResolver: optional form prompter. The form gets the fields for the
current answers and validates answers with the same rules as the resolver,
then the answers are applied as before. Presets and values passed by the
template are not shown. Reporters without a form (plain, json) still ask
one variable at a time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QnBk5xkqnrsLyn9Eco1yn1 parent 81f2f1a commit fb28790
8 files changed
Lines changed: 797 additions & 12 deletions
File tree
- src
- common
- ui
- components
- variable-form
- reporters
- store
- variables
- test/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
182 | 194 | | |
183 | 195 | | |
184 | 196 | | |
| |||
0 commit comments