-
Notifications
You must be signed in to change notification settings - Fork 34
Open
0 / 50 of 5 issues completedOpen
0 / 50 of 5 issues completed
Copy link
Labels
Description
Overview
This tracking issue covers improvements to the interactive workflow creation wizard (pkg/cli/interactive.go) based on the comprehensive review of the charmbracelet/huh library.
Source: Discussion #7214
gh-aw is already on the latest version (v0.8.0), but we're not leveraging several powerful features introduced in v0.7.0+ that would significantly improve the user experience.
Current Status
✅ Strengths:
- Proper accessibility mode detection
- Custom validation with clear error messages
- Autocomplete suggestions for workflow names
- Clean, well-organized code structure
- Not using dynamic forms features (v0.7.0+)
- No group titles/descriptions for visual organization
- No file overwrite confirmation dialog
- Validation functions are inline (not testable)
Planned Tasks
This work is organized into quick wins that can be implemented independently:
- Add Confirm field for file overwrite - Replace error with interactive confirmation (~5 min)
- Extract validation functions - Make validation testable and reusable (~15 min)
- Add group titles and descriptions - Improve form navigation and clarity (~10 min)
- Enhance accessibility detection - Add
ACCESSIBLEenv var per best practices (~2 min) - Add spinner integration - Show progress during workflow compilation (~30 min)
Success Criteria
- Users get interactive confirmation instead of errors when files exist
- Validation logic is testable and maintainable
- Form sections are clearly organized with titles
- Accessibility mode works with
ACCESSIBLEenvironment variable - Compilation shows progress feedback
Impact
Total Effort: ~1 hour
User Experience: Significantly improved professional-grade interactive experience
Code Quality: Better maintainability and testability
Related
- Discussion Go Module Review: charmbracelet/huh #7214 - Full Go module review with detailed recommendations
AI generated by Plan Command for discussion #7214