1.1 KiB
1.1 KiB
id, title, status, assignee, created_date, labels, dependencies, references, priority
| id | title | status | assignee | created_date | labels | dependencies | references | priority | |
|---|---|---|---|---|---|---|---|---|---|
| ML-81 | Inconsistent toast arity in form components | Done | 2026-04-20 08:57 |
|
medium |
Description
GitHub: created 2026-03-05 · updated 2026-03-05 · closed 2026-03-05
Priority: Medium
Description
Form components (LiveComponents) should use put_toast!/2 (arity 2), but most currently use put_toast/3 (arity 3, intended for LiveViews):
Using put_toast/3 (incorrect for LiveComponents):
lib/music_library_web/live/scrobble_rules_live/form.ex:97,112lib/music_library_web/live/online_store_template_live/form.ex:121,136lib/music_library_web/live/scrobbled_tracks_live/form.ex:113lib/music_library_web/live/artist_live/form.ex:271,303
Using put_toast!/2 (correct):
lib/music_library_web/live/record_set_live/form.ex:75,88
Expected behavior
All form components should use put_toast!/2 consistently.
Source
From technical debt audit (2026-03-05).