Skip to content

refactor(experiment): separate huh and lipgloss changes of charm#411

Merged
zimeg merged 3 commits intomainfrom
zimeg-experiment-charm-huh-lipgloss
Mar 18, 2026
Merged

refactor(experiment): separate huh and lipgloss changes of charm#411
zimeg merged 3 commits intomainfrom
zimeg-experiment-charm-huh-lipgloss

Conversation

@zimeg
Copy link
Copy Markdown
Member

@zimeg zimeg commented Mar 18, 2026

Changelog

N/A - Though changes to the experiments page are included! 🧪 ✨

Summary

This PR separates the huh and lipgloss changes of charm experiment into separate experiments to keep changes of prompts and style ordered toward stable release 🎁

Preview

Before changes:

$ slack create -e charm

After changes:

$ slack create -e huh -e lipgloss

Requirements

@zimeg zimeg added this to the Next Release milestone Mar 18, 2026
@zimeg zimeg self-assigned this Mar 18, 2026
@zimeg zimeg added the code health M-T: Test improvements and anything that improves code health label Mar 18, 2026
@zimeg zimeg requested review from a team as code owners March 18, 2026 07:16
@zimeg zimeg added experiment Experimental feature accessed behind the --experiment flag or toggle semver:patch Use on pull requests to describe the release version increment labels Mar 18, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 58.20896% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.47%. Comparing base (bc159a6) to head (1d82863).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/iostreams/charm.go 60.00% 10 Missing ⚠️
internal/style/template.go 0.00% 7 Missing and 1 partial ⚠️
internal/iostreams/prompts.go 0.00% 5 Missing ⚠️
internal/style/style.go 90.90% 2 Missing ⚠️
cmd/help/help.go 50.00% 0 Missing and 1 partial ⚠️
cmd/project/create_samples.go 50.00% 1 Missing ⚠️
internal/iostreams/printer.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #411   +/-   ##
=======================================
  Coverage   68.46%   68.47%           
=======================================
  Files         218      218           
  Lines       18058    18063    +5     
=======================================
+ Hits        12364    12368    +4     
- Misses       4538     4539    +1     
  Partials     1156     1156           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Thank you so much for breaking these out! Confidence toward a huh release is feeling higher, scope is smaller, and focus is stronger 💪🏻 I imagine this was a tedious task, but I appreciate it! 🙇🏻

❓ Left a non-blocking question - just something to think about but not take action on right now.


Below is a list of updates related to experiments.

- **March 2026**: Split the `charm` experiment into more beautiful `huh` prompts and prettier `lipgloss` styles for ongoing change.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏻

@@ -14,19 +14,29 @@

package iostreams
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Long-term, is there a more appropriate filename than charm.go? As a new maintainer I may not connect that two packages - huh and lipgloss - are from the same group charm. I see the newForm constructor uses both, but I wonder if we have an opportunity for a huh.go instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mwbrooks I share this feeling. The terms "charm" or "huh" or "lipgloss" are meaningful for package imports but we might want to refactor this into a different packages once experiments conclude:

  • internal/iostreams/charm.go -> internal/iostreams/forms.go

I'm not against huh.go either but it takes me a second to realize it's asking for input the same 😉

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forms.go is a good choice as well!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mwbrooks Cool cool! I'll hold off on changing that for another PR but it might be a good step toward the conclusions of huh experiment!

@zimeg
Copy link
Copy Markdown
Member Author

zimeg commented Mar 18, 2026

@mwbrooks Thank you for sharing your thoughts on these changes overall 🍀 ✨

We're bringing the huh part of these experiments to neartime conclusion or at least more thorough testing much sooner I think so let's merge this next! 📺

@zimeg zimeg enabled auto-merge (squash) March 18, 2026 23:52
@zimeg zimeg merged commit dd6fef0 into main Mar 18, 2026
7 checks passed
@zimeg zimeg deleted the zimeg-experiment-charm-huh-lipgloss branch March 18, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code health M-T: Test improvements and anything that improves code health experiment Experimental feature accessed behind the --experiment flag or toggle semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants