feat(frontend): elicitation Next/Accept, shortcut hints, reviewable answers - #5262
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughAdds stepper-aware SchemaForm state and navigation, exposes reusable form and shortcut APIs, and updates ElicitationWidget with collapsible submitted answers plus step-specific controls. ChangesElicitation stepper flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant ElicitationWidget
participant SchemaForm
User->>ElicitationWidget: Open elicitation
ElicitationWidget->>SchemaForm: Render form
SchemaForm-->>ElicitationWidget: Report step state
User->>ElicitationWidget: Choose Next or previous
ElicitationWidget->>SchemaForm: Navigate step
SchemaForm-->>ElicitationWidget: Update step state
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Context
The paginated elicitation form (the stepper the agent shows to collect input) had three problems. Its only action was "Accept", enabled as soon as the required fields anywhere in the form were filled, so you could submit at step 2 of 5 before seeing later questions. The keyboard shortcuts were undiscoverable. And after submitting, the answers were hidden behind a one-line chip.
Changes
The primary action is now "Next" while you step through questions and becomes "Accept" only on the final review step, enabled once the required fields are filled. Choice-pick no longer auto-advances, so a selection never skips ahead before you see the next question.
A hint row under the form shows the shortcuts that apply to the current question: back and next arrows only when those steps exist, and 1-9 pick only on choice-card questions. Enter stays reserved for sending in the composer.
Submitted answers are now a collapsible summary that reuses the chat's tool-step collapse, so you can expand a settled form and see every value you gave. The answers survive a reload.
Tests / notes
What to QA