Skip to content

Commit

Permalink
display "coming soon" on the menu item that hasn't been developed yet
Browse files Browse the repository at this point in the history
  • Loading branch information
nitheesh-aot committed Aug 2, 2024
1 parent 70eeab2 commit aa4a38d
Show file tree
Hide file tree
Showing 11 changed files with 1,015 additions and 2,376 deletions.
3,267 changes: 914 additions & 2,353 deletions compliance-web/package-lock.json

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions compliance-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
"@mui/icons-material": "^5.15.21",
"@mui/material": "^5.15.20",
"@tanstack/react-query": "^5.45.1",
"@tanstack/react-router": "^1.45.7",
"@tanstack/react-query-devtools": "^5.45.1",
"@tanstack/react-router": "^1.45.7",
"@tanstack/router-devtools": "^1.45.7",
"@tanstack/router-plugin": "^1.45.7",
"axios": "^1.7.2",
"epic.theme": "^1.0.4",
"epic.theme": "^1.0.5",
"keycloak-js": "^25.0.1",
"oidc-client-ts": "^3.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-oidc-context": "^3.1.0"
"react-oidc-context": "^3.1.0",
"zustand": "^4.5.4"
},
"devDependencies": {
"@cypress/code-coverage": "^3.12.44",
Expand Down
37 changes: 37 additions & 0 deletions compliance-web/src/components/Shared/ComingSoon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { DesignServices } from "@mui/icons-material";
import { Box, Typography } from "@mui/material";
import { BCPalette } from "epic.theme";

export default function ComingSoon() {
return (
<Box
sx={{
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
height: "100%",
marginBottom: 16,
}}
>
<Box
sx={{
padding: "1rem",
background: BCPalette.components.background.lightGray,
marginBottom: "2.5rem",
}}
>
<DesignServices
fontSize="large"
sx={{ color: BCPalette.components.border.active }}
/>
</Box>
<Typography variant="h3" marginBottom={"0.5rem"}>
Coming soon!
</Typography>
<Typography variant="h5" fontWeight="400">
Our team is developing this feature and plans to launch it soon
</Typography>
</Box>
);
}
9 changes: 7 additions & 2 deletions compliance-web/src/routes/_authenticated/admin/agencies.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import ComingSoon from '@/components/Shared/ComingSoon';
import { createFileRoute } from '@tanstack/react-router'

export const Route = createFileRoute('/_authenticated/admin/agencies')({
component: () => <div>Hello /_authenticated/admin/agencies!</div>
})
component: Agencies
})

function Agencies() {
return <ComingSoon />;
}
9 changes: 7 additions & 2 deletions compliance-web/src/routes/_authenticated/admin/proponents.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import ComingSoon from '@/components/Shared/ComingSoon';
import { createFileRoute } from '@tanstack/react-router'

export const Route = createFileRoute('/_authenticated/admin/proponents')({
component: () => <div>Hello /_authenticated/admin/proponents!</div>
})
component: Proponents
})

function Proponents() {
return <ComingSoon />;
}
9 changes: 7 additions & 2 deletions compliance-web/src/routes/_authenticated/admin/staff.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import ComingSoon from '@/components/Shared/ComingSoon';
import { createFileRoute } from '@tanstack/react-router'

export const Route = createFileRoute('/_authenticated/admin/staff')({
component: () => <div>Hello /_authenticated/admin/staff!</div>
})
component: Staff
})

function Staff() {
return <ComingSoon />;
}
9 changes: 7 additions & 2 deletions compliance-web/src/routes/_authenticated/admin/topics.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import ComingSoon from '@/components/Shared/ComingSoon';
import { createFileRoute } from '@tanstack/react-router'

export const Route = createFileRoute('/_authenticated/admin/topics')({
component: () => <div>Hello /_authenticated/admin/topics!</div>
})
component: Topics
})

function Topics() {
return <ComingSoon />;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import ComingSoon from '@/components/Shared/ComingSoon'
import { createFileRoute } from '@tanstack/react-router'

export const Route = createFileRoute('/_authenticated/ce-database/case-files')({
component: () => <div>Hello /_authenticated/ce-database/case-files!</div>
})
component: CaseFiles
})

function CaseFiles() {
return <ComingSoon />
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { createFileRoute } from '@tanstack/react-router'
import { createFileRoute } from "@tanstack/react-router";
import ComingSoon from "@/components/Shared/ComingSoon";

export const Route = createFileRoute('/_authenticated/ce-database/compliants')({
component: () => <div>Hello /_authenticated/ce-database/compliants!</div>
})
export const Route = createFileRoute("/_authenticated/ce-database/compliants")({
component: Compliance,
});

function Compliance() {
return <ComingSoon />
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { createFileRoute } from '@tanstack/react-router'
import ComingSoon from "@/components/Shared/ComingSoon";
import { createFileRoute } from "@tanstack/react-router";

export const Route = createFileRoute('/_authenticated/ce-database/inspection')({
component: () => <div>Hello /_authenticated/ce-database/inspection!</div>
})
export const Route = createFileRoute("/_authenticated/ce-database/inspection")({
component: Inspection,
});

function Inspection() {
return <ComingSoon />;
}
9 changes: 7 additions & 2 deletions compliance-web/src/routes/_authenticated/ir-board.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import ComingSoon from '@/components/Shared/ComingSoon';
import { createFileRoute } from '@tanstack/react-router'

export const Route = createFileRoute('/_authenticated/ir-board')({
component: () => <div>Hello /_authenticated/ir-board!</div>
})
component: IRBoard
})

function IRBoard() {
return <ComingSoon />;
}

0 comments on commit aa4a38d

Please sign in to comment.