Fix action value rendering for text-type executors in rule form (#527)

* Initial plan

* Fix transaction name rule rendering and add tests

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>

* Remove redundant integration tests for set_transaction_name

The functionality is already covered by existing unit tests in test/models/rule/action_test.rb. The core fix for this PR is the view rendering logic, not the action functionality.

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>

* Localize placeholder text for rule action value input

Replace hardcoded "Enter a value" placeholder with localized t() lookup at lines 22 and 41 in app/views/rule/actions/_action.html.erb. Add corresponding translation key to config/locales/views/rules/en.yml under rules.actions.value_placeholder.

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
This commit is contained in:
Copilot
2025-12-31 10:46:26 +01:00
committed by GitHub
parent 4946dd7441
commit 10b15061b8
2 changed files with 10 additions and 5 deletions

View File

@@ -2,6 +2,8 @@
en:
rules:
no_action: No Action
actions:
value_placeholder: Enter a value
recent_runs:
title: Recent Runs
description: View the execution history of your rules including success/failure status and transaction counts.