feat: persist job source and market
CI and Deploy / test (push) Successful in 2m34s
CI and Deploy / deploy (push) Successful in 56s

This commit is contained in:
cesnimda
2026-07-30 23:38:22 +02:00
parent efc9d83c25
commit 988a91a151
12 changed files with 62 additions and 9 deletions
@@ -130,6 +130,8 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
const [salaryCurrency, setSalaryCurrency] = useState("");
const [salaryPeriod, setSalaryPeriod] = useState("");
const [jobUrl, setJobUrl] = useState("");
const [jobSource, setJobSource] = useState("");
const [countryCode, setCountryCode] = useState("");
const [deadline, setDeadline] = useState("");
const [description, setDescription] = useState("");
@@ -168,7 +170,7 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
setNewCompanySource("");
setDateApplied(getTodayIso());
setJobTitle("");
setStatus("Applied");
setStatus("Saved");
setLocation("");
setSalary("");
setSalaryMin("");
@@ -176,6 +178,8 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
setSalaryCurrency("");
setSalaryPeriod("");
setJobUrl("");
setJobSource("");
setCountryCode("");
setDeadline("");
setDescription("");
setTranslatedDescription("");
@@ -278,6 +282,8 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
}
}
setJobSource(r.source || "");
setCountryCode(r.countryCode || "");
setDescription(r.description || "");
setTranslatedDescription(r.translatedDescription || "");
setDescriptionLanguage(r.language || "");
@@ -333,6 +339,8 @@ export default function AddJobModal({ open, onClose, onCreated, initialUrl }: Pr
nextAction: null,
followUpAt: null,
jobUrl,
source: jobSource || null,
countryCode: countryCode || null,
description: description || null,
translatedDescription: shouldShowTranslatedDescription ? translatedDescription || null : null,
descriptionLanguage: descriptionLanguage || null,
+2
View File
@@ -493,6 +493,8 @@ export interface JobImportResult {
language?: string;
tags: string[];
sourceUrl: string;
source?: string;
countryCode?: string;
deadline?: string;
success: boolean;
parser?: string;