whisper-money/resources/js/components/automation-rules
Víctor Falcón faccbc3c5a
refactor(js): use InputError for inline form errors (#483)
## What

15 hand-rolled `{errors.x && <p className="text-sm
text-red-500">...</p>}` blocks across 6 components (label/category
create+edit dialogs, automation-rule form, rule builder) replaced with
the existing `InputError` component.

Bonus: `InputError` uses `text-red-600 dark:text-red-400` — the inline
copies had **no dark-mode variant** (CLAUDE.md requires dark-mode
support).

## Stats

- **-63 / +21 lines**

## Checks

- `bun run test` — 154 passed
- `bun run lint` / `format` — clean (1 pre-existing warning)
- `tsc --noEmit` — 59 pre-existing errors, none new

Part of duplication-removal series (#475–#482).
2026-06-03 19:01: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 refactor(js): use InputError for inline form errors (#483) 2026-06-03 19:01:21 +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 refactor(js): use InputError for inline form errors (#483) 2026-06-03 19:01:21 +02:00