There is a possible codebase improvement: Finish unifying UI/accessibility helpers Most…
Jump to turn (8)
- 1There is a possible codebase improvement: Finish unifying UI/accessibility helpe
- 2What is the benefit of doing this change.
- 3So it would be about unifying code that is supposed to be teh same?
- 4So a helper method that does this already existing and the change is just using
- 5carefully implement the change in all relevant places.
- 6should the is accessible mode helper function be removed? It might be used in th
- 7try to keep other code as unchanged as possible other than the targeted fix.
- 8Make a new branch, push chat logs to entireIO, verify that they are there, and m
- User
There is a possible codebase improvement:
Finish unifying UI/accessibility helpers Most forms use NewAccessibleForm, but autoupdate.go (line 117) still manually builds a themed/accessibility-aware form. This is small, but it’s a good cleanup target because accessibility behavior is explicitly part of the CLI contract. A lint or small grep-based test could prevent new direct huh.NewForm use outside uiform.
Investigate this, determine what needs to be done and if this is a low risk and easily testable change.
- Assistant
I’ll trace the current form helpers and the remaining direct
huh.NewFormusage, then I’ll check whether a small regression test can make that contract enforceable without getting brittle. - Assistant