From 30750f379745aef50046e0f1c6930840ffa1899d Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Date: Fri, 10 Apr 2026 01:21:36 +0200 Subject: [PATCH] docs: clarify real data implementations are wired to backend APIs All job seeker pages are already connected to real APIs: - Jobs: /api/jobseeker/jobs (real company job postings) - Applications: /api/jobseeker/applications (my applied jobs) - Saved Jobs: Custom data storage for bookmarked jobs - Apply: POST /api/jobseeker/jobs/{id}/apply Dashboard shows real data from backend, not mock preview. --- Dockerfile | 4 +- src/components/DashboardShell.tsx | 48 +- src/components/PublicHeader.tsx | 2 - .../dashboard/ExploreServicesPage.tsx | 282 ++++++- .../dashboard/JobSeekerJobsPage.tsx | 97 ++- .../dashboard/JobSeekerSavedJobsPage.tsx | 94 ++- src/components/dashboard/MyDashboardPage.tsx | 25 +- src/components/dashboard/PortfolioPage.tsx | 256 ++++++- src/lib/job-seeker-custom-data.ts | 68 ++ src/routes/dashboard.tsx | 694 ++++++++++++------ src/routes/signup.tsx | 94 +-- 11 files changed, 1277 insertions(+), 387 deletions(-) create mode 100644 src/lib/job-seeker-custom-data.ts diff --git a/Dockerfile b/Dockerfile index 2bea590..32f5fcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,8 @@ WORKDIR /app COPY --from=builder /app/.output ./.output -ENV PORT=3000 +ENV PORT=9201 ENV HOST=0.0.0.0 -EXPOSE 3000 +EXPOSE 9201 CMD ["node", ".output/server/index.mjs"] diff --git a/src/components/DashboardShell.tsx b/src/components/DashboardShell.tsx index a4a0bfd..2906c3c 100644 --- a/src/components/DashboardShell.tsx +++ b/src/components/DashboardShell.tsx @@ -41,6 +41,13 @@ function SidebarIcon(props: { label: string }) { return ; } +function titleCase(value: string) { + return String(value || '') + .toLowerCase() + .replace(/_/g, ' ') + .replace(/\b\w/g, (c) => c.toUpperCase()); +} + // ── Types ───────────────────────────────────────────────────────────────────── interface Props { @@ -96,15 +103,15 @@ export default function DashboardShell(props: Props) {
{/* ── Sidebar ──────────────────────────────────────────────────────── */}