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 <noreply@anthropic.com>
This commit is contained in:
@@ -456,7 +456,12 @@ export default function ClaimsPage() {
|
|||||||
description: "Claim submitted successfully! PDF saved to Documents page.",
|
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;
|
return result;
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user