smart_apply_frontend¶
Role. The role-based dashboard. Admins work the job pool, bidders see their assigned work, managers handle bidders, requests and pay, and superadmins manage accounts and analytics.
Stack. React 18, Vite 5, React Router 6, TanStack Query 5, Recharts, Tailwind CSS. Tests use Vitest with Testing Library. Deployed as a single-page app on Vercel (vercel.json rewrites all paths to the app).
Entry points¶
index.htmlloadssrc/main.jsx, which mounts the app fromsrc/app/.src/app/routes.jsxdefines the pages and the role guards.- Development server on port 5173.
Pages and who can open them¶
| Path | Who |
|---|---|
/login, /privacy-policy |
Everyone |
/jobs |
Admins and superadmins (the job pool); bidders see their assigned jobs here |
/applied-jobs |
Bidders |
/manage |
Managers |
/profile |
Admins and superadmins |
/account |
Admins, superadmins and managers |
/admins, /managers, /users |
Superadmin |
/superadmin-analytics, /superadmin-job-domains, /superadmin-job-sources, /api-usage |
Superadmin |
Managers are redirected from /jobs to /manage.
Layout¶
src/app/— providers, routes, guards and layouts.src/features/— one folder per area:admin,analytics,auth,bidders,jobs,legal,manager,profile.src/shared/— API client (api/client.js), shared components, hooks and constants.
Interfaces¶
- Calls the backend's
/auth,/profile,/jobs,/managerand/admingroups. The API catalog lists them. - Single environment variable:
VITE_API_BASE(see environment variables).
Documentation and CI¶
DESIGN.mdcovers UI rules (toast vs banner, button variants, tables, accessibility,ConfirmSheet).CODE_AUDIT.mdis the refactor log for the frontend and backend.- No CI workflow in this repository.
Known issues¶
- The README describes a
frontend/folder that is not in this repository. - Some backend features (Auto Apply screens, retention settings, QA pages) are described in the backend notes but are not in this snapshot. Confirm the deployed branch before relying on them.