-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
Objective
Add titles and descriptions to form groups using the huh v0.7.0+ feature to improve visual organization and user understanding.
Context
The current interactive form presents all fields in a single flow without clear section separation. Adding group titles and descriptions helps users understand what information is being collected and why.
Approach
Organize the form into logical sections with titles and descriptions:
huh.NewGroup(
huh.NewInput().Title("Workflow Name"),
huh.NewSelect[string]().Title("Trigger"),
huh.NewSelect[string]().Title("Engine"),
).
Title("Basic Configuration").
Description("Let's start with the fundamentals of your workflow"),
huh.NewGroup(
huh.NewMultiSelect[string]().Title("Tools"),
huh.NewMultiSelect[string]().Title("Safe Outputs"),
).
Title("Capabilities").
Description("Select the tools and outputs your workflow needs"),
huh.NewGroup(
huh.NewSelect[string]().Title("Network Access"),
// Network-related fields
).
Title("Network & Security").
Description("Configure network access and security settings"),
huh.NewGroup(
huh.NewText().Title("Workflow Intent"),
).
Title("Instructions").
Description("Describe what you want this workflow to accomplish"),Files to Modify
- Update:
pkg/cli/interactive.go- Add group titles and descriptions
Acceptance Criteria
- Form is organized into 3-4 logical groups
- Each group has a clear title
- Each group has a helpful description
- Navigation between groups is smooth
- Works correctly in both accessible and standard modes
- User feedback indicates improved clarity
Related to [plan] Enhance interactive workflow builder with huh v0.7.0+ features #7216
AI generated by Plan Command for discussion #7214