Hive Hive
Sign in

fix(settings): reset new-product form and drop redundant repo badge

GitHub issue · Closed

Metadata
Source
tuist/hive #22
Updated
Jun 24, 2026
Domains
Hive
Details

Summary

  • Push a phx:reset-form event 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 no value attribute for nil fields, so an LV re-render alone leaves the previous typed text in the DOM.
  • Add a small window.addEventListener("phx:reset-form", ...) in assets/js/app.js that calls form.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_live
  • mix compile --warnings-as-errors
Comments

No GitHub comments yet.