From 1a8d63373d4cfcd1e8e891414cb2f62df8fe60b3 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 28 Aug 2026 13:34:03 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20mejorar=20el=20componente=20de=20ayuda?= =?UTF-8?q?=20para=20proformas=20y=20ajustar=20pruebas=20de=20actualizaci?= =?UTF-8?q?=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../proforma-update-help-popover.tsx | 20 +- ...build-update-proforma-by-id-params.test.ts | 16 +- .../build-update-proforma-by-id-params.ts | 8 +- .../context/identity-auth-session.context.tsx | 808 +++++++++--------- 4 files changed, 432 insertions(+), 420 deletions(-) diff --git a/modules/customer-invoices/src/web/proformas/update/ui/components/proforma-update-help-popover.tsx b/modules/customer-invoices/src/web/proformas/update/ui/components/proforma-update-help-popover.tsx index a4352db0..76bc1599 100644 --- a/modules/customer-invoices/src/web/proformas/update/ui/components/proforma-update-help-popover.tsx +++ b/modules/customer-invoices/src/web/proformas/update/ui/components/proforma-update-help-popover.tsx @@ -10,6 +10,7 @@ import { Separator, } from "@repo/shadcn-ui/components"; import { AlertCircleIcon, CheckCircle2Icon, CircleDashedIcon, CircleHelpIcon } from "lucide-react"; +import type { ComponentProps } from "react"; import { useTranslation } from "../../../../i18n"; import type { ProformaIssuanceReadiness } from "../../../shared"; @@ -23,7 +24,7 @@ interface ProformaUpdateHelpPopoverProps { onRetryReadiness?: () => void; } -interface HelpTriggerProps { +interface HelpTriggerProps extends ComponentProps { ariaLabel: string; pendingBlockersCount: number; } @@ -39,9 +40,16 @@ interface HelpReadinessSectionProps { translate: (key: string, params?: Record) => string; } -const HelpTrigger = ({ ariaLabel, pendingBlockersCount }: HelpTriggerProps) => { +const HelpTrigger = ({ ariaLabel, className, pendingBlockersCount, ...props }: HelpTriggerProps) => { return ( -