shoc-frontend-new/src/app/(protected)/settings
npal 86e43b66f4 fix: reset add-item draft on template selection change (SH-378)
TaskTemplateItemsField owns newItemText locally but stays mounted
across selectTemplate/startNewTemplate (which only call form.reset()),
so a typed draft survived switching templates - the base page cleared
this draft explicitly in both handleSelect and handleNew.

Remount TaskTemplateItemsField on selection change via key={selectedId}
instead of lifting the draft into the editor hook: it's transient
input-only state, not form data, so this keeps the fix local and lets
React's own remount semantics reset it. Confirmed the two new
regression tests fail without the key and pass with it.
2026-09-21 20:04:33 -05:00
..
_components fix: reset add-item draft on template selection change (SH-378) 2026-09-21 20:04:33 -05:00
dropdowns.tsx refactor(ui): enforce maintainable conditional feedback 2026-07-24 11:32:58 -03:00
services.tsx refactor(services): split registry management view 2026-09-16 19:05:02 -03:00
task-templates.tsx fix: reset add-item draft on template selection change (SH-378) 2026-09-21 20:04:33 -05:00