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.

style(badges): tint the status badge palette and fold the current-stage and "via" pills into it

Khuram Niaz746a86192162
diff --git a/src/components/StatusBadge.tsx b/src/components/StatusBadge.tsx
index 616691b..4bf89df 100644
--- a/src/components/StatusBadge.tsx
+++ b/src/components/StatusBadge.tsx
@@ -11,6 +11,8 @@ interface StatusBadgeProps {
// Reusable colored badge; color values are centralized in @/lib/badge-colors
export function StatusBadge({ label, color, className }: StatusBadgeProps) {
return (
- <Badge className={cn(BADGE_COLORS[color], className)}>{label}</Badge>
+ <Badge variant="outline" className={cn(BADGE_COLORS[color], className)}>
+ {label}
+ </Badge>
);
}
diff --git a/src/components/myjobs/job-details/JobSummaryCard.tsx b/src/components/myjobs/job-details/JobSummaryCard.tsx
index c082223..36ac583 100644
--- a/src/components/myjobs/job-details/JobSummaryCard.tsx
+++ b/src/components/myjobs/job-details/JobSummaryCard.tsx
@@ -8,8 +8,8 @@ import { Card, CardContent } from "@/components/ui/card";
import { CircularScore } from "@/components/CircularScore";
import { StatusBadge } from "@/components/StatusBadge";
import { DownloadFileButton } from "@/components/profile/DownloadFileButton";
-import { getJobStatusBadgeColor } from "@/lib/badge-colors";
-import { formatUrl } from "@/lib/utils";
+import { BADGE_COLORS, getJobStatusBadgeColor } from "@/lib/badge-colors";
+import { cn, formatUrl } from "@/lib/utils";
import type { JobMatchData } from "@/models/ai.schemas";
import {
JobResponse,
@@ -120,7 +120,10 @@ export function JobSummaryCard({
{job.createdAt ? format(new Date(job.createdAt), "PP") : "-"}
</span>
{job.createdVia && (
- <Badge className="gap-1 bg-violet-500 dark:bg-violet-400">
+ <Badge
+ variant="outline"
+ className={cn("gap-1", BADGE_COLORS.violet)}
+ >
<Sparkles className="h-3.5 w-3.5" />
via {job.createdVia}
</Badge>
diff --git a/src/components/myjobs/job-details/timeline/StageDetailPanel.tsx b/src/components/myjobs/job-details/timeline/StageDetailPanel.tsx
index d308e99..b587c92 100644
--- a/src/components/myjobs/job-details/timeline/StageDetailPanel.tsx
+++ b/src/components/myjobs/job-details/timeline/StageDetailPanel.tsx
@@ -5,6 +5,7 @@ import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { DeleteAlertDialog } from "@/components/DeleteAlertDialog";
+import { StatusBadge } from "@/components/StatusBadge";
import { toastActionResult } from "@/lib/toast";
import { deleteJobStage } from "@/actions/jobStage.actions";
import type { JobStage } from "@/models/jobStage.model";
@@ -117,9 +118,11 @@ export function StageDetailPanel({
<div className="flex flex-wrap items-center gap-2.5">
<h3 className="text-lg font-bold">{stage.StageType.label}</h3>
{isCurrent && (
- <span className="rounded-full bg-emerald-500 px-2 py-0.5 text-[11px] font-bold text-white dark:bg-emerald-400 dark:text-emerald-950">
- CURRENT STAGE
- </span>
+ <StatusBadge
+ label="CURRENT STAGE"
+ color="emerald"
+ className="text-[11px] font-bold"
+ />
)}
</div>
<div className="flex shrink-0 items-center gap-2">
diff --git a/src/components/profile/ReviewDetails.tsx b/src/components/profile/ReviewDetails.tsx
index cd4a106..543b93d 100644
--- a/src/components/profile/ReviewDetails.tsx
+++ b/src/components/profile/ReviewDetails.tsx
@@ -6,6 +6,8 @@ import { format } from "date-fns";
import { ChevronDown, Sparkles } from "lucide-react";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
+import { BADGE_COLORS } from "@/lib/badge-colors";
+import { cn } from "@/lib/utils";
import {
Collapsible,
CollapsibleContent,
@@ -48,7 +50,10 @@ export function ReviewDetails({ reviewData }: ReviewDetailsProps) {
) : null}
{reviewData.provider === "mcp"
? reviewData.model && (
- <Badge className="gap-1 bg-violet-500 dark:bg-violet-400">
+ <Badge
+ variant="outline"
+ className={cn("gap-1", BADGE_COLORS.violet)}
+ >
<Sparkles className="h-3.5 w-3.5" />
via {reviewData.model}
</Badge>
diff --git a/src/lib/badge-colors.ts b/src/lib/badge-colors.ts
index e3bd808..2821a49 100644
--- a/src/lib/badge-colors.ts
+++ b/src/lib/badge-colors.ts
@@ -5,13 +5,17 @@ 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",
- emerald: "bg-emerald-500 dark:bg-emerald-400",
- red: "bg-red-500 dark:bg-red-400",
+ slate:
+ "bg-slate-500/10 text-slate-700 border-slate-500/20 dark:bg-slate-400/15 dark:text-slate-300 dark:border-slate-400/25",
+ teal: "bg-teal-500/10 text-teal-700 border-teal-500/20 dark:bg-teal-400/15 dark:text-teal-300 dark:border-teal-400/25",
+ blue: "bg-blue-500/10 text-blue-700 border-blue-500/20 dark:bg-blue-400/15 dark:text-blue-300 dark:border-blue-400/25",
+ violet:
+ "bg-violet-500/10 text-violet-700 border-violet-500/20 dark:bg-violet-400/15 dark:text-violet-300 dark:border-violet-400/25",
+ amber:
+ "bg-amber-500/10 text-amber-700 border-amber-500/25 dark:bg-amber-400/15 dark:text-amber-300 dark:border-amber-400/25",
+ emerald:
+ "bg-emerald-500/10 text-emerald-700 border-emerald-500/20 dark:bg-emerald-400/15 dark:text-emerald-300 dark:border-emerald-400/25",
+ red: "bg-red-500/10 text-red-700 border-red-500/20 dark:bg-red-400/15 dark:text-red-300 dark:border-red-400/25",
} as const;
export type BadgeColor = keyof typeof BADGE_COLORS;