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(QuestionTagBadge): create a reusable QuestionTagBadge component and update usages in QuestionCard and QuestionsSidebar refactor(Sidebar): adjust sidebar layout and spacing for improved responsiveness refactor(TasksSidebar): modify layout for better alignment in task sidebar
Khuram Niaz54b9c35a7372
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsxindex 08f9e44..e994ce6 100644--- a/src/components/Sidebar.tsx+++ b/src/components/Sidebar.tsx@@ -21,13 +21,13 @@ function Sidebar() {"fixed inset-y-0 left-0 z-10 hidden flex-col border-r bg-background transition-[width] duration-200 ease-in-out sm:flex",expanded? APP_CONSTANTS.SIDEBAR_WIDTH.expanded.rail- : APP_CONSTANTS.SIDEBAR_WIDTH.collapsed.rail+ : APP_CONSTANTS.SIDEBAR_WIDTH.collapsed.rail,)}><divclassName={cn(- "flex h-14 shrink-0 items-center gap-2",- expanded ? "px-4" : "justify-center"+ "flex h-14 shrink-0 items-center gap-2 sm:mt-2",+ expanded ? "px-4" : "justify-center",)}><Link@@ -43,7 +43,7 @@ function Sidebar() {<navclassName={cn("flex flex-1 flex-col overflow-y-auto py-2",- expanded ? "gap-0.5" : "gap-2"+ expanded ? "gap-0.5" : "gap-2",)}>{SIDEBAR_LINKS.map((item) => {@@ -67,7 +67,7 @@ function Sidebar() {<divclassName={cn("flex flex-col py-2",- expanded ? "gap-0.5 border-t" : "gap-2"+ expanded ? "gap-0.5 border-t" : "gap-2",)}><NavLinkdiff --git a/src/components/questions/QuestionCard.tsx b/src/components/questions/QuestionCard.tsxindex e451476..9c31230 100644--- a/src/components/questions/QuestionCard.tsx+++ b/src/components/questions/QuestionCard.tsx@@ -3,6 +3,7 @@ import { useState } from "react";import { Question } from "@/models/question.model";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";+import { QuestionTagBadge } from "@/components/questions/QuestionTagBadge";import { Pencil, Trash2 } from "lucide-react";import {AlertDialog,@@ -92,9 +93,7 @@ export function QuestionCard({{question.tags && question.tags.length > 0 && (<div className="flex flex-wrap gap-1.5 mt-3">{question.tags.map((tag) => (- <Badge key={tag.id} variant="secondary" className="text-xs">- {tag.label}- </Badge>+ <QuestionTagBadge key={tag.id}>{tag.label}</QuestionTagBadge>))}</div>)}diff --git a/src/components/questions/QuestionTagBadge.tsx b/src/components/questions/QuestionTagBadge.tsxnew file mode 100644index 0000000..8e0a22c--- /dev/null+++ b/src/components/questions/QuestionTagBadge.tsx@@ -0,0 +1,20 @@+import { Badge } from "@/components/ui/badge";+import { cn } from "@/lib/utils";++type QuestionTagBadgeProps = {+ variant?: "default" | "secondary";+ className?: string;+ children: React.ReactNode;+};++export function QuestionTagBadge({+ variant = "secondary",+ className,+ children,+}: QuestionTagBadgeProps) {+ return (+ <Badge variant={variant} className={cn("text-xs", className)}>+ {children}+ </Badge>+ );+}diff --git a/src/components/questions/QuestionsSidebar.tsx b/src/components/questions/QuestionsSidebar.tsxindex fa92937..29b3cd1 100644--- a/src/components/questions/QuestionsSidebar.tsx+++ b/src/components/questions/QuestionsSidebar.tsx@@ -2,7 +2,7 @@import { useState } from "react";import { ChevronLeft, ChevronRight } from "lucide-react";import { cn } from "@/lib/utils";-import { Badge } from "@/components/ui/badge";+import { QuestionTagBadge } from "@/components/questions/QuestionTagBadge";type TagWithCount = {id: string;@@ -53,16 +53,12 @@ function QuestionsSidebar({<h3 className="font-semibold mb-4 text-sm">Skill Tags</h3><div className="flex flex-wrap gap-1.5"><button onClick={() => onFilterChange(undefined)}>- <Badge+ <QuestionTagBadgevariant={!selectedFilter ? "default" : "secondary"}- className={cn(- "cursor-pointer font-normal",- !selectedFilter &&- "bg-blue-400 hover:bg-blue-400 text-white border-transparent",- )}+ className="cursor-pointer">{totalQuestions} All- </Badge>+ </QuestionTagBadge></button>{sortedTags.map((tag) => (<button@@ -71,16 +67,12 @@ function QuestionsSidebar({className="max-w-full"title={`${tag.questionCount} ${tag.label}`}>- <Badge+ <QuestionTagBadgevariant={selectedFilter === tag.id ? "default" : "secondary"}- className={cn(- "cursor-pointer font-normal max-w-full whitespace-nowrap overflow-hidden text-ellipsis block",- selectedFilter === tag.id &&- "bg-blue-400 hover:bg-blue-400 text-white border-transparent",- )}+ className="cursor-pointer max-w-full whitespace-nowrap overflow-hidden text-ellipsis">{tag.questionCount} {tag.label}- </Badge>+ </QuestionTagBadge></button>))}</div>diff --git a/src/components/tasks/TasksSidebar.tsx b/src/components/tasks/TasksSidebar.tsxindex 7b720d8..2c2eff4 100644--- a/src/components/tasks/TasksSidebar.tsx+++ b/src/components/tasks/TasksSidebar.tsx@@ -28,7 +28,7 @@ function TasksSidebar({return (<divclassName={cn(- "relative border-r py-4 hidden md:flex flex-col h-full transition-all duration-200",+ "relative border-r py-4 hidden md:flex flex-col h-full transition-all duration-200 -ml-3",collapsed ? "w-0 overflow-visible" : "w-48",)}>