Hive
fix(settings): reset new-product form and drop redundant repo badge
GitHub issue · Closed
Source
tuist/hive #22
Updated
Jun 24, 2026
Domains
Hive
Summary
- Push a
phx:reset-formevent from the products LiveView on save success, modal close, and cancel, so the new-product modal’s text inputs actually clear — Noora’s<.text_input>renders novalueattribute fornilfields, so an LV re-render alone leaves the previous typed text in the DOM. - Add a small
window.addEventListener("phx:reset-form", ...)inassets/js/app.jsthat callsform.reset()on the matching form id. - Remove the redundant selected-repository badge + Clear button from both the product detail form and the new-product modal; the selection is already shown in the dropdown trigger.
Testing
mix test test/hive_web/components/settings_components_test.exs test/hive_web/live/settings_livemix compile --warnings-as-errors
No GitHub comments yet.