1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-30 18:49:39 +02:00

Add rule option to change transaction name (#2175)

* Add change name rule for transaction

* Use HTML template in the ERB, clone and inject those templates from the stimulus controller

* Put back the ai_enabled check

* Update docs

* Example of what no case statement would look like

* Remove action_type and needs_value now that controller is injecting templates/hiding action target

* add "to" to template, improve no-option selection, ensure text box is cleared
This commit is contained in:
Alex Hatzenbuhler 2025-05-06 11:11:56 -05:00 committed by GitHub
parent c0267d5665
commit 60c3a04a48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 129 additions and 29 deletions

View file

@ -15,7 +15,8 @@ class Rule::Registry::TransactionResource < Rule::Registry
enabled_executors = [
Rule::ActionExecutor::SetTransactionCategory.new(rule),
Rule::ActionExecutor::SetTransactionTags.new(rule),
Rule::ActionExecutor::SetTransactionMerchant.new(rule)
Rule::ActionExecutor::SetTransactionMerchant.new(rule),
Rule::ActionExecutor::SetTransactionName.new(rule)
]
if ai_enabled?