1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 14:19:39 +02:00
Maybe/app/javascript/controllers
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
..
rule Fix AND prefix on rule form (#2234) 2025-05-13 10:34:41 -04:00
app_layout_controller.js Pre-launch design sync with Figma spec (#2154) 2025-04-30 18:14:22 -04:00
application.js Pre-launch design sync with Figma spec (#2154) 2025-04-30 18:14:22 -04:00
auto_submit_form_controller.js Fix budget allocation forms from resetting and clearing data on slow networks (#1804) 2025-02-05 09:09:38 -05:00
budget_form_controller.js Budgeting V1 (#1609) 2025-01-16 14:36:37 -05:00
bulk_select_controller.js Pre-launch design sync with Figma spec (#2154) 2025-04-30 18:14:22 -04:00
category_controller.js feature(dark mode): misc design fixes (#2215) 2025-05-07 09:26:06 -04:00
chat_controller.js Personal finance AI (v1) (#2022) 2025-03-28 13:08:22 -04:00
clipboard_controller.js Add BiomeJS for Linting and Formatting JavaScript relates to #1295 (#1299) 2024-10-14 17:09:27 -04:00
color_avatar_controller.js Pre-launch design sync with Figma spec (#2154) 2025-04-30 18:14:22 -04:00
color_select_controller.js Add BiomeJS for Linting and Formatting JavaScript relates to #1295 (#1299) 2024-10-14 17:09:27 -04:00
confirm_dialog_controller.js Pre-launch design sync with Figma spec (#2154) 2025-04-30 18:14:22 -04:00
deletion_controller.js Pre-launch design sync with Figma spec (#2154) 2025-04-30 18:14:22 -04:00
donut_chart_controller.js feature(dark mode): misc design fixes (#2215) 2025-05-07 09:26:06 -04:00
element_removal_controller.js Add BiomeJS for Linting and Formatting JavaScript relates to #1295 (#1299) 2024-10-14 17:09:27 -04:00
file_upload_controller.js Feature: Implement Mobile Responsiveness (#2092) 2025-04-18 08:23:10 -05:00
focus_record_controller.js Preserve transaction filters and transaction focus across page visits (#1733) 2025-01-30 14:12:01 -05:00
hotkey_controller.js Add BiomeJS for Linting and Formatting JavaScript relates to #1295 (#1299) 2024-10-14 17:09:27 -04:00
import_controller.js Feature: Add "amount type" configuration column for CSV imports (#1947) 2025-04-18 10:48:10 -04:00
index.js Add BiomeJS for Linting and Formatting JavaScript relates to #1295 (#1299) 2024-10-14 17:09:27 -04:00
intercom_controller.js Pre-launch design sync with Figma spec (#2154) 2025-04-30 18:14:22 -04:00
list_filter_controller.js Dashboard design fixes (#1898) 2025-02-25 17:28:40 -05:00
list_keyboard_navigation_controller.js Add BiomeJS for Linting and Formatting JavaScript relates to #1295 (#1299) 2024-10-14 17:09:27 -04:00
mobile_cell_interaction_controller.js Feature: Implement Mobile Responsiveness (#2092) 2025-04-18 08:23:10 -05:00
money_field_controller.js Add BiomeJS for Linting and Formatting JavaScript relates to #1295 (#1299) 2024-10-14 17:09:27 -04:00
onboarding_controller.js New onboarding, trials, Stripe integration (#2185) 2025-05-01 16:47:14 -04:00
password_validator_controller.js Feature: Implement Mobile Responsiveness (#2092) 2025-04-18 08:23:10 -05:00
password_visibility_controller.js Feature: Implement Mobile Responsiveness (#2092) 2025-04-18 08:23:10 -05:00
plaid_controller.js Enhance Plaid connection management with re-authentication and error handling (#1854) 2025-02-12 12:59:35 -06:00
profile_image_preview_controller.js Feature: Implement Mobile Responsiveness (#2092) 2025-04-18 08:23:10 -05:00
rules_controller.js Fix AND prefix on rule form (#2234) 2025-05-13 10:34:41 -04:00
selectable_link_controller.js Preserve transaction filters and transaction focus across page visits (#1733) 2025-01-30 14:12:01 -05:00
sidebar_tabs_controller.js feature(dark mode): misc design fixes (#2215) 2025-05-07 09:26:06 -04:00
theme_controller.js feature(dark mode): misc design fixes (#2215) 2025-05-07 09:26:06 -04:00
time_series_chart_controller.js feature(dark mode): misc design fixes (#2215) 2025-05-07 09:26:06 -04:00
tooltip_controller.js Add BiomeJS for Linting and Formatting JavaScript relates to #1295 (#1299) 2024-10-14 17:09:27 -04:00
trade_form_controller.js Improve account transaction, trade, and valuation editing and sync experience (#1506) 2024-11-27 16:01:50 -05:00
transaction_form_controller.js Fix: Filter categories by transaction type in forms (#2082) 2025-04-25 10:18:10 -04:00
transfer_match_controller.js Transfer and Payment auto-matching, model and UI improvements (#1585) 2025-01-07 09:41:24 -05:00