feat: add assessment, privacy and support flows

This commit is contained in:
TakuyaYagam1 committed 2026-10-08 08:08:25 +03:00
1 parent ee3738ee73
commit e4f24fa202
339 files changed
+56454 -1126

No files matched your search

+32 -3
View File
@@ -1,14 +1,23 @@
import { redirect, type RouteObject } from "react-router-dom";
import { AssessmentAttemptPage, AssessmentPage } from "../../pages/assessment";
import { LoginPage, RegisterPage, VerifyEmailPage } from "../../pages/auth";
import { CandidateOnboardingPage } from "../../pages/candidate-onboarding";
import { CompanyPage } from "../../pages/company";
import { ConsentsPage } from "../../pages/consents";
import { SessionGate } from "../../entities/session";
import { NotFoundPage } from "../../pages/not-found";
import { NeedEditorPage } from "../../pages/need-editor";
import { NeedListPage } from "../../pages/needs";
import { PlaceholderPage } from "../../pages/placeholder";
import { ProfilePage } from "../../pages/profile";
import { QuestionnairePage } from "../../pages/questionnaire";
import { StatusPage } from "../../pages/status";
import {
CreateSupportCasePage,
ManualAssessmentPage,
SupportCaseDetailPage,
SupportCasesPage,
} from "../../pages/support-cases";
import { WelcomePage } from "../../pages/welcome";
import { paths } from "../../shared/config";
import { CandidateShell } from "../../widgets/candidate-shell";
@@ -17,6 +26,7 @@ import { PublicShell } from "../../widgets/public-shell";
import { RootLayout } from "../ui/root-layout";
import { RouteErrorPage } from "../ui/route-error-page";
import { CandidateHomeRoute } from "./candidate-home-route";
import { SupportRoute } from "./support-route";
/**
* Route tree with public pages and role-specific cabinets. Protected shells
@@ -34,7 +44,7 @@ export const routes: RouteObject[] = [
{ path: paths.login, element: <LoginPage /> },
{ path: paths.register, element: <RegisterPage /> },
{ path: paths.verifyEmail, element: <VerifyEmailPage /> },
{ path: paths.support, element: <PlaceholderPage screen="support" /> },
{ path: paths.support, element: <SupportRoute /> },
{ path: paths.status, element: <StatusPage /> },
{ path: "*", element: <NotFoundPage /> },
],
@@ -58,7 +68,11 @@ export const routes: RouteObject[] = [
},
{
path: paths.candidate.assessment,
element: <PlaceholderPage screen="candidateAssessment" />,
element: <AssessmentPage />,
},
{
path: `${paths.candidate.assessment}/:attemptId`,
element: <AssessmentAttemptPage />,
},
{
path: paths.candidate.results,
@@ -72,6 +86,13 @@ export const routes: RouteObject[] = [
path: paths.candidate.privacy,
element: <ConsentsPage />,
},
{ path: paths.candidate.supportCases, element: <SupportCasesPage /> },
{ path: paths.candidate.supportNew, element: <CreateSupportCasePage /> },
{ path: paths.candidate.supportManual, element: <ManualAssessmentPage /> },
{
path: `${paths.candidate.supportCases}/:caseId`,
element: <SupportCaseDetailPage />,
},
{
path: "*",
element: (
@@ -94,7 +115,15 @@ export const routes: RouteObject[] = [
path: paths.employer.company,
element: <CompanyPage />,
},
{ path: paths.employer.needs, element: <PlaceholderPage screen="employerNeeds" /> },
{ path: paths.employer.needs, element: <NeedListPage /> },
{ path: `${paths.employer.needs}/new`, element: <NeedEditorPage /> },
{ path: `${paths.employer.needs}/:needId`, element: <NeedEditorPage /> },
{ path: paths.employer.supportCases, element: <SupportCasesPage /> },
{ path: paths.employer.supportNew, element: <CreateSupportCasePage /> },
{
path: `${paths.employer.supportCases}/:caseId`,
element: <SupportCaseDetailPage />,
},
{
path: paths.employer.candidates,
element: <PlaceholderPage screen="employerCandidates" />,