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.

feat(resumes): grey out incomplete resumes in Add Job and automation pickers, flag them in the Profile table, and block saving one

Khuram Niazdc85bccc6b39
diff --git a/__tests__/IncompleteResumeHint.spec.tsx b/__tests__/IncompleteResumeHint.spec.tsx
new file mode 100644
index 0000000..47ded30
--- /dev/null
+++ b/__tests__/IncompleteResumeHint.spec.tsx
@@ -0,0 +1,19 @@
+import { render, screen } from "@testing-library/react";
+import { IncompleteResumeHint } from "@/components/IncompleteResumeHint";
+import { buildIncompleteResumeHint } from "@/lib/resumeSections";
+
+describe("IncompleteResumeHint", () => {
+ it("exposes the hint as the accessible name of the icon", () => {
+ render(<IncompleteResumeHint />);
+
+ const icon = screen.getByRole("img", { name: buildIncompleteResumeHint() });
+ expect(icon.parentElement).toHaveAttribute("data-incomplete-hint");
+ });
+
+ it("opts back into pointer events so it works inside a disabled item", () => {
+ render(<IncompleteResumeHint />);
+
+ const icon = screen.getByRole("img", { name: buildIncompleteResumeHint() });
+ expect(icon.parentElement).toHaveClass("pointer-events-auto");
+ });
+});
diff --git a/__tests__/ResumeTable.spec.tsx b/__tests__/ResumeTable.spec.tsx
new file mode 100644
index 0000000..8721f1b
--- /dev/null
+++ b/__tests__/ResumeTable.spec.tsx
@@ -0,0 +1,60 @@
+import { render, screen } from "@testing-library/react";
+import DocumentTable from "@/components/profile/ResumeTable";
+import { buildIncompleteResumeHint } from "@/lib/resumeSections";
+
+vi.mock("@/actions/profile.actions", () => ({
+ deleteResumeById: vi.fn(),
+ setDefaultResume: vi.fn(),
+}));
+vi.mock("@/actions/coverLetter.actions", () => ({
+ deleteCoverLetterById: vi.fn(),
+}));
+
+const base = {
+ type: "resume" as const,
+ createdAt: new Date("2026-01-01"),
+ updatedAt: new Date("2026-01-01"),
+ jobCount: 0,
+};
+
+const renderTable = (documents: any[]) =>
+ render(
+ <DocumentTable
+ documents={documents}
+ editResume={vi.fn()}
+ editCoverLetter={vi.fn()}
+ exportCoverLetter={vi.fn()}
+ copyResume={vi.fn()}
+ reloadDocuments={vi.fn()}
+ />,
+ );
+
+describe("ResumeTable incomplete marker", () => {
+ it("marks a resume below the section minimum, including attachment-only", () => {
+ renderTable([
+ { ...base, id: "r1", title: "Draft", sectionCount: 0, FileId: "f1" },
+ ]);
+
+ expect(
+ screen.getByRole("img", { name: buildIncompleteResumeHint() }),
+ ).toBeInTheDocument();
+ });
+
+ it("does not mark a complete resume", () => {
+ renderTable([{ ...base, id: "r2", title: "CV", sectionCount: 3 }]);
+
+ expect(
+ screen.queryByRole("img", { name: buildIncompleteResumeHint() }),
+ ).not.toBeInTheDocument();
+ });
+
+ it("does not mark a cover letter", () => {
+ renderTable([
+ { ...base, id: "c1", type: "coverLetter", title: "Letter" },
+ ]);
+
+ expect(
+ screen.queryByRole("img", { name: buildIncompleteResumeHint() }),
+ ).not.toBeInTheDocument();
+ });
+});
diff --git a/__tests__/Select.spec.tsx b/__tests__/Select.spec.tsx
new file mode 100644
index 0000000..318d27d
--- /dev/null
+++ b/__tests__/Select.spec.tsx
@@ -0,0 +1,58 @@
+import { render, screen } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import SelectFormCtrl from "@/components/Select";
+import { Form } from "@/components/ui/form";
+import { useForm } from "react-hook-form";
+
+const options = [
+ { id: "a", title: "Complete CV" },
+ { id: "b", title: "Draft CV", disabled: true, suffix: <i>Incomplete</i> },
+];
+
+function Harness({ value }: { value?: string }) {
+ const form = useForm({ defaultValues: { resume: value } });
+ return (
+ <Form {...form}>
+ <SelectFormCtrl
+ label="Resume"
+ options={options}
+ field={{ ...form.register("resume"), value } as any}
+ />
+ </Form>
+ );
+}
+
+describe("SelectFormCtrl disabled options", () => {
+ beforeAll(() => {
+ window.HTMLElement.prototype.hasPointerCapture = vi.fn();
+ window.HTMLElement.prototype.scrollIntoView = vi.fn();
+ });
+
+ it("shows a disabled option's title and suffix when it is the current value", () => {
+ render(<Harness value="b" />);
+
+ expect(screen.getByText("Draft CV")).toBeInTheDocument();
+ expect(screen.getByText("Incomplete")).toBeInTheDocument();
+ });
+
+ it("marks a disabled option as disabled in the list", async () => {
+ render(<Harness />);
+
+ await userEvent.click(screen.getByRole("combobox"));
+
+ expect(screen.getByRole("option", { name: /Draft CV/ })).toHaveAttribute(
+ "data-disabled",
+ );
+ expect(
+ screen.getByRole("option", { name: /Complete CV/ }),
+ ).not.toHaveAttribute("data-disabled");
+ });
+
+ it("makes the hint a plain icon inside the closed trigger", () => {
+ render(<Harness />);
+
+ expect(screen.getByRole("combobox").className).toContain(
+ "[&_[data-incomplete-hint]]:pointer-events-none",
+ );
+ });
+});
diff --git a/__tests__/StepResume.spec.tsx b/__tests__/StepResume.spec.tsx
new file mode 100644
index 0000000..2390963
--- /dev/null
+++ b/__tests__/StepResume.spec.tsx
@@ -0,0 +1,38 @@
+import { render, screen } from "@testing-library/react";
+import { useForm } from "react-hook-form";
+import { Form } from "@/components/ui/form";
+import { StepResume } from "@/components/automations/automation-wizard/StepResume";
+import type { WizardResume } from "@/components/automations/automation-wizard/wizardConfig";
+
+function Harness({ resumes }: { resumes: WizardResume[] }) {
+ const form = useForm<any>({ defaultValues: { resumeId: "" } });
+ return (
+ <Form {...form}>
+ <StepResume form={form} resumes={resumes} />
+ </Form>
+ );
+}
+
+describe("StepResume", () => {
+ it("says no resumes exist when the list is empty", () => {
+ render(<Harness resumes={[]} />);
+
+ expect(screen.getByText(/No resumes found/)).toBeInTheDocument();
+ });
+
+ it("explains that resumes need more content when all are incomplete", () => {
+ render(
+ <Harness resumes={[{ id: "r1", title: "Draft", sectionCount: 0 }]} />,
+ );
+
+ expect(screen.queryByText(/No resumes found/)).not.toBeInTheDocument();
+ expect(screen.getByText(/needs at least 2 sections/)).toBeInTheDocument();
+ });
+
+ it("shows no warning when every resume is complete", () => {
+ render(<Harness resumes={[{ id: "r1", title: "CV", sectionCount: 3 }]} />);
+
+ expect(screen.queryByText(/needs at least/)).not.toBeInTheDocument();
+ expect(screen.queryByText(/No resumes found/)).not.toBeInTheDocument();
+ });
+});
diff --git a/__tests__/resumeSections.spec.ts b/__tests__/resumeSections.spec.ts
index 34d4705..39984aa 100644
--- a/__tests__/resumeSections.spec.ts
+++ b/__tests__/resumeSections.spec.ts
@@ -1,4 +1,5 @@
import {
+ buildIncompleteResumeHint,
buildInsufficientSectionsMessage,
hasMinResumeSections,
} from "@/lib/resumeSections";
@@ -54,3 +55,14 @@ describe("buildInsufficientSectionsMessage", () => {
expect(message).not.toContain("(");
});
});
+
+describe("buildIncompleteResumeHint", () => {
+ it("states the minimum and that an attachment does not count", () => {
+ const hint = buildIncompleteResumeHint();
+
+ expect(hint).toContain(
+ String(APP_CONSTANTS.MIN_RESUME_SECTIONS_FOR_SELECTION),
+ );
+ expect(hint).toContain("attached file does not count");
+ });
+});
diff --git a/src/actions/profile/resume.ts b/src/actions/profile/resume.ts
index 41b750b..a779d11 100644
--- a/src/actions/profile/resume.ts
+++ b/src/actions/profile/resume.ts
@@ -10,7 +10,6 @@ import { deleteFile } from "./files";
export const getResumeList = async (
page: number = 1,
limit: number = APP_CONSTANTS.RECORDS_PER_PAGE,
- minSections: number = 0,
): Promise<any | undefined> => {
try {
const user = await requireUser();
@@ -26,25 +25,7 @@ export const getResumeList = async (
const defaultResumeId = userRow?.defaultResumeId ?? null;
let rawData;
- if (minSections > 0) {
- // When filtering by section count, Prisma can't express ">= N
- // related rows" in `where`, so fetch all of the user's resumes and
- // filter in JS instead of applying skip/take.
- rawData = await prisma.resume.findMany({
- where,
- select: resumeListSelect,
- orderBy: { createdAt: "desc" },
- });
- if (defaultResumeId) {
- const defaultIndex = rawData.findIndex(
- (r) => r.id === defaultResumeId,
- );
- if (defaultIndex > 0) {
- const [defaultResume] = rawData.splice(defaultIndex, 1);
- rawData.unshift(defaultResume);
- }
- }
- } else if (defaultResumeId) {
+ if (defaultResumeId) {
// Pin the default resume to the very first row so it always lands on
// page 1, then page through the remaining resumes excluding it.
const restWhere = { ...where, id: { not: defaultResumeId } };
@@ -81,12 +62,7 @@ export const getResumeList = async (
});
}
- const data =
- minSections > 0
- ? rawData.filter((r) => r._count.ResumeSections >= minSections)
- : rawData;
-
- return { data, total, success: true };
+ return { data: rawData, total, success: true };
} catch (error) {
const msg = "Failed to get resume list.";
return handleError(error, msg);
diff --git a/src/app/dashboard/automations/page.tsx b/src/app/dashboard/automations/page.tsx
index 88279e2..4a36519 100644
--- a/src/app/dashboard/automations/page.tsx
+++ b/src/app/dashboard/automations/page.tsx
@@ -1,18 +1,17 @@
import { getResumeList } from "@/actions/profile.actions";
-import { AutomationContainer } from "@/components/automations/AutomationContainer";
import { APP_CONSTANTS } from "@/lib/constants";
+import { AutomationContainer } from "@/components/automations/AutomationContainer";
export default async function AutomationsPage() {
- const resumeResult = await getResumeList(
- 1,
- 100,
- APP_CONSTANTS.MIN_RESUME_SECTIONS_FOR_SELECTION,
- );
+ const resumeResult = await getResumeList(1, APP_CONSTANTS.RESUME_PICKER_LIMIT);
const resumes =
- resumeResult?.data?.map((r: { id: string; title: string }) => ({
- id: r.id,
- title: r.title,
- })) || [];
+ resumeResult?.data?.map(
+ (r: { id: string; title: string; _count?: { ResumeSections?: number } }) => ({
+ id: r.id,
+ title: r.title,
+ sectionCount: r._count?.ResumeSections ?? 0,
+ }),
+ ) || [];
return (
<div className="col-span-3">
diff --git a/src/components/IncompleteResumeHint.tsx b/src/components/IncompleteResumeHint.tsx
new file mode 100644
index 0000000..45a7168
--- /dev/null
+++ b/src/components/IncompleteResumeHint.tsx
@@ -0,0 +1,34 @@
+"use client";
+
+import { TriangleAlert } from "lucide-react";
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipProvider,
+ TooltipTrigger,
+} from "@/components/ui/tooltip";
+import { buildIncompleteResumeHint } from "@/lib/resumeSections";
+
+export function IncompleteResumeHint() {
+ const hint = buildIncompleteResumeHint();
+ return (
+ <TooltipProvider delayDuration={300}>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ {/* pointer-events-auto: a disabled Select item is pointer-events-none */}
+ <span
+ data-incomplete-hint
+ className="pointer-events-auto ml-2 inline-flex"
+ >
+ <TriangleAlert
+ className="h-3.5 w-3.5 shrink-0 text-amber-600 dark:text-amber-500"
+ role="img"
+ aria-label={hint}
+ />
+ </span>
+ </TooltipTrigger>
+ <TooltipContent className="max-w-64">{hint}</TooltipContent>
+ </Tooltip>
+ </TooltipProvider>
+ );
+}
diff --git a/src/components/Select.tsx b/src/components/Select.tsx
index a53ba12..b540242 100644
--- a/src/components/Select.tsx
+++ b/src/components/Select.tsx
@@ -25,7 +25,10 @@ function SelectFormCtrl({ label, options, field }: SelectProps) {
name={field.name}
>
<FormControl>
- <SelectTrigger aria-label={`Select ${label}`} className="w-[200px]">
+ <SelectTrigger
+ aria-label={`Select ${label}`}
+ className="w-[200px] [&_[data-incomplete-hint]]:pointer-events-none"
+ >
<SelectValue placeholder={`Select ${label}`} />
</SelectTrigger>
</FormControl>
@@ -34,8 +37,13 @@ function SelectFormCtrl({ label, options, field }: SelectProps) {
{options &&
options.map((option) => {
return (
- <SelectItem key={option.id} value={option.id}>
+ <SelectItem
+ key={option.id}
+ value={option.id}
+ disabled={option.disabled}
+ >
{option.label ?? option.value ?? option.title}
+ {option.suffix}
</SelectItem>
);
})}
diff --git a/src/components/automations/AutomationContainer.tsx b/src/components/automations/AutomationContainer.tsx
index facbf2d..9402666 100644
--- a/src/components/automations/AutomationContainer.tsx
+++ b/src/components/automations/AutomationContainer.tsx
@@ -16,6 +16,7 @@ import Loading from "@/components/Loading";
interface Resume {
id: string;
title: string;
+ sectionCount: number;
}
interface AutomationContainerProps {
diff --git a/src/components/automations/AutomationWizard.tsx b/src/components/automations/AutomationWizard.tsx
index 3031687..3b92455 100644
--- a/src/components/automations/AutomationWizard.tsx
+++ b/src/components/automations/AutomationWizard.tsx
@@ -12,6 +12,10 @@ import { Button } from "@/components/ui/button";
import { Form } from "@/components/ui/form";
import type { CreateAutomationInput } from "@/models/automation.schema";
import { toastError } from "@/lib/toast";
+import {
+ buildIncompleteResumeHint,
+ hasMinResumeSections,
+} from "@/lib/resumeSections";
import type { AutomationWithResume } from "@/models/automation.model";
import { AtsSearchStep } from "./AtsSearchStep";
import { ChevronLeft, ChevronRight, Loader2 } from "lucide-react";
@@ -88,7 +92,16 @@ export function AutomationWizard({
<Form {...form}>
<form
- onSubmit={form.handleSubmit(onSubmit, (errors) => {
+ onSubmit={form.handleSubmit((data) => {
+ if (
+ selectedResume &&
+ !hasMinResumeSections(selectedResume.sectionCount)
+ ) {
+ toastError(buildIncompleteResumeHint());
+ return;
+ }
+ return onSubmit(data);
+ }, (errors) => {
const firstError = Object.values(errors)[0];
if (firstError?.message) {
toastError(firstError.message as string, "Validation Error");
diff --git a/src/components/automations/automation-detail-container/useAutomationWizardData.ts b/src/components/automations/automation-detail-container/useAutomationWizardData.ts
index 338eb0a..567bdfb 100644
--- a/src/components/automations/automation-detail-container/useAutomationWizardData.ts
+++ b/src/components/automations/automation-detail-container/useAutomationWizardData.ts
@@ -3,30 +3,36 @@
import { useEffect, useState } from "react";
import { getAutomationsList } from "@/actions/automation.actions";
import { getResumeList } from "@/actions/profile.actions";
-import type { AutomationWithResume } from "@/models/automation.model";
import { APP_CONSTANTS } from "@/lib/constants";
+import type { AutomationWithResume } from "@/models/automation.model";
+import type { WizardResume } from "../automation-wizard/wizardConfig";
-// Reference data the edit wizard needs: selectable resumes and the other
+// Reference data the edit wizard needs: the user's resumes and the other
// automations it checks for duplicate configurations.
export function useAutomationWizardData() {
- const [resumes, setResumes] = useState<{ id: string; title: string }[]>([]);
+ const [resumes, setResumes] = useState<WizardResume[]>([]);
const [allAutomations, setAllAutomations] = useState<AutomationWithResume[]>(
[],
);
useEffect(() => {
- getResumeList(1, 100, APP_CONSTANTS.MIN_RESUME_SECTIONS_FOR_SELECTION).then(
- (result) => {
- if (result?.data) {
- setResumes(
- result.data.map((r: { id: string; title: string }) => ({
+ getResumeList(1, APP_CONSTANTS.RESUME_PICKER_LIMIT).then((result) => {
+ if (result?.data) {
+ setResumes(
+ result.data.map(
+ (r: {
+ id: string;
+ title: string;
+ _count?: { ResumeSections?: number };
+ }) => ({
id: r.id,
title: r.title,
- })),
- );
- }
- },
- );
+ sectionCount: r._count?.ResumeSections ?? 0,
+ }),
+ ),
+ );
+ }
+ });
getAutomationsList().then((result) => {
if (result?.data) setAllAutomations(result.data);
});
diff --git a/src/components/automations/automation-wizard/StepResume.tsx b/src/components/automations/automation-wizard/StepResume.tsx
index 1493192..d411cf7 100644
--- a/src/components/automations/automation-wizard/StepResume.tsx
+++ b/src/components/automations/automation-wizard/StepResume.tsx
@@ -18,6 +18,10 @@ import {
} from "@/components/ui/form";
import type { CreateAutomationInput } from "@/models/automation.schema";
import type { WizardResume } from "./wizardConfig";
+import Link from "next/link";
+import { hasMinResumeSections } from "@/lib/resumeSections";
+import { APP_CONSTANTS } from "@/lib/constants";
+import { IncompleteResumeHint } from "@/components/IncompleteResumeHint";
export function StepResume({
form,
@@ -26,6 +30,12 @@ export function StepResume({
form: UseFormReturn<CreateAutomationInput>;
resumes: WizardResume[];
}) {
+ const selectableCount = resumes.filter((r) =>
+ hasMinResumeSections(r.sectionCount),
+ ).length;
+ const incompleteCount = resumes.length - selectableCount;
+ const min = APP_CONSTANTS.MIN_RESUME_SECTIONS_FOR_SELECTION;
+
return (
<>
<FormField
@@ -36,14 +46,21 @@ export function StepResume({
<FormLabel>Resume for Matching</FormLabel>
<Select onValueChange={field.onChange} value={field.value}>
<FormControl>
- <SelectTrigger>
+ <SelectTrigger className="[&_[data-incomplete-hint]]:pointer-events-none">
<SelectValue placeholder="Select a resume" />
</SelectTrigger>
</FormControl>
<SelectContent>
{resumes.map((resume) => (
- <SelectItem key={resume.id} value={resume.id}>
+ <SelectItem
+ key={resume.id}
+ value={resume.id}
+ disabled={!hasMinResumeSections(resume.sectionCount)}
+ >
{resume.title}
+ {hasMinResumeSections(resume.sectionCount) ? null : (
+ <IncompleteResumeHint />
+ )}
</SelectItem>
))}
</SelectContent>
@@ -61,6 +78,19 @@ export function StepResume({
profile first.
</p>
)}
+ {resumes.length > 0 && incompleteCount > 0 && (
+ <p className="text-sm text-orange-600 dark:text-orange-500">
+ {incompleteCount === resumes.length
+ ? "None of your resumes can be used yet."
+ : `${incompleteCount} of your resumes can't be selected.`}{" "}
+ A resume needs at least {min} sections — an attached file does not
+ count. Fill it in under{" "}
+ <Link href="/dashboard/profile" className="underline">
+ Profile
+ </Link>
+ .
+ </p>
+ )}
</>
);
}
diff --git a/src/components/automations/automation-wizard/wizardConfig.ts b/src/components/automations/automation-wizard/wizardConfig.ts
index 8de05fb..cd940b5 100644
--- a/src/components/automations/automation-wizard/wizardConfig.ts
+++ b/src/components/automations/automation-wizard/wizardConfig.ts
@@ -45,4 +45,5 @@ export function parseEditSourceConfig(
export interface WizardResume {
id: string;
title: string;
+ sectionCount: number;
}
diff --git a/src/components/myjobs/AddJob.tsx b/src/components/myjobs/AddJob.tsx
index 0e18943..30d7a66 100644
--- a/src/components/myjobs/AddJob.tsx
+++ b/src/components/myjobs/AddJob.tsx
@@ -34,7 +34,7 @@ import {
} from "@/models/job.model";
import { addDays } from "date-fns";
import { z } from "zod";
-import { toastActionResult } from "@/lib/toast";
+import { toastActionResult, toastError } from "@/lib/toast";
import {
Form,
FormControl,
@@ -57,6 +57,11 @@ import CreateResume from "../profile/CreateResume";
import { getResumeList } from "@/actions/profile.actions";
import { getCoverLetterList } from "@/actions/coverLetter.actions";
import { TagInput } from "./TagInput";
+import { IncompleteResumeHint } from "../IncompleteResumeHint";
+import {
+ buildIncompleteResumeHint,
+ hasMinResumeSections,
+} from "@/lib/resumeSections";
import { APP_CONSTANTS, APPLIED_STATUS_VALUES } from "@/lib/constants";
import {
getFromLocalStorage,
@@ -148,11 +153,7 @@ export function AddJob({
const loadResumes = useCallback(async () => {
try {
- const resumes = await getResumeList(
- 1,
- APP_CONSTANTS.RECORDS_PER_PAGE,
- APP_CONSTANTS.MIN_RESUME_SECTIONS_FOR_SELECTION,
- );
+ const resumes = await getResumeList(1, APP_CONSTANTS.RESUME_PICKER_LIMIT);
setResumes(resumes.data);
} catch (error) {
console.error("Failed to load resumes:", error);
@@ -215,6 +216,11 @@ export function AddJob({
};
function onSubmit(data: z.infer<typeof AddJobFormSchema>) {
+ const selected = resumes.find((r) => r.id === data.resume);
+ if (selected && !hasMinResumeSections(selected._count?.ResumeSections)) {
+ toastError(buildIncompleteResumeHint());
+ return;
+ }
startTransition(async () => {
const result = editJob ? await updateJob(data) : await addJob(data);
toastActionResult(result, {
@@ -582,7 +588,15 @@ export function AddJob({
<FormLabel>Resume</FormLabel>
<SelectFormCtrl
label="Resume"
- options={resumes}
+ options={resumes?.map((r) =>
+ hasMinResumeSections(r._count?.ResumeSections)
+ ? r
+ : {
+ ...r,
+ disabled: true,
+ suffix: <IncompleteResumeHint />,
+ },
+ )}
field={field}
/>
<FormMessage />
diff --git a/src/components/profile/ResumeTable.tsx b/src/components/profile/ResumeTable.tsx
index 39cf15c..77ba639 100644
--- a/src/components/profile/ResumeTable.tsx
+++ b/src/components/profile/ResumeTable.tsx
@@ -33,6 +33,7 @@ import { toastSuccess, toastError } from "@/lib/toast";
import { deleteResumeById, setDefaultResume } from "@/actions/profile.actions";
import { deleteCoverLetterById } from "@/actions/coverLetter.actions";
import { DeleteAlertDialog } from "../DeleteAlertDialog";
+import { IncompleteResumeHint } from "../IncompleteResumeHint";
import { Badge } from "../ui/badge";
import { StatusBadge } from "../StatusBadge";
import { DOCUMENT_TYPE_BADGE_COLORS } from "@/lib/badge-colors";
@@ -173,6 +174,9 @@ function DocumentTable({
{doc.FileId ? (
<Paperclip className="h-3.5 w-3.5 ml-1" />
) : null}
+ {!hasMinResumeSections(doc.sectionCount) ? (
+ <IncompleteResumeHint />
+ ) : null}
{doc.isDefault ? (
<Badge className="ml-2 border-transparent bg-green-600 text-white hover:bg-green-600/90">
Default
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index c809175..15d29db 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -27,6 +27,7 @@ export const APP_CONSTANTS = {
MAX_SKILL_CATEGORIES: 8,
MAX_SKILLS_PER_CATEGORY: 20,
MIN_RESUME_SECTIONS_FOR_SELECTION: 2,
+ RESUME_PICKER_LIMIT: 100,
ACTIVITY_MAX_DURATION_MINUTES: 8 * 60, // 8 Hours
ACTIVITY_MAX_DURATION_MS: 8 * 60 * 60 * 1000, // 8 hours in milliseconds
ACTIVITY_MIN_DURATION_MINUTES: 2, // activities shorter than this are discarded
diff --git a/src/lib/resumeSections.ts b/src/lib/resumeSections.ts
index b91ae8d..f8e7cd6 100644
--- a/src/lib/resumeSections.ts
+++ b/src/lib/resumeSections.ts
@@ -14,3 +14,6 @@ export const buildInsufficientSectionsMessage = (
hint ? ` (${hint})` : ""
} before ${action}.`;
};
+
+export const buildIncompleteResumeHint = (): string =>
+ `Add at least ${APP_CONSTANTS.MIN_RESUME_SECTIONS_FOR_SELECTION} sections to use this resume when adding a job or in an automation. An attached file does not count.`;
diff --git a/wiki/automations.md b/wiki/automations.md
index c5fc0de..89517e0 100644
--- a/wiki/automations.md
+++ b/wiki/automations.md
@@ -25,7 +25,7 @@ Open **Automations** in the sidebar and click **Create Automation**. The wizard
1. **Basics** — a name, and which job board (Greenhouse, Lever or Ashby) the companies live on.
2. **Search** — the companies to track, then your filters: target job titles, keywords/skills, locations, and how many listings get full AI analysis per run. This is the step that decides how useful the automation is; see the next two sections.
-3. **Resume** — the resume every discovered job is scored against.
+3. **Resume** — the resume every discovered job is scored against. Resumes with fewer than two sections are shown greyed out with an alert icon until you fill them in under **Profile**; an attached file does not count.
4. **Matching** — a match threshold. Only listings whose AI match score reaches it are saved; anything analyzed and scored below it is discarded.
5. **Schedule** — the hour of the day the automation runs (server time). Only one automation may occupy an hour, so hours already taken are marked **In use** and rejected.
6. **Review** — confirm and save.
diff --git a/wiki/jobs.md b/wiki/jobs.md
index 81b2546..b264659 100644
--- a/wiki/jobs.md
+++ b/wiki/jobs.md
@@ -15,7 +15,7 @@ stale_after: 2027-08-31
Open **Jobs** in the sidebar and click **Add Job** at the top-right of the Jobs card. Job Title, Company, Job Location and Job Source are the fields you must fill in — each is a combo box that either picks an existing entry or creates a new one as you type, and Location and Source come pre-selected with whatever you used on your last job.
-Job Type, Workplace Type, Status, Due Date and Job Description are required too, but the form opens with them already set — Job Type on its first option, Workplace Type on Onsite, Status on Draft, Due Date three days from today and Job Description the placeholder `N/A`. You can change any of them; you cannot clear them. Genuinely optional are Job URL, Salary Range, Date Applied, a resume and cover letter to attach, and skills. Salary Range is free text: pick one of the 10,000-wide suggestions from `Under 50,000` to `300,000+`, or type your own — `$120k – $150k`, `Negotiable` — and it is saved exactly as typed and shown on the job's details page.
+Job Type, Workplace Type, Status, Due Date and Job Description are required too, but the form opens with them already set — Job Type on its first option, Workplace Type on Onsite, Status on Draft, Due Date three days from today and Job Description the placeholder `N/A`. You can change any of them; you cannot clear them. Genuinely optional are Job URL, Salary Range, Date Applied, a resume and cover letter to attach, and skills. Salary Range is free text: pick one of the 10,000-wide suggestions from `Under 50,000` to `300,000+`, or type your own — `$120k – $150k`, `Negotiable` — and it is saved exactly as typed and shown on the job's details page. A resume with fewer than two sections shows greyed out in the Resume list with an alert icon (hover it for the reason) — an attached file does not count towards the two, so fill in its sections under **Profile** to pick it.
Paste the full posting text into Job Description if you have it. The AI features — resume review, job match and cover letter generation — read that field, and a job saved with only a title and a salary gives them almost nothing to work from.