From c01cdb2238267e51692635b018ee23a7f3949e23 Mon Sep 17 00:00:00 2001
From: Peter Giles <8978655+petertgiles@users.noreply.github.com>
Date: Wed, 23 Oct 2024 13:44:55 -0400
Subject: [PATCH 01/21] index page
---
apps/web/src/messages/pageTitles.ts | 5 ++++
.../pages/Departments/IndexDepartmentPage.tsx | 20 +++++++------
.../components/DepartmentTable.tsx | 28 +++++++++----------
3 files changed, 30 insertions(+), 23 deletions(-)
diff --git a/apps/web/src/messages/pageTitles.ts b/apps/web/src/messages/pageTitles.ts
index 9a10e0525cb..0d073a242a1 100644
--- a/apps/web/src/messages/pageTitles.ts
+++ b/apps/web/src/messages/pageTitles.ts
@@ -66,4 +66,9 @@ export default defineMessages({
id: "bVQ/rm",
description: "Title for the index user page",
},
+ adminDashboard: {
+ defaultMessage: "Admin dashboard",
+ id: "S0RMA8",
+ description: "Title for the admin dashboard page",
+ },
});
diff --git a/apps/web/src/pages/Departments/IndexDepartmentPage.tsx b/apps/web/src/pages/Departments/IndexDepartmentPage.tsx
index 86f99e0e64e..c8a7d58d282 100644
--- a/apps/web/src/pages/Departments/IndexDepartmentPage.tsx
+++ b/apps/web/src/pages/Departments/IndexDepartmentPage.tsx
@@ -3,12 +3,11 @@ import { useIntl } from "react-intl";
import { ROLE_NAME } from "@gc-digital-talent/auth";
import SEO from "~/components/SEO/SEO";
-import AdminContentWrapper from "~/components/AdminContentWrapper/AdminContentWrapper";
import useRoutes from "~/hooks/useRoutes";
-import AdminHero from "~/components/HeroDeprecated/AdminHero";
import useBreadcrumbs from "~/hooks/useBreadcrumbs";
import RequireAuth from "~/components/RequireAuth/RequireAuth";
import pageTitles from "~/messages/pageTitles";
+import Hero from "~/components/Hero";
import DepartmentTableApi from "./components/DepartmentTable";
@@ -19,6 +18,10 @@ export const DepartmentPage = () => {
const navigationCrumbs = useBreadcrumbs({
crumbs: [
+ {
+ label: intl.formatMessage(pageTitles.adminDashboard),
+ url: routes.adminDashboard(),
+ },
{
label: formattedPageTitle,
url: routes.departmentTable(),
@@ -30,13 +33,12 @@ export const DepartmentPage = () => {
return (
<>
+ {intl.formatMessage( + { + defaultMessage: "Department {departmentId} not found.", + id: "8Otaw9", + description: + "Message displayed for department not found.", + }, + { departmentId }, + )} +
+