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.

increase activity calendar range, minor layout fixes

Khuram Niaz4e7812a6a7a1
diff --git a/src/actions/dashboard.actions.ts b/src/actions/dashboard.actions.ts
index 63cfe02..d6aaf4e 100644
--- a/src/actions/dashboard.actions.ts
+++ b/src/actions/dashboard.actions.ts
@@ -134,8 +134,8 @@ export const getActivityCalendarData = async (): Promise<any | undefined> => {
throw new Error("Not authenticated");
}
const today = new Date();
- const sevenDaysAgo = new Date();
- sevenDaysAgo.setDate(today.getDate() - 7);
+ const daysAgo = new Date();
+ daysAgo.setDate(today.getDate() - 356);
const jobData = await prisma.job.groupBy({
by: "appliedDate",
_count: {
@@ -145,7 +145,7 @@ export const getActivityCalendarData = async (): Promise<any | undefined> => {
userId: user.id,
applied: true,
appliedDate: {
- gte: sevenDaysAgo,
+ gte: daysAgo, // A year of data
lte: today,
},
},
diff --git a/src/components/dashboard/ActivityCalendar.tsx b/src/components/dashboard/ActivityCalendar.tsx
index 9650151..109988b 100644
--- a/src/components/dashboard/ActivityCalendar.tsx
+++ b/src/components/dashboard/ActivityCalendar.tsx
@@ -23,7 +23,7 @@ export default function ActivityCalendar({ data }: { data: any[] }) {
emptyColor={resolvedTheme === "light" ? "#eeeeee" : "#30363d"}
colors={["#90e0ef", "#48cae4", "#00b4d8", "#0096c7", "#0077b6"]}
minValue={2}
- margin={{ top: 25, right: 40, bottom: 40, left: 0 }}
+ margin={{ top: 20, right: 0, bottom: 20, left: 0 }}
yearSpacing={40}
monthBorderColor={borderColor}
dayBorderWidth={2}
diff --git a/src/components/dashboard/RecentJobsCard.tsx b/src/components/dashboard/RecentJobsCard.tsx
index 839621c..6373206 100644
--- a/src/components/dashboard/RecentJobsCard.tsx
+++ b/src/components/dashboard/RecentJobsCard.tsx
@@ -5,7 +5,7 @@ import { format } from "date-fns";
export default function RecentJobsCard({ jobs }: { jobs: JobResponse[] }) {
return (
- <Card>
+ <Card className="mb-2">
<CardHeader>
<CardTitle>Recent Jobs Applied</CardTitle>
</CardHeader>
diff --git a/src/components/dashboard/WeeklyBarChart.tsx b/src/components/dashboard/WeeklyBarChart.tsx
index 26dbbf2..3937968 100644
--- a/src/components/dashboard/WeeklyBarChart.tsx
+++ b/src/components/dashboard/WeeklyBarChart.tsx
@@ -5,7 +5,7 @@ import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
export default function WeeklyBarChart({ data }: { data: any[] }) {
return (
- <Card>
+ <Card className="mb-2 lg:mb-0">
<CardHeader className="pb-2">
<CardTitle>Weekly Activity</CardTitle>
</CardHeader>