Skip to content

[plan] Add group titles and descriptions to interactive form #7219

@github-actions

Description

@github-actions

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

AI generated by Plan Command for discussion #7214

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions