Skip to content

Commit

Permalink
[HCBS] Create Placeholder for TA and CI Reports (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaitasaini authored and Rocio De Santiago committed Jan 24, 2025
1 parent 14b7b20 commit 93229b0
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
10 changes: 10 additions & 0 deletions services/ui-src/src/components/layout/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ import {
import { useEffect } from "react";
import { checkDateRangeStatus, useStore } from "utils";
import verbiage from "verbiage/pages/home";
import { useFlags } from "launchdarkly-react-client-sdk";

export const HomePage = () => {
const { bannerData, bannerActive, setBannerActive } = useStore();
const { intro, cards } = verbiage;
const { userIsEndUser } = useStore().user ?? {};

const isTAReportActive = useFlags()?.isTaReportActive;
const isCIReportActive = useFlags()?.isCiReportActive;

useEffect(() => {
let bannerActivity = false;
if (bannerData && bannerData.startDate && bannerData.endDate) {
Expand Down Expand Up @@ -52,6 +56,12 @@ export const HomePage = () => {
<Text></Text>
</Box>
<TemplateCard templateName="QMS" verbiage={cards.QMS} />
{isTAReportActive && (
<TemplateCard templateName="TA" verbiage={cards.TA} />
)}
{isCIReportActive && (
<TemplateCard templateName="CI" verbiage={cards.CI} />
)}
</>
) : (
// show read-only view to non-state users
Expand Down
56 changes: 56 additions & 0 deletions services/ui-src/src/verbiage/pages/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,62 @@ export default {
],
},
},
TA: {
title: "HCBS Timely Access Report",
body: {
available: "The HCBS is ... ",
},
linkText: "6071(a)(1) of the Deficit Reduction Act (DRA)",
linkLocation:
"https://www.govinfo.gov/content/pkg/PLAW-109publ171/pdf/PLAW-109publ171.pdf",
postLinkText:
' as "increasing the use of home and community-based, rather than institutional, long-term care services."',
downloadText: "User Guide and Help File",
link: {
text: "Enter HCBS TA online",
route: "/report/TA/",
},
accordion: {
buttonLabel: "When is the HCBS Timely Access Report due?",
text: [
{
content:
"The HCBS Timely Access Report will be created and submitted ...",
},
{
content: "The HCBS Timely Access Report deadlines are TBD ...",
},
],
},
},
CI: {
title: "HCBS Critical Incident Report",
body: {
available: "The HCBS is ... ",
},
linkText: "6071(a)(1) of the Deficit Reduction Act (DRA)",
linkLocation:
"https://www.govinfo.gov/content/pkg/PLAW-109publ171/pdf/PLAW-109publ171.pdf",
postLinkText:
' as "increasing the use of home and community-based, rather than institutional, long-term care services."',
downloadText: "User Guide and Help File",
link: {
text: "Enter HCBS CI online",
route: "/report/CI/",
},
accordion: {
buttonLabel: "When is the HCBS Critical Incident Report due?",
text: [
{
content:
"The HCBS Critical Incident will be created and submitted ...",
},
{
content: "The HCBS Critical Incident Report deadlines are TBD ...",
},
],
},
},
},
readOnly: {
header: "View State/Territory Reports",
Expand Down

0 comments on commit 93229b0

Please sign in to comment.