diff --git a/compliance-web/src/components/Shared/SideNav/RouteItemsList.tsx b/compliance-web/src/components/Shared/SideNav/RouteItemsList.tsx
index 141405ae..87bda7e0 100644
--- a/compliance-web/src/components/Shared/SideNav/RouteItemsList.tsx
+++ b/compliance-web/src/components/Shared/SideNav/RouteItemsList.tsx
@@ -1,5 +1,4 @@
import { Assessment, Settings, List } from "@mui/icons-material";
-import { useAuth } from "react-oidc-context";
export interface RouteMenuItem {
routeName: string;
@@ -9,30 +8,28 @@ export interface RouteMenuItem {
}
export default function RouteItemsList() {
- const { isAuthenticated } = useAuth();
-
- let routeMenuItems: RouteMenuItem[] = [
+ const routeMenuItems: RouteMenuItem[] = [
{
routeName: "C&E Database",
icon:
,
subRoutes: [
{
routeName: "Case Files",
- path: "/",
+ path: "/ce-database/case-files",
},
{
routeName: "Inspections",
- path: "/link1",
+ path: "/ce-database/inspection",
},
{
routeName: "Complaints",
- path: "/link2",
+ path: "/ce-database/compliants",
},
],
},
{
routeName: "IR Board",
- path: "/about",
+ path: "/ir-board",
icon: ,
},
{
@@ -41,29 +38,23 @@ export default function RouteItemsList() {
subRoutes: [
{
routeName: "Staff",
- path: "/newpage",
+ path: "/admin/staff",
},
{
routeName: "Proponents",
- path: "/link1",
+ path: "/admin/proponents",
},
{
routeName: "Agencies",
- path: "/link2",
+ path: "/admin/agencies",
},
{
routeName: "Topics",
- path: "/link3",
+ path: "/admin/topics",
},
],
},
];
- const authenticatedRouteMenuItems: RouteMenuItem[] = [];
-
- if (isAuthenticated) {
- routeMenuItems = routeMenuItems.concat(authenticatedRouteMenuItems);
- }
-
return routeMenuItems;
}
diff --git a/compliance-web/src/routeTree.gen.ts b/compliance-web/src/routeTree.gen.ts
index 4d37909f..6d2a31c6 100644
--- a/compliance-web/src/routeTree.gen.ts
+++ b/compliance-web/src/routeTree.gen.ts
@@ -19,7 +19,15 @@ import { Route as IndexImport } from './routes/index'
import { Route as EaoPlansIndexImport } from './routes/eao-plans/index'
import { Route as EaoPlansPlanIdImport } from './routes/eao-plans/$planId'
import { Route as AuthenticatedProfileImport } from './routes/_authenticated/profile'
+import { Route as AuthenticatedIrBoardImport } from './routes/_authenticated/ir-board'
import { Route as AuthenticatedUsersIndexImport } from './routes/_authenticated/users/index'
+import { Route as AuthenticatedCeDatabaseInspectionImport } from './routes/_authenticated/ce-database/inspection'
+import { Route as AuthenticatedCeDatabaseCompliantsImport } from './routes/_authenticated/ce-database/compliants'
+import { Route as AuthenticatedCeDatabaseCaseFilesImport } from './routes/_authenticated/ce-database/case-files'
+import { Route as AuthenticatedAdminTopicsImport } from './routes/_authenticated/admin/topics'
+import { Route as AuthenticatedAdminStaffImport } from './routes/_authenticated/admin/staff'
+import { Route as AuthenticatedAdminProponentsImport } from './routes/_authenticated/admin/proponents'
+import { Route as AuthenticatedAdminAgenciesImport } from './routes/_authenticated/admin/agencies'
// Create Virtual Routes
@@ -68,11 +76,57 @@ const AuthenticatedProfileRoute = AuthenticatedProfileImport.update({
getParentRoute: () => AuthenticatedRoute,
} as any)
+const AuthenticatedIrBoardRoute = AuthenticatedIrBoardImport.update({
+ path: '/ir-board',
+ getParentRoute: () => AuthenticatedRoute,
+} as any)
+
const AuthenticatedUsersIndexRoute = AuthenticatedUsersIndexImport.update({
path: '/users/',
getParentRoute: () => AuthenticatedRoute,
} as any)
+const AuthenticatedCeDatabaseInspectionRoute =
+ AuthenticatedCeDatabaseInspectionImport.update({
+ path: '/ce-database/inspection',
+ getParentRoute: () => AuthenticatedRoute,
+ } as any)
+
+const AuthenticatedCeDatabaseCompliantsRoute =
+ AuthenticatedCeDatabaseCompliantsImport.update({
+ path: '/ce-database/compliants',
+ getParentRoute: () => AuthenticatedRoute,
+ } as any)
+
+const AuthenticatedCeDatabaseCaseFilesRoute =
+ AuthenticatedCeDatabaseCaseFilesImport.update({
+ path: '/ce-database/case-files',
+ getParentRoute: () => AuthenticatedRoute,
+ } as any)
+
+const AuthenticatedAdminTopicsRoute = AuthenticatedAdminTopicsImport.update({
+ path: '/admin/topics',
+ getParentRoute: () => AuthenticatedRoute,
+} as any)
+
+const AuthenticatedAdminStaffRoute = AuthenticatedAdminStaffImport.update({
+ path: '/admin/staff',
+ getParentRoute: () => AuthenticatedRoute,
+} as any)
+
+const AuthenticatedAdminProponentsRoute =
+ AuthenticatedAdminProponentsImport.update({
+ path: '/admin/proponents',
+ getParentRoute: () => AuthenticatedRoute,
+ } as any)
+
+const AuthenticatedAdminAgenciesRoute = AuthenticatedAdminAgenciesImport.update(
+ {
+ path: '/admin/agencies',
+ getParentRoute: () => AuthenticatedRoute,
+ } as any,
+)
+
// Populate the FileRoutesByPath interface
declare module '@tanstack/react-router' {
@@ -112,6 +166,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof NewpageLazyImport
parentRoute: typeof rootRoute
}
+ '/_authenticated/ir-board': {
+ id: '/_authenticated/ir-board'
+ path: '/ir-board'
+ fullPath: '/ir-board'
+ preLoaderRoute: typeof AuthenticatedIrBoardImport
+ parentRoute: typeof AuthenticatedImport
+ }
'/_authenticated/profile': {
id: '/_authenticated/profile'
path: '/profile'
@@ -133,6 +194,55 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof EaoPlansIndexImport
parentRoute: typeof rootRoute
}
+ '/_authenticated/admin/agencies': {
+ id: '/_authenticated/admin/agencies'
+ path: '/admin/agencies'
+ fullPath: '/admin/agencies'
+ preLoaderRoute: typeof AuthenticatedAdminAgenciesImport
+ parentRoute: typeof AuthenticatedImport
+ }
+ '/_authenticated/admin/proponents': {
+ id: '/_authenticated/admin/proponents'
+ path: '/admin/proponents'
+ fullPath: '/admin/proponents'
+ preLoaderRoute: typeof AuthenticatedAdminProponentsImport
+ parentRoute: typeof AuthenticatedImport
+ }
+ '/_authenticated/admin/staff': {
+ id: '/_authenticated/admin/staff'
+ path: '/admin/staff'
+ fullPath: '/admin/staff'
+ preLoaderRoute: typeof AuthenticatedAdminStaffImport
+ parentRoute: typeof AuthenticatedImport
+ }
+ '/_authenticated/admin/topics': {
+ id: '/_authenticated/admin/topics'
+ path: '/admin/topics'
+ fullPath: '/admin/topics'
+ preLoaderRoute: typeof AuthenticatedAdminTopicsImport
+ parentRoute: typeof AuthenticatedImport
+ }
+ '/_authenticated/ce-database/case-files': {
+ id: '/_authenticated/ce-database/case-files'
+ path: '/ce-database/case-files'
+ fullPath: '/ce-database/case-files'
+ preLoaderRoute: typeof AuthenticatedCeDatabaseCaseFilesImport
+ parentRoute: typeof AuthenticatedImport
+ }
+ '/_authenticated/ce-database/compliants': {
+ id: '/_authenticated/ce-database/compliants'
+ path: '/ce-database/compliants'
+ fullPath: '/ce-database/compliants'
+ preLoaderRoute: typeof AuthenticatedCeDatabaseCompliantsImport
+ parentRoute: typeof AuthenticatedImport
+ }
+ '/_authenticated/ce-database/inspection': {
+ id: '/_authenticated/ce-database/inspection'
+ path: '/ce-database/inspection'
+ fullPath: '/ce-database/inspection'
+ preLoaderRoute: typeof AuthenticatedCeDatabaseInspectionImport
+ parentRoute: typeof AuthenticatedImport
+ }
'/_authenticated/users/': {
id: '/_authenticated/users/'
path: '/users'
@@ -148,7 +258,15 @@ declare module '@tanstack/react-router' {
export const routeTree = rootRoute.addChildren({
IndexRoute,
AuthenticatedRoute: AuthenticatedRoute.addChildren({
+ AuthenticatedIrBoardRoute,
AuthenticatedProfileRoute,
+ AuthenticatedAdminAgenciesRoute,
+ AuthenticatedAdminProponentsRoute,
+ AuthenticatedAdminStaffRoute,
+ AuthenticatedAdminTopicsRoute,
+ AuthenticatedCeDatabaseCaseFilesRoute,
+ AuthenticatedCeDatabaseCompliantsRoute,
+ AuthenticatedCeDatabaseInspectionRoute,
AuthenticatedUsersIndexRoute,
}),
OidcCallbackRoute,
@@ -181,7 +299,15 @@ export const routeTree = rootRoute.addChildren({
"/_authenticated": {
"filePath": "_authenticated.tsx",
"children": [
+ "/_authenticated/ir-board",
"/_authenticated/profile",
+ "/_authenticated/admin/agencies",
+ "/_authenticated/admin/proponents",
+ "/_authenticated/admin/staff",
+ "/_authenticated/admin/topics",
+ "/_authenticated/ce-database/case-files",
+ "/_authenticated/ce-database/compliants",
+ "/_authenticated/ce-database/inspection",
"/_authenticated/users/"
]
},
@@ -194,6 +320,10 @@ export const routeTree = rootRoute.addChildren({
"/newpage": {
"filePath": "newpage.lazy.tsx"
},
+ "/_authenticated/ir-board": {
+ "filePath": "_authenticated/ir-board.tsx",
+ "parent": "/_authenticated"
+ },
"/_authenticated/profile": {
"filePath": "_authenticated/profile.tsx",
"parent": "/_authenticated"
@@ -204,6 +334,34 @@ export const routeTree = rootRoute.addChildren({
"/eao-plans/": {
"filePath": "eao-plans/index.tsx"
},
+ "/_authenticated/admin/agencies": {
+ "filePath": "_authenticated/admin/agencies.tsx",
+ "parent": "/_authenticated"
+ },
+ "/_authenticated/admin/proponents": {
+ "filePath": "_authenticated/admin/proponents.tsx",
+ "parent": "/_authenticated"
+ },
+ "/_authenticated/admin/staff": {
+ "filePath": "_authenticated/admin/staff.tsx",
+ "parent": "/_authenticated"
+ },
+ "/_authenticated/admin/topics": {
+ "filePath": "_authenticated/admin/topics.tsx",
+ "parent": "/_authenticated"
+ },
+ "/_authenticated/ce-database/case-files": {
+ "filePath": "_authenticated/ce-database/case-files.tsx",
+ "parent": "/_authenticated"
+ },
+ "/_authenticated/ce-database/compliants": {
+ "filePath": "_authenticated/ce-database/compliants.tsx",
+ "parent": "/_authenticated"
+ },
+ "/_authenticated/ce-database/inspection": {
+ "filePath": "_authenticated/ce-database/inspection.tsx",
+ "parent": "/_authenticated"
+ },
"/_authenticated/users/": {
"filePath": "_authenticated/users/index.tsx",
"parent": "/_authenticated"
diff --git a/compliance-web/src/routes/_authenticated/admin/agencies.tsx b/compliance-web/src/routes/_authenticated/admin/agencies.tsx
new file mode 100644
index 00000000..119cf009
--- /dev/null
+++ b/compliance-web/src/routes/_authenticated/admin/agencies.tsx
@@ -0,0 +1,5 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_authenticated/admin/agencies')({
+ component: () =>
Hello /_authenticated/admin/agencies!
+})
\ No newline at end of file
diff --git a/compliance-web/src/routes/_authenticated/admin/proponents.tsx b/compliance-web/src/routes/_authenticated/admin/proponents.tsx
new file mode 100644
index 00000000..b08ee48a
--- /dev/null
+++ b/compliance-web/src/routes/_authenticated/admin/proponents.tsx
@@ -0,0 +1,5 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_authenticated/admin/proponents')({
+ component: () => Hello /_authenticated/admin/proponents!
+})
\ No newline at end of file
diff --git a/compliance-web/src/routes/_authenticated/admin/staff.tsx b/compliance-web/src/routes/_authenticated/admin/staff.tsx
new file mode 100644
index 00000000..6959aea4
--- /dev/null
+++ b/compliance-web/src/routes/_authenticated/admin/staff.tsx
@@ -0,0 +1,5 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_authenticated/admin/staff')({
+ component: () => Hello /_authenticated/admin/staff!
+})
\ No newline at end of file
diff --git a/compliance-web/src/routes/_authenticated/admin/topics.tsx b/compliance-web/src/routes/_authenticated/admin/topics.tsx
new file mode 100644
index 00000000..a1c6100f
--- /dev/null
+++ b/compliance-web/src/routes/_authenticated/admin/topics.tsx
@@ -0,0 +1,5 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_authenticated/admin/topics')({
+ component: () => Hello /_authenticated/admin/topics!
+})
\ No newline at end of file
diff --git a/compliance-web/src/routes/_authenticated/ce-database/case-files.tsx b/compliance-web/src/routes/_authenticated/ce-database/case-files.tsx
new file mode 100644
index 00000000..82deefdb
--- /dev/null
+++ b/compliance-web/src/routes/_authenticated/ce-database/case-files.tsx
@@ -0,0 +1,5 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_authenticated/ce-database/case-files')({
+ component: () => Hello /_authenticated/ce-database/case-files!
+})
\ No newline at end of file
diff --git a/compliance-web/src/routes/_authenticated/ce-database/compliants.tsx b/compliance-web/src/routes/_authenticated/ce-database/compliants.tsx
new file mode 100644
index 00000000..ecfbc317
--- /dev/null
+++ b/compliance-web/src/routes/_authenticated/ce-database/compliants.tsx
@@ -0,0 +1,5 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_authenticated/ce-database/compliants')({
+ component: () => Hello /_authenticated/ce-database/compliants!
+})
diff --git a/compliance-web/src/routes/_authenticated/ce-database/inspection.tsx b/compliance-web/src/routes/_authenticated/ce-database/inspection.tsx
new file mode 100644
index 00000000..6be477ff
--- /dev/null
+++ b/compliance-web/src/routes/_authenticated/ce-database/inspection.tsx
@@ -0,0 +1,5 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_authenticated/ce-database/inspection')({
+ component: () => Hello /_authenticated/ce-database/inspection!
+})
\ No newline at end of file
diff --git a/compliance-web/src/routes/_authenticated/ir-board.tsx b/compliance-web/src/routes/_authenticated/ir-board.tsx
new file mode 100644
index 00000000..2bbe6d7a
--- /dev/null
+++ b/compliance-web/src/routes/_authenticated/ir-board.tsx
@@ -0,0 +1,5 @@
+import { createFileRoute } from '@tanstack/react-router'
+
+export const Route = createFileRoute('/_authenticated/ir-board')({
+ component: () => Hello /_authenticated/ir-board!
+})
\ No newline at end of file
diff --git a/compliance-web/src/routes/index.tsx b/compliance-web/src/routes/index.tsx
index cc5aba64..a1b3d613 100644
--- a/compliance-web/src/routes/index.tsx
+++ b/compliance-web/src/routes/index.tsx
@@ -27,70 +27,6 @@ function Index() {
See Plans
-
- Environmental Assessments
-
- British Columbia's environmental assessment process provides
- opportunities for Indigenous Nations, government agencies and the
- public to influence the outcome of environmental assessments in
- British Columbia.
-
- navigate({to: "/eao-plans"})}
- >
- See Plans
-
-
-
- Environmental Assessments
-
- British Columbia's environmental assessment process provides
- opportunities for Indigenous Nations, government agencies and the
- public to influence the outcome of environmental assessments in
- British Columbia.
-
- navigate({to: "/eao-plans"})}
- >
- See Plans
-
-
-
- Environmental Assessments
-
- British Columbia's environmental assessment process provides
- opportunities for Indigenous Nations, government agencies and the
- public to influence the outcome of environmental assessments in
- British Columbia.
-
- navigate({to: "/eao-plans"})}
- >
- See Plans
-
-
-
- Environmental Assessments
-
- British Columbia's environmental assessment process provides
- opportunities for Indigenous Nations, government agencies and the
- public to influence the outcome of environmental assessments in
- British Columbia.
-
- navigate({to: "/eao-plans"})}
- >
- See Plans
-
-
>
);
}