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
feat: Improve JobDetails layout
Khuram Niaz93dfdedcfa40
diff --git a/src/components/CircularScore.tsx b/src/components/CircularScore.tsxindex 03143b4..006bdcd 100644--- a/src/components/CircularScore.tsx+++ b/src/components/CircularScore.tsx@@ -35,27 +35,42 @@ export function CircularScore({ score, size = "md", animate = true, className }:const containerRef = useRef<HTMLDivElement>(null);const rafRef = useRef<number>(0);const startedRef = useRef(false);+ const animatedRef = useRef(animate ? 0 : score);useEffect(() => {if (!animate) return;const el = containerRef.current;if (!el) return;+ const runAnimation = (from: number) => {+ let startTime = 0;+ const duration = 900;++ const tick = (ts: number) => {+ if (!startTime) startTime = ts;+ const progress = Math.min((ts - startTime) / duration, 1);+ const value = from + (score - from) * easeOutCubic(progress);+ animatedRef.current = value;+ setAnimated(value);+ if (progress < 1) rafRef.current = requestAnimationFrame(tick);+ };++ cancelAnimationFrame(rafRef.current);+ rafRef.current = requestAnimationFrame(tick);+ };++ // Score changed after the initial reveal — re-animate from where we+ // are now instead of waiting on a fresh intersection.+ if (startedRef.current) {+ runAnimation(animatedRef.current);+ return () => cancelAnimationFrame(rafRef.current);+ }+const observer = new IntersectionObserver(([entry]) => {if (entry.isIntersecting && !startedRef.current) {startedRef.current = true;- let startTime = 0;- const duration = 900;-- const tick = (ts: number) => {- if (!startTime) startTime = ts;- const progress = Math.min((ts - startTime) / duration, 1);- setAnimated(easeOutCubic(progress) * score);- if (progress < 1) rafRef.current = requestAnimationFrame(tick);- };-- rafRef.current = requestAnimationFrame(tick);+ runAnimation(0);}},{ threshold: 0.3 },diff --git a/src/components/myjobs/JobDetails.tsx b/src/components/myjobs/JobDetails.tsxindex e30a406..8f8f748 100644--- a/src/components/myjobs/JobDetails.tsx+++ b/src/components/myjobs/JobDetails.tsx@@ -244,7 +244,7 @@ function JobDetails({</div>{job?.id && (<Card className="col-span-3">- <CardHeader className="flex-row justify-between relative">+ <CardHeader className="flex-row items-center justify-between relative"><div>{job?.Company?.label}<CardTitle>{job?.JobTitle?.label}</CardTitle>@@ -258,7 +258,13 @@ function JobDetails({{currentMatchScore != null && (<div className="flex flex-col items-center gap-1"><CircularScore score={currentMatchScore} size="md" />- <span className="text-xs text-muted-foreground">AI Match</span>+ {parsedMatchData?.recommendation ? (+ <Badge variant="outline" className="capitalize">+ {parsedMatchData.recommendation}+ </Badge>+ ) : (+ <span className="text-xs text-muted-foreground">AI Match</span>+ )}</div>)}{job?.Resume && job?.Resume?.File && job.Resume?.File?.filePath@@ -270,6 +276,18 @@ function JobDetails({: null}</div></CardHeader>+ {job.jobUrl && (+ <div className="my-3 ml-4">+ <span className="font-semibold mr-2">Job URL:</span>+ <a+ href={formatUrl(job.jobUrl)}+ target="_blank"+ rel="noopener noreferrer"+ >+ {job.jobUrl}+ </a>+ </div>+ )}<h3 className="ml-4 flex flex-wrap items-center gap-2">{job.dueDate && new Date() > job.dueDate && currentStatus?.value === "draft" ? (<StatusBadge@@ -303,18 +321,6 @@ function JobDetails({))}</div>)}- {job.jobUrl && (- <div className="my-3 ml-4">- <span className="font-semibold mr-2">Job URL:</span>- <a- href={formatUrl(job.jobUrl)}- target="_blank"- rel="noopener noreferrer"- >- {job.jobUrl}- </a>- </div>- )}<div className="my-4 ml-4"><TipTapContentViewer content={job?.description} /></div>