What's New
Bug Fixes
Reminder toggle not saved when editing a subscription (#119)
Enabling or disabling reminders while editing a subscription is now persisted correctly.
Previously, the edit form submitted a hidden reminder_enabled=false immediately before the checkbox's reminder_enabled=true. Gin's PostForm/GetPostForm return the first value of a repeated field, so the checkbox was always ignored and reminders were saved as disabled regardless of the toggle.
- Both the create and update handlers now read the last value of
reminder_enabled, so the standard hidden-input + checkbox pattern works in every case (enable, disable, and field-absent). - The "reminders disabled" mute icon now also renders on the full Subscriptions page, matching the htmx list partial (previously it only appeared after an htmx refresh).
Technical Changes
internal/handlers/subscription.go: usePostFormArray("reminder_enabled")and take the last value inCreateSubscriptionandUpdateSubscription.templates/subscriptions.html: render the reminder mute icon on initial page load.- Added
internal/handlers/subscription_reminder_test.go— regression test covering enable/disable/absent cases.
Thanks to @ajwalkiewicz for reporting #119.