feat: complete phase 3 career workspace
CI and Deploy / test (push) Failing after 1m6s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-07-30 22:19:13 +02:00
parent f8a7cf5205
commit 4cf26405f6
18 changed files with 215 additions and 20 deletions
+16
View File
@@ -93,6 +93,10 @@ export type StructuredCvProfile = {
skills: string[];
languages: StructuredCvLanguage[];
interests: string[];
awards: string[];
publications: string[];
organisations: string[];
references: string[];
otherSections: StructuredCvOtherSection[];
sections: ParsedCvSection[];
};
@@ -121,6 +125,10 @@ export function emptyStructuredCv(): StructuredCvProfile {
skills: [],
languages: [],
interests: [],
awards: [],
publications: [],
organisations: [],
references: [],
otherSections: [],
sections: [],
};
@@ -183,6 +191,10 @@ function buildLegacyStructuredCv(sections: ParsedCvSection[]): StructuredCvProfi
skills,
languages,
interests,
awards: linesFromSection(sections, ["awards", "honours", "honors"]),
publications: linesFromSection(sections, ["publications"]),
organisations: linesFromSection(sections, ["organisations", "organizations", "memberships"]),
references: linesFromSection(sections, ["references"]),
sections,
};
}
@@ -274,6 +286,10 @@ export function normalizeStructuredCv(value: unknown): StructuredCvProfile {
}))
: [],
interests: normalizeList(source.interests),
awards: normalizeList(source.awards),
publications: normalizeList(source.publications),
organisations: normalizeList(source.organisations),
references: normalizeList(source.references),
otherSections: Array.isArray(source.otherSections)
? source.otherSections.map((section: any) => ({
title: normalizeString(section?.title),