From 3a596080cb076c0e0a1f27dc4810503d6b13d949 Mon Sep 17 00:00:00 2001 From: dmolinari Date: Tue, 21 Apr 2026 12:47:07 -0300 Subject: [PATCH] fix(frontend): generic delete warning without FAC-001 reference (PRC-001) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User feedback from smoke test: the FAC-001 reference is future-coupled — when the invoicing module lands we would need to remember to update the dialog text. Switched to a timeless message that describes the current behavior: 'La eliminación es posible porque este carácter no está en uso.' It stays accurate before and after the FAC-001 usage guard ships. --- .../__tests__/DeleteChargeableCharConfigDialog.test.tsx | 2 +- .../components/DeleteChargeableCharConfigDialog.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/web/src/features/chargeableChars/__tests__/DeleteChargeableCharConfigDialog.test.tsx b/src/web/src/features/chargeableChars/__tests__/DeleteChargeableCharConfigDialog.test.tsx index 404ee80..459a0ce 100644 --- a/src/web/src/features/chargeableChars/__tests__/DeleteChargeableCharConfigDialog.test.tsx +++ b/src/web/src/features/chargeableChars/__tests__/DeleteChargeableCharConfigDialog.test.tsx @@ -40,7 +40,7 @@ describe('DeleteChargeableCharConfigDialog', () => { await waitFor(() => expect(screen.getByRole('dialog')).toBeInTheDocument()) expect(screen.getByText(/eliminará permanentemente/i)).toBeInTheDocument() expect(screen.getByText(/'\$'/)).toBeInTheDocument() - expect(screen.getByText(/FAC-001/i)).toBeInTheDocument() + expect(screen.getByText(/no está en uso/i)).toBeInTheDocument() }) it('confirm button calls delete mutation and shows success toast', async () => { diff --git a/src/web/src/features/chargeableChars/components/DeleteChargeableCharConfigDialog.tsx b/src/web/src/features/chargeableChars/components/DeleteChargeableCharConfigDialog.tsx index 011bf93..b7d5028 100644 --- a/src/web/src/features/chargeableChars/components/DeleteChargeableCharConfigDialog.tsx +++ b/src/web/src/features/chargeableChars/components/DeleteChargeableCharConfigDialog.tsx @@ -63,8 +63,7 @@ export function DeleteChargeableCharConfigDialog({ - La eliminación es posible porque aún no existe el módulo de facturación (FAC-001). - Cuando se active, no podrán eliminarse símbolos ya usados. + La eliminación es posible porque este carácter no está en uso.