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.

feat(dashboard): enhance RecentCardToggle layout and increase displayed jobs/activities limit

Khuram Niaz8e5cfda461e8
diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx
index 0306f51..1c17659 100644
--- a/src/app/dashboard/page.tsx
+++ b/src/app/dashboard/page.tsx
@@ -95,7 +95,7 @@ export default async function Dashboard() {
]}
/>
</div>
- <div>
+ <div className="lg:relative lg:self-stretch">
<RecentCardToggle jobs={recentJobs} activities={recentActivities} />
</div>
<div className="w-full col-span-3">
diff --git a/src/components/dashboard/RecentCardToggle.tsx b/src/components/dashboard/RecentCardToggle.tsx
index 9d38ffd..5096366 100644
--- a/src/components/dashboard/RecentCardToggle.tsx
+++ b/src/components/dashboard/RecentCardToggle.tsx
@@ -80,7 +80,7 @@ export default function RecentCardToggle({
const { requestStart, confirmDialog } = useActivitySwitchConfirm();
return (
- <Card className="mb-2">
+ <Card className="mb-2 lg:absolute lg:inset-0 lg:mb-0 lg:flex lg:flex-col">
<CardHeader>
<div className="flex items-center justify-between">
<CardTitle className="text-green-600">
@@ -109,9 +109,9 @@ export default function RecentCardToggle({
</div>
</div>
</CardHeader>
- <CardContent className="grid gap-6">
+ <CardContent className="grid auto-rows-max gap-6 lg:min-h-0 lg:flex-1 lg:overflow-y-auto">
{activeIndex === 0
- ? groupJobsByDate(jobs.slice(0, 5)).map(([date, dateJobs]) => (
+ ? groupJobsByDate(jobs).map(([date, dateJobs]) => (
<div key={date} className="grid gap-4">
<p className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">
{date}
@@ -147,7 +147,7 @@ export default function RecentCardToggle({
))}
</div>
))
- : groupActivitiesByDate(activities.slice(0, 5)).map(([date, dateActivities]) => (
+ : groupActivitiesByDate(activities).map(([date, dateActivities]) => (
<div key={date} className="grid gap-4">
<p className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">
{date}
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index 6a9d7f6..57df6cc 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -24,7 +24,7 @@ export const APP_CONSTANTS = {
ACTIVITY_MAX_DURATION_MINUTES: 8 * 60, // 8 Hours
ACTIVITY_MAX_DURATION_MS: 8 * 60 * 60 * 1000, // 8 hours in milliseconds
ACTIVITY_MIN_DURATION_MINUTES: 2, // activities shorter than this are discarded
- RECENT_NUM_JOBS_ACTIVITIES: 7,
+ RECENT_NUM_JOBS_ACTIVITIES: 10,
AI_SLOW_RESPONSE_THRESHOLD_MS: 15_000, // 15 seconds
INTERSECTION_OBSERVER_THRESHOLD: 0.1,
TOAST_LIMIT: 1,