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(jobs): give auto-discovered "new" job status its own badge color
Khuram Niaz1cdc5a57d34b
diff --git a/src/lib/badge-colors.ts b/src/lib/badge-colors.tsindex 8d1d428..b4bc0ef 100644--- a/src/lib/badge-colors.ts+++ b/src/lib/badge-colors.ts@@ -6,6 +6,7 @@ import { DiscoveryStatus } from "@/models/automation.model";// Central badge color palette. Add new semantic colors here only.export const BADGE_COLORS = {slate: "bg-slate-500 dark:bg-slate-400",+ teal: "bg-teal-500 dark:bg-teal-400",blue: "bg-blue-500 dark:bg-blue-400",violet: "bg-violet-500 dark:bg-violet-400",amber: "bg-amber-500 dark:bg-amber-400",@@ -18,6 +19,7 @@ export type BadgeColor = keyof typeof BADGE_COLORS;type JobStatusValue = (typeof JOB_STATUSES)[number]["value"];export const JOB_STATUS_BADGE_COLORS: Record<JobStatusValue, BadgeColor> = {+ new: "teal",draft: "slate",applied: "blue",interview: "violet",@@ -30,16 +32,14 @@ export const JOB_STATUS_BADGE_COLORS: Record<JobStatusValue, BadgeColor> = {// job.Status.value is a plain string from the DB, not the literal union,// so lookups need a safe fallback for unrecognized values.export function getJobStatusBadgeColor(value: string): BadgeColor {- return (- JOB_STATUS_BADGE_COLORS[value as JobStatusValue] ?? "slate"- );+ return JOB_STATUS_BADGE_COLORS[value as JobStatusValue] ?? "slate";}export const DISCOVERY_STATUS_BADGE_COLORS: Record<DiscoveryStatus,BadgeColor> = {- new: "blue",+ new: "teal",accepted: "emerald",dismissed: "slate",};diff --git a/src/lib/constants.ts b/src/lib/constants.tsindex 8921b41..237d23b 100644--- a/src/lib/constants.ts+++ b/src/lib/constants.ts@@ -140,6 +140,7 @@ export const JOB_SOURCES = [] as const;export const JOB_STATUSES = [+ { label: "New", value: "new" },{ label: "Draft", value: "draft" },{ label: "Applied", value: "applied" },{ label: "Interview", value: "interview" },