feat: replace existing survey prompts with beautiful charm forms#425
feat: replace existing survey prompts with beautiful charm forms#425
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #425 +/- ##
==========================================
+ Coverage 70.43% 70.91% +0.48%
==========================================
Files 221 220 -1
Lines 18607 18450 -157
==========================================
- Hits 13106 13084 -22
+ Misses 4322 4185 -137
- Partials 1179 1181 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mwbrooks
left a comment
There was a problem hiding this comment.
👍🏻 The code changes are looking good!
🧪 I haven't taken this for a test run yet.
❓ Should this PR be set to Draft until we're ready to merge it. Before merging, we'll want to test the new prompts thoroughly as a team.
| cfg.Description("", 0) | ||
| } | ||
| }).Return(tc.mockSelection, nil) | ||
| clients := shared.NewClientFactory(clientsMock.MockClientFactory()) |
There was a problem hiding this comment.
👁️🗨️ question: Can this be checked within iostreams.MatchPromptConfig or does this assert something about the orderings?
There was a problem hiding this comment.
this is going by order!
There was a problem hiding this comment.
@srtaalej Forgive my confusion, but can you explain what L134 is doing? I haven't seen this mock pattern before...
There was a problem hiding this comment.
ah i see its calling Description so that codecov doesnt flag it as uncovered. i can remove it!
internal/iostreams/survey.go
Outdated
zimeg
left a comment
There was a problem hiding this comment.
@srtaalej This is looking fantastic! 🍀 ✨
Before merging let's note that the huh experiment is concluding in docs:
📚 https://docs.slack.dev/tools/slack-cli/reference/experiments
Also I'd like to address the comment I left earlier about testing mocks. Adding this pattern feels odd to me as part of these changes since I understand this to be a clean replacement in otherwise?
Changelog
Summary
This PR completes the migration from the survey library to Charm's huh package for interactive prompts.
The
experiment.Huhflag and all survey-based prompt code have been removed, making huh the permanent and only prompt implementation.The
ThemeSurvey()theme (introduced in the parent PR) ensures visual continuity by matching the legacy survey styling when the Lipgloss experiment is off.Test Steps
Requirements