Skip to content

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.

add link to resume in JobSummaryCard component

Khuram Niaz9485cde5828e
diff --git a/__tests__/JobDetails.spec.tsx b/__tests__/JobDetails.spec.tsx
index f2e6677..ef891b1 100644
--- a/__tests__/JobDetails.spec.tsx
+++ b/__tests__/JobDetails.spec.tsx
@@ -192,6 +192,24 @@ describe("JobDetails – salary range", () => {
});
});
+describe("JobDetails – linked resume", () => {
+ it("links to a built resume that has no uploaded file", () => {
+ render(
+ <JobDetails
+ {...baseProps}
+ job={makeJob({
+ resumeId: "resume-1",
+ Resume: { id: "resume-1", title: "Senior Engineer Resume" },
+ })}
+ />
+ );
+
+ expect(
+ screen.getByRole("link", { name: /Senior Engineer Resume/ })
+ ).toHaveAttribute("href", "/dashboard/profile/resume/resume-1");
+ });
+});
+
describe("JobDetails – match data display", () => {
beforeEach(() => {
vi.clearAllMocks();
diff --git a/src/components/myjobs/job-details/JobSummaryCard.tsx b/src/components/myjobs/job-details/JobSummaryCard.tsx
index 47706cc..c082223 100644
--- a/src/components/myjobs/job-details/JobSummaryCard.tsx
+++ b/src/components/myjobs/job-details/JobSummaryCard.tsx
@@ -1,7 +1,8 @@
"use client";
import { format } from "date-fns";
-import { ExternalLink, Sparkles } from "lucide-react";
+import Link from "next/link";
+import { ExternalLink, FileText, Sparkles } from "lucide-react";
import { Badge } from "@/components/ui/badge";
import { Card, CardContent } from "@/components/ui/card";
import { CircularScore } from "@/components/CircularScore";
@@ -99,6 +100,14 @@ export function JobSummaryCard({
job.Resume.title,
job.Resume.File.fileName,
)
+ ) : job.Resume?.id ? (
+ <Link
+ href={`/dashboard/profile/resume/${job.Resume.id}`}
+ className="flex items-center gap-1 hover:underline"
+ >
+ <FileText className="h-4 w-4" />
+ {job.Resume.title}
+ </Link>
) : (
<p>-</p>
)}