Closed suhafa closed 2 days ago
Looks good! Nothing to note here as of now
@patriciarussellCAS
Reachable at: https://cas-bciers-frontend-dev.apps.silver.devops.gov.bc.ca/dashboard
Reviewed in test - will create a follow-up design ticket for updates to the content in each tile. Otherwise this is good to close!
Describe the task
Based off user engagement done in June 2024 (Miro: Usability Test Findings | June 2024), users indicated a preference for the following design:
We need to also rid the system of the acronym in the top header '(BCIERS)':
Development Steps
registration
toadministration
administration-e2e
registration
using terminal command to use the flags that are consistent with the rest of our setup.bciers/apps/administration/next.config.js/const nextConfig
update tobciers/apps/registration/next.config.js/const nextConfig
update tobciers/apps/dashboard/next.config.js/./async rewrites()
addconst localRoutes = HOST_ADMINISTRATION && HOST_REGISTRATION && HOST_REPORTING ? [ { source: "/administration", destination:
${HOST_ADMINISTRATION}/administration
, }, { source: "/administration/:path", destination: `${HOST_ADMINISTRATION}/administration/:path`, },"dev-all": "nx run-many -t dev -p dashboard,administration,registration,reporting,coam --maxParallel=5",
HOST_ADMINISTRATION="http://localhost:4001"
HOST_ADMINISTRATION="http://localhost:4001"
/ A layout is UI that is shared between routes. The app directory must include a root app/layout.js. /
import "@bciers/styles/globals.css"; import { RootLayout } from "@bciers/components/server"; const defaultLinks = [ { label: "Dashboard", href: "/" }, { label: "Registration", href: "/registration" }, ]; export default function RegistrationLayout({ children, }: { children: React.ReactNode; }) { return{children} ;
}
import Tiles from "@bciers/components/navigation/Tiles"; import { fetchDashboardData } from "@bciers/actions/server"; import { ContentItem } from "@bciers/types";
export default async function Page() { // 🚀 API fetch dashboard tiles // 🚩 Source: bc_obps/common/fixtures/dashboard/administration/[IdProviderType]/role? const data = (await fetchDashboardData( "common/dashboard-data?dashboard=registration", )) as ContentItem[];
return ( <> // Display role based tiles here
); }
"parserOptions": { "project": ["apps/administration/tsconfig(.*)?.json"], "tsConfigRootDir": "./" },