feat(frontend): list the company invitations in the employer cabinet

This commit is contained in:
shira committed 2026-10-10 18:05:25 +03:00
1 parent 84454116f2
commit d8abaae85b
23 files changed
+1349 -222

No files matched your search

+8 -4
View File
@@ -174,6 +174,7 @@ describe("route groups", () => {
["/employer/support/cases/new", "Обратиться в поддержку", "Разделы кабинета работодателя"],
["/employer/candidates", "Кандидаты", "Разделы кабинета работодателя"],
["/employer/invitations/new", "Приглашение кандидату", "Разделы кабинета работодателя"],
["/employer/invitations", "Приглашения", "Разделы кабинета работодателя"],
])("renders %s in its shell with one h1 and landmarks", async (path, heading, navLabel) => {
const html = await renderHtml(path);
@@ -296,10 +297,13 @@ describe("product readiness", () => {
);
});
it("labels the remaining cabinet scaffolds as placeholders", async () => {
expect(await renderHtml("/employer/invitations")).toContain(
"Экран будет реализован в одной из следующих задач",
);
it("routes the employer invitation list to its own screen, not a placeholder", async () => {
const html = await renderHtml("/employer/invitations");
expect(html).toMatch(/<h1[^>]*>Приглашения<\/h1>/);
expect(html).toContain("Проверяем компанию...");
expect(html).not.toContain("Экран будет реализован в одной из следующих задач");
expect(html).not.toContain("Заготовка");
});
it("routes the candidate inbox and one invitation to their own screens, not placeholders", async () => {
+2 -5
View File
@@ -8,6 +8,7 @@ import {
} from "../../pages/candidate-invitations";
import { CandidateOnboardingPage } from "../../pages/candidate-onboarding";
import { CompanyPage } from "../../pages/company";
import { EmployerInvitationsPage } from "../../pages/employer-invitations";
import { PrivacyPage } from "../../pages/privacy";
import { SessionGate } from "../../entities/session";
import { MatchesPage } from "../../pages/matches";
@@ -17,7 +18,6 @@ import { NotFoundPage } from "../../pages/not-found";
import { NeedEditorPage } from "../../pages/need-editor";
import { NeedListPage } from "../../pages/needs";
import { CandidateNotificationsPage, EmployerNotificationsPage } from "../../pages/notifications";
import { PlaceholderPage } from "../../pages/placeholder";
import { ProfilePage } from "../../pages/profile";
import { QuestionnairePage } from "../../pages/questionnaire";
import { StatusPage } from "../../pages/status";
@@ -141,10 +141,7 @@ export function createRoutes(stand: StandMode = standMode): RouteObject[] {
element: <SupportCaseDetailPage />,
},
{ path: paths.employer.candidates, element: <MatchesPage /> },
{
path: paths.employer.invitations,
element: <PlaceholderPage screen="employerInvitations" />,
},
{ path: paths.employer.invitations, element: <EmployerInvitationsPage /> },
{ path: paths.employer.invitationNew, element: <InvitationComposePage /> },
{ path: paths.employer.notifications, element: <EmployerNotificationsPage /> },
{