fix: pass chatbot attachments to Selenium claim worker and add missing re import

- Add `import re` to all Selenium workers that use re.search() for claim number extraction
- Pass uploadedFiles to onHandleForMHSeleniumClaim so attachments reach the MH website
- Save chatbot pending files in check-and-claim and batch-check-and-claim flows

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-28 23:30:28 -04:00
parent e1fe4862d5
commit 31505af72d
10 changed files with 11 additions and 0 deletions

View File

@@ -996,6 +996,7 @@ export function ClaimForm({
appointmentId: appointmentIdToUse,
insuranceSiteKey: "MH",
claimId: createdClaim.id,
uploadedFiles,
});
// 5. Close form

View File

@@ -455,6 +455,7 @@ export function ChatbotButton() {
renderingProvider: checkAndClaimData.renderingProvider ?? null,
})
);
setChatbotPendingFiles(pendingFiles);
prefillAndNavigate(checkAndClaimData.memberId, checkAndClaimData.dob, checkAndClaimData.autoCheck);
};
@@ -1113,6 +1114,7 @@ export function ChatbotButton() {
serviceDate: null,
renderingProvider,
}));
setChatbotPendingFiles(pendingFiles);
prefillAndNavigate(first!.memberId, first!.dob, first!.autoCheck);
}}
>