Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add breadcrumbs to Recruiter Dashboard and give proper title #1401

Merged
merged 3 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function RecruitmentRecruiterDashboardPage() {
return <></>;
}

const title = `${t(KEY.recruitment_overview)} - ${getObjectFieldOrNumber(recruitment?.organization, 'name')} - ${dbT(
const title = `${t(KEY.recruitment_recruiter_dashboard)} - ${getObjectFieldOrNumber(recruitment?.organization, 'name')} - ${dbT(
recruitment,
'name',
)}`;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export const KEY = {
recruitment_no_current_applications_gang: 'recruitment_no_current_applications_gang',
recruitment_progression: 'recruitment_progression',
recruitment_overview: 'recruitment_overview',
recruitment_recruiter_dashboard: 'recruitment_recruiter_dashboard',
recruitment_dashboard_description: 'recruitment_dashboard_description',
recruitment_application: 'recruitment_application',
recruitment_admitted: 'recruitment_admitted',
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/i18n/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ export const nb = prepareTranslations({
[KEY.recruitment_applications]: 'søknader',
[KEY.recruitment_progression]: 'Opptak fremgang',
[KEY.recruitment_overview]: 'Opptak oversikt',
[KEY.recruitment_recruiter_dashboard]: 'Dashbord',
[KEY.recruitment_statistics]: 'Opptak statistikk',
[KEY.recruitment_applications_processed]: 'søknader behandlet',
[KEY.recruitment_automatic_rejection]: 'Automatisk avslag',
Expand Down Expand Up @@ -723,6 +724,7 @@ export const en = prepareTranslations({
[KEY.application_deadline]: 'Application deadline',
[KEY.recruitment_progression]: 'Recruitment progression',
[KEY.recruitment_overview]: 'Recruitment overview',
[KEY.recruitment_recruiter_dashboard]: 'Dashboard',
[KEY.recruitment_admitted]: 'admitted',
[KEY.recruitment_statistics]: 'Recruitment statistics',
[KEY.recruitment_applications]: 'applications',
Expand Down
21 changes: 17 additions & 4 deletions frontend/src/router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,6 @@ export const router = createBrowserRouter(
),
}}
/>
<Route
path={ROUTES.frontend.admin_recruitment_recruiter_dashboard}
element={<RecruitmentRecruiterDashboardPage />}
/>
<Route
path={ROUTES.frontend.admin_recruitment_gang_all_applications}
element={<RecruitmentGangAllApplicantsAdminPage />}
Expand Down Expand Up @@ -429,6 +425,23 @@ export const router = createBrowserRouter(
},
}}
>
<Route
path={ROUTES.frontend.admin_recruitment_recruiter_dashboard}
element={<RecruitmentRecruiterDashboardPage />}
loader={recruitmentLoader}
handle={{
crumb: ({ recruitment }: RecruitmentLoader) => (
<Link
url={reverse({
pattern: ROUTES.frontend.admin_recruitment_recruiter_dashboard,
urlParams: { recruitmentId: recruitment?.id },
})}
>
{t(KEY.recruitment_recruiter_dashboard)}
</Link>
),
}}
/>
<Route
path={ROUTES.frontend.admin_recruitment_gang_separateposition_create}
element={
Expand Down
Loading