A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
Better error handling and more lenient on the imported values
Zsombor Gegesy5a2c222d612d
diff --git a/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx b/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsxindex 665e43a4b..9c2fabaf8 100644--- a/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx+++ b/apps/client/src/pages/dashboard/resumes/_dialogs/import.tsx@@ -186,7 +186,7 @@ export const ImportDialog = () => {toast({variant: "error",title: t`Oops, the server returned an error.`,- description: importError?.message,+ description: error?.message,});}};diff --git a/libs/parser/src/linkedin/index.ts b/libs/parser/src/linkedin/index.tsindex 7686b3fc3..631d0e626 100644--- a/libs/parser/src/linkedin/index.ts+++ b/libs/parser/src/linkedin/index.ts@@ -55,6 +55,9 @@ export class LinkedInParser implements Parser<JSZip, LinkedIn> {convert(data: LinkedIn) {const result = JSON.parse(JSON.stringify(defaultResumeData)) as ResumeData;+ function avoidToShort(name, len) {+ if (!name || name.length<len) { return "Unknown" } else { return name; }+ };// Profileif (data.Profile && data.Profile.length > 0) {@@ -109,9 +112,9 @@ export class LinkedInParser implements Parser<JSZip, LinkedIn> {result.sections.education.items.push({...defaultEducation,id: createId(),- institution: education["School Name"],- studyType: education["Degree Name"],- summary: education.Notes ?? "",+ institution: avoidToShort(education["School Name"], 2),+ studyType: avoidToShort(education["Degree Name"], 2),+ summary: avoidToShort(education.Notes ?? "", 2),date: `${education["Start Date"]} - ${education["End Date"] ?? "Present"}`,});}