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: Add job draft date in job details
Khuram Niazf6c2bb65f143
diff --git a/src/actions/job.actions.ts b/src/actions/job.actions.tsindex fff247f..028e290 100644--- a/src/actions/job.actions.ts+++ b/src/actions/job.actions.ts@@ -4,6 +4,7 @@ import { handleError } from "@/lib/utils";import { AddJobFormSchema } from "@/models/addJobForm.schema";import { JobStatus } from "@/models/job.model";import { getCurrentUser } from "@/utils/user.utils";+import { revalidatePath } from "next/cache";import { z } from "zod";export const getStatusList = async (): Promise<any | undefined> => {diff --git a/src/components/myjobs/JobDetails.tsx b/src/components/myjobs/JobDetails.tsxindex 3aa811e..52e47ba 100644--- a/src/components/myjobs/JobDetails.tsx+++ b/src/components/myjobs/JobDetails.tsx@@ -24,6 +24,18 @@ function JobDetails({ job }: { job: JobResponse }) {const getAiJobMatch = async () => {setAiSectionOpen(true);};+ const getJobType = (code: string) => {+ switch (code) {+ case "FT":+ return "Full-time";+ case "PT":+ return "Part-time";+ case "C":+ return "Contract";+ default:+ return "Unknown";+ }+ };return (<><div className="flex justify-between">@@ -49,7 +61,7 @@ function JobDetails({ job }: { job: JobResponse }) {{job?.Company?.label}<CardTitle>{job?.JobTitle?.label}</CardTitle><CardDescription>- {job?.Location?.label} - {job?.jobType}+ {job?.Location?.label} - {getJobType(job?.jobType)}</CardDescription></CardHeader><h3 className="ml-4">@@ -67,7 +79,7 @@ function JobDetails({ job }: { job: JobResponse }) {</Badge>)}<span className="ml-2">- {format(new Date(job?.appliedDate), "PP")}+ {job?.appliedDate ? format(new Date(job?.appliedDate), "PP") : ""}</span></h3>{job.jobUrl && (diff --git a/src/components/myjobs/JobsContainer.tsx b/src/components/myjobs/JobsContainer.tsxindex fcba318..10f7f07 100644--- a/src/components/myjobs/JobsContainer.tsx+++ b/src/components/myjobs/JobsContainer.tsx@@ -142,6 +142,7 @@ function JobsContainer({const onChangeJobStatus = async (jobId: string, jobStatus: JobStatus) => {const { success, message } = await updateJobStatus(jobId, jobStatus);if (success) {+ router.refresh();toast({variant: "success",description: `Job has been updated successfully`,