whisper-money/resources/js/components/automation-rules
Víctor Falcón faf046b3c4
fix: preview categorizer rule application (#421)
## Summary
- show the existing transaction preview only when the user explicitly
chooses `Apply to existing transactions` from an automation rule row
menu
- keep create/update rule save prompt behavior
- stop opening the apply modal just because the categorizer/onboarding
rules dialog closed

## Videos
### Apply existing rule — categorizer

https://github.com/user-attachments/assets/18806421-340d-4337-998f-308ebe60d11f

### Apply existing rule — onboarding

https://github.com/user-attachments/assets/ad615365-5927-4b2d-b9e5-5f4e20e80dce

### Create new rule — categorizer

https://github.com/user-attachments/assets/55ed2dea-5cec-4e8c-9c5f-d760194bc661

### Create new rule — onboarding

https://github.com/user-attachments/assets/cb045683-e5ce-4b93-9849-5722324848da

## Tests
- `npm test -- --run
resources/js/components/automation-rules/apply-automation-rule-flow.test.ts
resources/js/components/automation-rules/post-save-apply-rule-prompt.test.ts`
- `npx eslint resources/js/hooks/use-categorize-transactions.ts
resources/js/pages/transactions/categorize.tsx
resources/js/components/onboarding/step-categorize-transactions.tsx
resources/js/components/automation-rules/automation-rules-dialog.tsx`
- CI passing
2026-05-25 10:24:21 +02:00
..
apply-automation-rule-dialog.tsx Apply automation rules to existing transactions (#413) 2026-05-22 08:36:18 +02:00
apply-automation-rule-flow.test.ts Apply automation rules to existing transactions (#413) 2026-05-22 08:36:18 +02:00
apply-automation-rule-flow.tsx Apply automation rules to existing transactions (#413) 2026-05-22 08:36:18 +02:00
automate-categorization-dialog.tsx Prompt automation after categorizing transactions (#378) 2026-05-14 09:17:12 +02:00
automation-rule-action-badges.tsx Add labels to automation rules (#379) 2026-05-11 14:56:25 +02:00
automation-rule-form.tsx Prompt automation after categorizing transactions (#378) 2026-05-14 09:17:12 +02:00
automation-rules-dialog.tsx fix: preview categorizer rule application (#421) 2026-05-25 10:24:21 +02:00
create-automation-rule-dialog.tsx Apply automation rules to existing transactions (#413) 2026-05-22 08:36:18 +02:00
delete-automation-rule-dialog.tsx feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00
edit-automation-rule-dialog.tsx Apply automation rules to existing transactions (#413) 2026-05-22 08:36:18 +02:00
post-save-apply-rule-prompt.test.ts Apply automation rules to existing transactions (#413) 2026-05-22 08:36:18 +02:00
post-save-apply-rule-prompt.tsx Apply automation rules to existing transactions (#413) 2026-05-22 08:36:18 +02:00
rule-builder.tsx feat(i18n): add localization test and fix missing Spanish translations (#174) 2026-03-01 12:32:39 +00:00