Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
fix: update expiration date handling and improve layout in resume components
Khuram Niazdcd44ce45697
diff --git a/src/actions/profile.actions.ts b/src/actions/profile.actions.tsindex d61e5b4..2afb3c2 100644--- a/src/actions/profile.actions.ts+++ b/src/actions/profile.actions.ts@@ -756,7 +756,7 @@ export const updateCertification = async (title: data.title,organization: data.organization,issueDate: data.issueDate,- expirationDate: data.expirationDate,+ expirationDate: data.noExpiration ? null : (data.expirationDate ?? null),credentialUrl: data.credentialUrl,},});diff --git a/src/components/profile/SkillsSectionCard.tsx b/src/components/profile/SkillsSectionCard.tsxindex afa04cb..dace487 100644--- a/src/components/profile/SkillsSectionCard.tsx+++ b/src/components/profile/SkillsSectionCard.tsx@@ -45,9 +45,8 @@ function SkillsSectionCard({<><CardTitle className="pl-6 py-3">{skillsSection.sectionTitle}</CardTitle><Card>- <CardHeader className="p-2 pb-0 flex-row justify-between items-center relative">- <div />- <div className="flex gap-1 absolute top-0 right-1">+ <CardHeader className="p-2 pb-0 flex-row justify-end items-center">+ <div className="flex gap-1"><Buttonvariant="ghost"size="sm"diff --git a/src/components/profile/SummarySectionCard.tsx b/src/components/profile/SummarySectionCard.tsxindex 824e1ce..98ed7a2 100644--- a/src/components/profile/SummarySectionCard.tsx+++ b/src/components/profile/SummarySectionCard.tsx@@ -16,13 +16,13 @@ function SummarySectionCard({const { sectionTitle, summary } = summarySection!;return (<>+ <CardTitle className="pl-6 py-3">{sectionTitle}</CardTitle><Card>- <CardHeader className="flex-row justify-between relative">- <CardTitle>{sectionTitle}</CardTitle>+ <CardHeader className="p-2 pb-0 flex-row justify-end items-center"><Buttonvariant="ghost"size="sm"- className="h-8 gap-1 absolute top-0 right-1"+ className="h-8 gap-1"onClick={openDialogForEdit}><Edit className="h-3.5 w-3.5" />diff --git a/src/components/profile/resume-pdf/ProfessionalTemplate.tsx b/src/components/profile/resume-pdf/ProfessionalTemplate.tsxindex f224f61..3763f41 100644--- a/src/components/profile/resume-pdf/ProfessionalTemplate.tsx+++ b/src/components/profile/resume-pdf/ProfessionalTemplate.tsx@@ -38,9 +38,12 @@ function CertLikeSection({ section }: { section: ResumeSection }) {<Text style={s.entryMeta}>{cert.organization}</Text>{(cert.issueDate || cert.expirationDate) && (<Text style={s.entryMeta}>- {cert.issueDate ? `Issued: ${formatDate(cert.issueDate)}` : ""}- {cert.issueDate && cert.expirationDate ? " · " : ""}- {cert.expirationDate ? `Expires: ${formatDate(cert.expirationDate)}` : ""}+ {[+ cert.issueDate ? formatDate(cert.issueDate) : null,+ cert.expirationDate ? formatDate(cert.expirationDate) : null,+ ]+ .filter(Boolean)+ .join(" – ")}</Text>)}{cert.credentialUrl && (@@ -205,17 +208,19 @@ export function ProfessionalResumeDocument({ resume, htmlNodes }: Props) {<View><SectionHeading title={experienceSection.sectionTitle} />{experienceSection.workExperiences.map((exp, i) => (- <View key={exp.id ?? i} style={{ marginBottom: 8 }} wrap={false}>- <View style={s.entryHeaderRow}>- <Text style={s.entryTitle}>{exp.jobTitle.label}</Text>- <Text style={s.entryDate}>- {formatDate(exp.startDate)} – {formatDate(exp.endDate)}+ <View key={exp.id ?? i} style={{ marginBottom: 8 }}>+ <View wrap={false}>+ <View style={s.entryHeaderRow}>+ <Text style={s.entryTitle}>{exp.jobTitle.label}</Text>+ <Text style={s.entryDate}>+ {formatDate(exp.startDate)} – {formatDate(exp.endDate)}+ </Text>+ </View>+ <Text style={s.entryMeta}>+ {exp.Company.label}+ {exp.location?.label ? ` · ${exp.location.label}` : ""}</Text></View>- <Text style={s.entryMeta}>- {exp.Company.label}- {exp.location?.label ? ` · ${exp.location.label}` : ""}- </Text>{htmlNodes.experiences[i]}</View>))}@@ -229,17 +234,19 @@ export function ProfessionalResumeDocument({ resume, htmlNodes }: Props) {<View key={sec.id}><SectionHeading title={sec.sectionTitle} />{sec.workExperiences.map((exp, i) => (- <View key={exp.id ?? i} style={{ marginBottom: 8 }} wrap={false}>- <View style={s.entryHeaderRow}>- <Text style={s.entryTitle}>{exp.jobTitle.label}</Text>- <Text style={s.entryDate}>- {formatDate(exp.startDate)} – {formatDate(exp.endDate)}+ <View key={exp.id ?? i} style={{ marginBottom: 8 }}>+ <View wrap={false}>+ <View style={s.entryHeaderRow}>+ <Text style={s.entryTitle}>{exp.jobTitle.label}</Text>+ <Text style={s.entryDate}>+ {formatDate(exp.startDate)} – {formatDate(exp.endDate)}+ </Text>+ </View>+ <Text style={s.entryMeta}>+ {exp.Company.label}+ {exp.location?.label ? ` · ${exp.location.label}` : ""}</Text></View>- <Text style={s.entryMeta}>- {exp.Company.label}- {exp.location?.label ? ` · ${exp.location.label}` : ""}- </Text></View>))}</View>@@ -260,16 +267,18 @@ export function ProfessionalResumeDocument({ resume, htmlNodes }: Props) {<View><SectionHeading title={educationSection.sectionTitle} />{educationSection.educations.map((edu, i) => (- <View key={edu.id ?? i} style={{ marginBottom: 8 }} wrap={false}>- <View style={s.entryHeaderRow}>- <Text style={s.entryTitle}>- {[edu.degree, edu.fieldOfStudy].filter(Boolean).join(", ")}- </Text>- <Text style={s.entryDate}>- {yearRange(edu.startDate, edu.endDate)}- </Text>+ <View key={edu.id ?? i} style={{ marginBottom: 8 }}>+ <View wrap={false}>+ <View style={s.entryHeaderRow}>+ <Text style={s.entryTitle}>+ {[edu.degree, edu.fieldOfStudy].filter(Boolean).join(", ")}+ </Text>+ <Text style={s.entryDate}>+ {yearRange(edu.startDate, edu.endDate)}+ </Text>+ </View>+ <Text style={s.entryMeta}>{edu.institution}</Text></View>- <Text style={s.entryMeta}>{edu.institution}</Text></View>))}</View>diff --git a/src/components/profile/resume-pdf/SimpleTemplate.tsx b/src/components/profile/resume-pdf/SimpleTemplate.tsxindex 6ce791b..c41ba32 100644--- a/src/components/profile/resume-pdf/SimpleTemplate.tsx+++ b/src/components/profile/resume-pdf/SimpleTemplate.tsx@@ -136,14 +136,16 @@ export function SimpleResumeDocument({ resume, htmlNodes }: Props) {<View><SectionHeading title={experienceSection.sectionTitle} />{experienceSection.workExperiences.map((exp, i) => (- <View key={exp.id ?? i} style={{ marginBottom: 8 }} wrap={false}>- <Text style={simpleStyles.entryTitle}>- {exp.jobTitle.label} — {exp.Company.label}- </Text>- <Text style={simpleStyles.entryMeta}>- {formatDate(exp.startDate)} – {formatDate(exp.endDate)} ·{" "}- {exp.location.label}- </Text>+ <View key={exp.id ?? i} style={{ marginBottom: 8 }}>+ <View wrap={false}>+ <Text style={simpleStyles.entryTitle}>+ {exp.jobTitle.label} — {exp.Company.label}+ </Text>+ <Text style={simpleStyles.entryMeta}>+ {formatDate(exp.startDate)} – {formatDate(exp.endDate)} ·{" "}+ {exp.location.label}+ </Text>+ </View>{htmlNodes.experiences[i]}</View>))}@@ -156,16 +158,18 @@ export function SimpleResumeDocument({ resume, htmlNodes }: Props) {<View><SectionHeading title={educationSection.sectionTitle} />{educationSection.educations.map((edu, i) => (- <View key={edu.id ?? i} style={{ marginBottom: 8 }} wrap={false}>- <Text style={simpleStyles.entryTitle}>{edu.institution}</Text>- <Text style={simpleStyles.entryMeta}>- {[edu.degree, edu.fieldOfStudy].filter(Boolean).join(", ")}- </Text>- <Text style={simpleStyles.entryMeta}>- {formatDate(edu.startDate)} –{" "}- {edu.endDate ? formatDate(edu.endDate) : "Present"} ·{" "}- {edu.location.label}- </Text>+ <View key={edu.id ?? i} style={{ marginBottom: 8 }}>+ <View wrap={false}>+ <Text style={simpleStyles.entryTitle}>{edu.institution}</Text>+ <Text style={simpleStyles.entryMeta}>+ {[edu.degree, edu.fieldOfStudy].filter(Boolean).join(", ")}+ </Text>+ <Text style={simpleStyles.entryMeta}>+ {formatDate(edu.startDate)} –{" "}+ {edu.endDate ? formatDate(edu.endDate) : "Present"} ·{" "}+ {edu.location.label}+ </Text>+ </View>{htmlNodes.educations[i]}</View>))}@@ -183,13 +187,12 @@ export function SimpleResumeDocument({ resume, htmlNodes }: Props) {<Text style={simpleStyles.entryMeta}>{cert.organization}</Text>{(cert.issueDate || cert.expirationDate) && (<Text style={simpleStyles.entryMeta}>- {cert.issueDate- ? `Issued: ${formatDate(cert.issueDate)}`- : ""}- {cert.issueDate && cert.expirationDate ? " · " : ""}- {cert.expirationDate- ? `Expires: ${formatDate(cert.expirationDate)}`- : ""}+ {[+ cert.issueDate ? formatDate(cert.issueDate) : null,+ cert.expirationDate ? formatDate(cert.expirationDate) : null,+ ]+ .filter(Boolean)+ .join(" – ")}</Text>)}{cert.credentialUrl && (diff --git a/src/components/profile/resume-pdf/generateResumePdf.tsx b/src/components/profile/resume-pdf/generateResumePdf.tsxindex bc3b75c..4ae913c 100644--- a/src/components/profile/resume-pdf/generateResumePdf.tsx+++ b/src/components/profile/resume-pdf/generateResumePdf.tsx@@ -52,7 +52,8 @@ export async function generateResumePdfBlob() ?? [],};- const { pdf } = await import("@react-pdf/renderer");+ const { pdf, Font } = await import("@react-pdf/renderer");+ Font.registerHyphenationCallback((word) => [word]);let document: React.ReactElement;if (layout === "professional") {diff --git a/src/components/profile/resume-pdf/styles/simple.styles.ts b/src/components/profile/resume-pdf/styles/simple.styles.tsindex c6eb562..f6cacc1 100644--- a/src/components/profile/resume-pdf/styles/simple.styles.ts+++ b/src/components/profile/resume-pdf/styles/simple.styles.ts@@ -31,7 +31,7 @@ export const simpleStyles = StyleSheet.create({textTransform: "uppercase",letterSpacing: 0.8,marginBottom: 3,- marginTop: 12,+ marginTop: 6,},divider: {borderBottomWidth: 0.5,