diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 08a4a91de..9e616cf5d 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,8 @@ +## May 2, 2024 + +- **Feature** Added a new landing page for tenant management [🎟️ DESENG-591](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-591) + - The page will be updated to list and manage tenants in upcoming tickets. + ## April 30, 2024 - **Task** Dagster ETL error [DESENG-599](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-599) diff --git a/met-web/src/components/layout/SideNav/SideNavElements.tsx b/met-web/src/components/layout/SideNav/SideNavElements.tsx index fdb73a8e1..8fc0ba3f3 100644 --- a/met-web/src/components/layout/SideNav/SideNavElements.tsx +++ b/met-web/src/components/layout/SideNav/SideNavElements.tsx @@ -45,4 +45,11 @@ export const Routes: Route[] = [ authenticated: true, allowedRoles: [USER_ROLES.VIEW_FEEDBACKS], }, + { + name: 'Tenant Admin', + path: '/tenantadmin', + base: 'tenantadmin', + authenticated: true, + allowedRoles: [USER_ROLES.SUPER_ADMIN], + }, ]; diff --git a/met-web/src/components/tenantManagement/listing/index.tsx b/met-web/src/components/tenantManagement/listing/index.tsx new file mode 100644 index 000000000..018234264 --- /dev/null +++ b/met-web/src/components/tenantManagement/listing/index.tsx @@ -0,0 +1,13 @@ +import { Box, Typography } from '@mui/material'; +import React from 'react'; + +const TenantManagement = () => { + return ( + + This is the tenant management page! + {/* todo: the rest of the page */} + + ); +}; + +export default TenantManagement; diff --git a/met-web/src/routes/AuthenticatedRoutes.tsx b/met-web/src/routes/AuthenticatedRoutes.tsx index 4c8e9b038..480459d64 100644 --- a/met-web/src/routes/AuthenticatedRoutes.tsx +++ b/met-web/src/routes/AuthenticatedRoutes.tsx @@ -25,6 +25,7 @@ import UserProfile from 'components/userManagement/userDetails'; import ScrollToTop from 'components/scrollToTop'; import ReportSettings from 'components/survey/report'; import FormioListener from 'components/FormioListener'; +import TenantManagement from 'components/tenantManagement/listing'; const AuthenticatedRoutes = () => { return ( @@ -61,6 +62,9 @@ const AuthenticatedRoutes = () => { } /> } /> } /> + }> + } /> + }> } /> diff --git a/met-web/tests/unit/components/sidenav.test.tsx b/met-web/tests/unit/components/sidenav.test.tsx index ead3672f1..f75602630 100644 --- a/met-web/tests/unit/components/sidenav.test.tsx +++ b/met-web/tests/unit/components/sidenav.test.tsx @@ -14,7 +14,7 @@ jest.mock('@reduxjs/toolkit/query/react', () => ({ fetchBaseQuery: jest.fn(), })); -jest.mock('axios') +jest.mock('axios'); jest.mock('react-redux', () => ({ ...jest.requireActual('react-redux'), @@ -25,6 +25,7 @@ jest.mock('react-redux', () => ({ USER_ROLES.VIEW_SURVEYS, USER_ROLES.VIEW_USERS, USER_ROLES.VIEW_FEEDBACKS, + USER_ROLES.SUPER_ADMIN, ]; }), }));