feat(workspace): refine career workflows

Make job/CV comparisons language-aware and filter recruitment noise. Improve responsive career navigation, shared spacing, dashboard priorities, settings, localized workspace controls, and portable browser tests.
This commit is contained in:
cesnimda
2026-08-29 16:44:44 +02:00
parent 4d4af47651
commit 9edcbfc5de
29 changed files with 827 additions and 236 deletions
@@ -64,6 +64,10 @@ const match = {
hasCareerProfile: true,
hasSelectedCv: true,
selectedCvName: "Backend CV",
jobLanguage: "en",
cvLanguage: "en",
languageMismatch: false,
usedTranslatedJobDescription: false,
matchedSkills: ["C#", "SQL"],
missingSkills: ["Kubernetes"],
relevantExperience: [{ title: "Backend Developer", subtitle: "Initech · 2021 – present", matched: ["C#"] }],
@@ -183,3 +187,19 @@ test("match warns when the advert is too short to score", async () => {
expect(await screen.findByText(/too short to score reliably/i)).toBeInTheDocument();
});
test("match explains when a saved translation is used for a cross-language comparison", async () => {
mockedApi.get.mockResolvedValue({
data: {
...match,
jobLanguage: "nb",
cvLanguage: "en",
languageMismatch: true,
usedTranslatedJobDescription: true,
},
} as any);
render(<ApplicationMatch jobId={7} />);
expect(await screen.findByText(/uses the saved English translation/i)).toBeInTheDocument();
});