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.

Add minor dashboard adjustment

Khuram Niaz866d8a65e221
diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx
index 0361fec..a71a355 100644
--- a/src/app/dashboard/page.tsx
+++ b/src/app/dashboard/page.tsx
@@ -81,7 +81,7 @@ export default async function Dashboard() {
label: "Jobs",
data: weeklyData,
keys: ["value"],
- axisLeftLegend: "NUMBER OF JOBS APPLIED",
+ axisLeftLegend: "JOBS APPLIED",
},
{
label: "Activities",
diff --git a/src/components/dashboard/ActivityCalendar.tsx b/src/components/dashboard/ActivityCalendar.tsx
index d85b0a8..43ea9d1 100644
--- a/src/components/dashboard/ActivityCalendar.tsx
+++ b/src/components/dashboard/ActivityCalendar.tsx
@@ -19,7 +19,7 @@ export default function ActivityCalendar({
return (
<Card className="w-[100%]">
<CardHeader>
- <CardTitle>Activity Calendar (Jobs Applied)</CardTitle>
+ <CardTitle className="text-green-600">Activity Calendar</CardTitle>
</CardHeader>
<CardContent className="h-[200px]">
<ResponsiveCalendar
diff --git a/src/components/dashboard/JobsAppliedCard.tsx b/src/components/dashboard/JobsAppliedCard.tsx
index 2a39d74..8810eec 100644
--- a/src/components/dashboard/JobsAppliedCard.tsx
+++ b/src/components/dashboard/JobsAppliedCard.tsx
@@ -15,12 +15,12 @@ export default function JobsAppliedCard() {
return (
<Card className="sm:col-span-2">
<CardHeader className="pb-3">
- <CardTitle>Jobs Applied</CardTitle>
+ <CardTitle className="text-green-600">Dashboard</CardTitle>
<CardDescription className="max-w-lg text-balance leading-relaxed">
- Create new jobs to apply and track.
+ Create new jobs and tasks.
</CardDescription>
</CardHeader>
- <CardFooter>
+ <CardFooter className="flex flex-col gap-2 items-start">
<Button
variant="outline"
onClick={() => router.push("/dashboard/myjobs")}
@@ -30,6 +30,15 @@ export default function JobsAppliedCard() {
Add New Job
</span>
</Button>
+ <Button
+ variant="outline"
+ onClick={() => router.push("/dashboard/tasks")}
+ >
+ <PlusCircle className="h-3.5 w-3.5 mr-1" />
+ <span className="sr-only sm:not-sr-only sm:whitespace-nowrap">
+ Add New Task
+ </span>
+ </Button>
</CardFooter>
</Card>
);
diff --git a/src/components/dashboard/NumberCardToggle.tsx b/src/components/dashboard/NumberCardToggle.tsx
index 0e987da..9d6fc58 100644
--- a/src/components/dashboard/NumberCardToggle.tsx
+++ b/src/components/dashboard/NumberCardToggle.tsx
@@ -47,7 +47,10 @@ export default function NumberCardToggle({ data }: NumberCardToggleProps) {
))}
</div>
</div>
- <CardTitle className="text-4xl">{current.num}</CardTitle>
+ <CardTitle className="text-4xl">
+ {current.num}{" "}
+ <span className="text-xs text-muted-foreground">Jobs Applied</span>
+ </CardTitle>
</CardHeader>
<CardContent>
<div className="flex gap-2 text-xs text-muted-foreground">
diff --git a/src/components/dashboard/RecentJobsCard.tsx b/src/components/dashboard/RecentJobsCard.tsx
index 55e1541..1e3576f 100644
--- a/src/components/dashboard/RecentJobsCard.tsx
+++ b/src/components/dashboard/RecentJobsCard.tsx
@@ -8,7 +8,7 @@ export default function RecentJobsCard({ jobs }: { jobs: JobResponse[] }) {
return (
<Card className="mb-2">
<CardHeader>
- <CardTitle>Recent Jobs Applied</CardTitle>
+ <CardTitle className="text-green-600">Recent Jobs</CardTitle>
</CardHeader>
<CardContent className="grid gap-6">
{jobs.map((job) => (
diff --git a/src/components/dashboard/TopActivitiesCard.tsx b/src/components/dashboard/TopActivitiesCard.tsx
index 257d2d2..c67b7b2 100644
--- a/src/components/dashboard/TopActivitiesCard.tsx
+++ b/src/components/dashboard/TopActivitiesCard.tsx
@@ -20,7 +20,9 @@ export default function TopActivitiesCard({ data }: TopActivitiesCardProps) {
<Card>
<CardHeader className="pb-2">
<div className="flex items-center justify-between">
- <CardTitle className="text-sm font-medium">Top Activities</CardTitle>
+ <CardTitle className="text-sm font-medium text-green-600">
+ Top Activities
+ </CardTitle>
<div className="flex rounded-md border text-xs">
{data.map((item, index) => (
<button
@@ -43,7 +45,9 @@ export default function TopActivitiesCard({ data }: TopActivitiesCardProps) {
</CardHeader>
<CardContent>
{current.activities.length === 0 ? (
- <p className="text-sm text-muted-foreground">No activities recorded</p>
+ <p className="text-sm text-muted-foreground">
+ No activities recorded
+ </p>
) : (
<div className="space-y-3">
{current.activities.map((activity, index) => (
@@ -52,7 +56,9 @@ export default function TopActivitiesCard({ data }: TopActivitiesCardProps) {
{index + 1}
</span>
<div className="flex-1 min-w-0">
- <p className="text-sm font-medium truncate">{activity.label}</p>
+ <p className="text-sm font-medium truncate">
+ {activity.label}
+ </p>
</div>
<span className="text-sm font-semibold tabular-nums">
{activity.hours}h
diff --git a/src/components/dashboard/WeeklyBarChartToggle.tsx b/src/components/dashboard/WeeklyBarChartToggle.tsx
index 29d1c38..e2a314f 100644
--- a/src/components/dashboard/WeeklyBarChartToggle.tsx
+++ b/src/components/dashboard/WeeklyBarChartToggle.tsx
@@ -2,7 +2,7 @@
import { useState } from "react";
import { ResponsiveBar } from "@nivo/bar";
-import { Card, CardContent } from "../ui/card";
+import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
import { cn } from "@/lib/utils";
type ChartConfig = {
@@ -35,8 +35,11 @@ export default function WeeklyBarChartToggle({
return (
<Card className="mb-2 lg:mb-0">
- <CardContent className="h-[240px] p-3 pt-1">
- <div className="flex items-center justify-end mb-1 mt-3">
+ <CardHeader className="pb-3">
+ <div className="flex items-center justify-between mb-1 mt-3">
+ <CardTitle className="text-green-600">
+ Weekly {current.label}
+ </CardTitle>
<div className="flex rounded-md border text-xs">
{charts.map((chart, index) => (
<button
@@ -56,6 +59,9 @@ export default function WeeklyBarChartToggle({
))}
</div>
</div>
+ </CardHeader>
+
+ <CardContent className="h-[240px] p-3 pt-1">
<div className="h-[200px]">
<ResponsiveBar
data={roundedData}
@@ -73,7 +79,11 @@ export default function WeeklyBarChartToggle({
current.groupMode === "stacked" ? { scheme: "nivo" } : "#2a7ef0"
}
enableTotals={current.groupMode === "stacked" ? true : false}
- valueFormat={(value) => value.toFixed(2)}
+ valueFormat={(value) =>
+ current.label === "Activities"
+ ? value.toFixed(1)
+ : value.toFixed(0)
+ }
theme={{
text: {
fill: "#9ca3af",
@@ -98,7 +108,6 @@ export default function WeeklyBarChartToggle({
tickSize: 5,
tickPadding: 5,
tickRotation: 0,
- legend: "DAYS OF WEEK",
legendPosition: "middle",
legendOffset: 32,
truncateTickAt: 0,