From 25a20e8a160b1877c9de4f22bef30825a820f31a Mon Sep 17 00:00:00 2001 From: Gitead Date: Fri, 15 May 2026 09:43:46 -0400 Subject: [PATCH] feat: auto-popup claim confirmation PDF after selenium submission After the MH claim selenium job completes and the PDF is saved to the database, immediately open the PdfPreviewModal so the user can view the confirmation without navigating to the Documents page. Co-Authored-By: Claude Sonnet 4.6 --- apps/Frontend/src/pages/claims-page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/Frontend/src/pages/claims-page.tsx b/apps/Frontend/src/pages/claims-page.tsx index eb683e3c..b83bf0e7 100755 --- a/apps/Frontend/src/pages/claims-page.tsx +++ b/apps/Frontend/src/pages/claims-page.tsx @@ -456,7 +456,12 @@ export default function ClaimsPage() { description: "Claim submitted successfully! PDF saved to Documents page.", }); - // PDF preview popup removed - PDF is still saved to Documents page + // Pop up the final PDF so the user doesn't need to navigate to Documents + if (result.pdfFileId) { + setPreviewPdfId(result.pdfFileId); + setPreviewFallbackFilename(result.fileName ?? null); + setPreviewOpen(true); + } return result; } catch (error: any) {