1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00
Maybe/app
Alex Hatzenbuhler 30d3eef67f
Fix AND prefix on rule form (#2234)
* Fix AND prefix on rule form

This new condition prefix data target is used to ensure the AND prefix is added/removed to additional conditions/groups when there aren't any saved conditions yet.

* Ensure the condition group "Add condition" button is type button to avoid form submission

* Add prefix update when removing a subcondition

* Use data condition to update the prefix on conditions, condition groups, and subconditions

* Use condition remove instead of element remove for condition groups so prefix logic runs

* Add back explicit show_prefixes to ensure subconditions never have a prefix

* Run the prefix update runs on a load of a form, which handles prefixes on an edit since no conditions change

* Ensure saved items that are marked for removal don't impact the index

* Simplify logic since we don't process subconditions

* Clean up comments

* Add primary_condition_title field to rule model
2025-05-13 10:34:41 -04:00
..
assets Fix select contrast issues in dark mode forms 2025-05-07 10:23:06 -04:00
channels/application_cable Report ActionCable errors to Sentry 2025-03-17 17:26:19 -04:00
components Use icon helper for all-the-things (#2191) 2025-05-06 12:08:18 -04:00
controllers Propagate child sync errors up to parent, fix sync status (#2232) 2025-05-09 14:56:49 -04:00
helpers Prevent account deletions when account is linked to a Plaid Item (#2218) 2025-05-07 13:56:20 -04:00
javascript Fix AND prefix on rule form (#2234) 2025-05-13 10:34:41 -04:00
jobs New onboarding, trials, Stripe integration (#2185) 2025-05-01 16:47:14 -04:00
mailers Allow users to update their email address (#1745) 2025-01-31 11:29:49 -06:00
models Fix AND prefix on rule form (#2234) 2025-05-13 10:34:41 -04:00
views Fix AND prefix on rule form (#2234) 2025-05-13 10:34:41 -04:00