feat: add mariadb production support deploy hardening and recruiter drafts

This commit is contained in:
cesnimda
2026-03-22 18:53:41 +01:00
parent 1fe3a68901
commit 16b9960c08
11 changed files with 130 additions and 9 deletions
@@ -319,7 +319,19 @@ export default function JobDetailsDialog({ open, jobId, onClose }: Props) {
setSavingApplicationDrafts(false);
}
}} saving={savingApplicationDrafts} />
<DraftCard title="Recruiter message draft" content={applicationPackage.recruiterMessageDraft ?? "No draft available."} />
<DraftCard title="Recruiter message draft" content={applicationPackage.recruiterMessageDraft ?? "No draft available."} onSave={async (content) => {
if (!jobId) return;
setSavingApplicationDrafts(true);
try {
await api.put(`/jobapplications/${jobId}/application-drafts`, { recruiterMessageDraft: content });
setJob((prev) => prev ? { ...prev, recruiterMessageDraft: content } : prev);
toast("Recruiter message saved to this job.", "success");
} catch (error: any) {
toast(error?.response?.data || "Failed to save recruiter message.", "error");
} finally {
setSavingApplicationDrafts(false);
}
}} saving={savingApplicationDrafts} />
<ListCard title="Key points to emphasize" items={applicationPackage.keyPoints} />
</Box>
) : null}
+1
View File
@@ -98,6 +98,7 @@ export interface ApplicationPackageResponse {
export interface SaveApplicationDraftsRequest {
coverLetterText?: string | null;
notes?: string | null;
recruiterMessageDraft?: string | null;
}
export interface CorrespondenceMessage {