Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HCBS] Create Placeholder for TA and CI Reports #87

Merged
merged 4 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading