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
"use client";
import { NoResumesNotice } from "@/components/agent/AgentResultCard/NoResumesNotice";
import { ResumeSelectionPrompt } from "@/components/agent/AgentResultCard/ResumeSelectionPrompt";
import type { AgentGetResumeResult } from "@/models/agent.model";
// The resume text itself is never rendered: the user is about to read the
// review, not the serialization, and the card would be a wall of text.
export function GetResumeResult({ output }: { output: AgentGetResumeResult }) {
if (output.status === "no_resumes") {
return <NoResumesNotice />;
}
if (output.status === "unreadable") {
return (
<p className="text-sm">
Couldn't read <strong>{output.title}</strong> — {output.reason}
</p>
);
}
if (output.status === "needs_selection") {
return <ResumeSelectionPrompt prompt="Which resume?" resumes={output.resumes} />;
}
const sourceNote =
output.source === "default"
? " (your default)"
: output.source === "page"
? " (the one you're viewing)"
: "";
return (
<div className="text-sm">
<p>
Read <strong>{output.title}</strong>
{sourceNote}.
</p>
<p className="mt-1 text-xs text-muted-foreground">
{output.chars.toLocaleString()} characters
{output.truncated ? " · truncated" : ""}
{output.ambiguousTitle ? " · more than one resume has this title" : ""}
</p>
</div>
);
}