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

feat(FAQ): Add implementation guide introduction PDFs #1034

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions react-app/src/features/faq/content/abpGuides.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Template } from "./chpRenderSection";

export const ABP_GUIDES: Template[] = [
{
title: "ABP Introduction",
href: "/abp/IG_AbpIntroduction_Final_20241205.pdf",
},
{
title: "ABP 1",
text: "Alternative Benefit Plan Populations Implementation Guide",
Expand Down
6 changes: 5 additions & 1 deletion react-app/src/features/faq/content/chpGuides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import { Template } from "./chpRenderSection";

export const CHP_GUIDES: Template[] = [
// MAGI Eligibility & Methods
{
title: "CHIP Eligibility Introduction",
href: "/chp/IG_ChipEligibilityIntroduction_Final_20241205.pdf",
},
{
title: "CS 7",
text: "Eligibility - Targeted Low-Income Children Implementation Guide",
href: "/chip/IG_CS7_TargetedLow-IncomeChildren.pdf",
href: "/chp/IG_CS7_TargetedLow-IncomeChildren.pdf",
},
{
title: "CS 8",
Expand Down
2 changes: 1 addition & 1 deletion react-app/src/features/faq/content/chpRenderSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function cn(...inputs: ClassValue[]) {
}
export interface Template {
title: string;
text: string;
text?: string;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this an optional parameter so the titles of the implementation guide introduction documents could render without a colon (:) after the title.

href: string;
subtext?: string[];
}
Expand Down
4 changes: 4 additions & 0 deletions react-app/src/features/faq/content/mpcGuides.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { Template } from "./chpRenderSection";

export const MPC_GUIDES: Template[] = [
{
title: "Medicaid Cost Sharing Background",
href: "/mpc/IG_CostSharingBackground.pdf",
},
{
title: "G 1",
text: "Cost-Sharing Requirements Implementation Guide",
Expand Down
136 changes: 77 additions & 59 deletions react-app/src/features/faq/content/oneMACFAQContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,8 @@ export const oneMACFAQContent: FAQContent[] = [
rel="noopener noreferrer"
className="text-blue-600"
>
{pdf.title}: {pdf.text}
{pdf.title}
{pdf.text && `: ${pdf.text}`}
</a>
</li>
))}
Expand Down Expand Up @@ -941,7 +942,8 @@ export const oneMACFAQContent: FAQContent[] = [
rel="noopener noreferrer"
className="text-blue-600"
>
{pdf.title}: {pdf.text}
{pdf.title}
{pdf.text && `: ${pdf.text}`}
</a>
</li>
))}
Expand Down Expand Up @@ -1019,63 +1021,79 @@ export const oneMACFAQContent: FAQContent[] = [
anchorText: "chip-spa-implentation-guides",
question: "Where can I download CHIP eligibility SPA implementation guides?",
answerJSX: (
<section className="space-y-2 ">
<p>CHIP eligibility SPA implementation guides can be downloaded at the links below.</p>
<ul className="list-disc pl-7 space-y-2">
{renderSection(
"MAGI Eligibility & Methods",
CHP_GUIDES,
(guide) =>
[
"CS 7",
"CS 8",
"CS 9",
"CS 10",
"CS 11",
"CS 12",
"CS 13",
"CS 15",
"CS 16",
].includes(guide.title),
"list-disc pl-7 space-y-2 text-blue-600",
)}
{renderSection(
"XXI Medicaid Expansion",
CHP_GUIDES,
(guide) => guide.title === "CS 3",
"list-disc pl-7 space-y-2 text-blue-600",
)}
{renderSection(
"Establish 2101(f) Group",
CHP_GUIDES,
(guide) => guide.title === "CS 14",
"list-disc pl-7 space-y-2 text-blue-600",
)}
{renderSection(
"Eligibility Processing",
CHP_GUIDES,
(guide) => guide.title === "CS 24",
"list-disc pl-7 space-y-2 text-blue-600",
)}
{renderSection(
"Non-Financial Eligibility",
CHP_GUIDES,
(guide) =>
[
"CS 17",
"CS 18",
"CS 19",
"CS 20",
"CS 21",
"CS 23",
"CS 27",
"CS 28",
"CS 29",
].includes(guide.title),
"list-disc pl-7 space-y-2 text-blue-600",
)}
</ul>
</section>
<div>
<section className="space-y-2">
<p>
CHIP eligibility SPA implementation guides can be downloaded at the links below.
</p>
<ul className="list-disc pl-12">
<li>
<a
href="/chp/IG_ChipEligibilityIntroduction_Final_20241205.pdf"
target="_blank"
rel="noopener noreferrer"
className="text-blue-600"
asharonbaltazar marked this conversation as resolved.
Show resolved Hide resolved
>
CHIP Eligibility Introduction
</a>
</li>
</ul>
<ul className="list-disc pl-6 space-y-2">
{renderSection(
"MAGI Eligibility & Methods",
CHP_GUIDES,
(guide) =>
[
"CS 7",
"CS 8",
"CS 9",
"CS 10",
"CS 11",
"CS 12",
"CS 13",
"CS 15",
"CS 16",
].includes(guide.title),
"list-disc pl-6 space-y-2",
)}
{renderSection(
"XXI Medicaid Expansion",
CHP_GUIDES,
(guide) => guide.title === "CS 3",
"list-disc pl-6 space-y-2",
)}
{renderSection(
"Establish 2101(f) Group",
CHP_GUIDES,
(guide) => guide.title === "CS 14",
"list-disc pl-6 space-y-2",
)}
{renderSection(
"Eligibility Processing",
CHP_GUIDES,
(guide) => guide.title === "CS 24",
"list-disc pl-6 space-y-2",
)}
{renderSection(
"Non-Financial Eligibility",
CHP_GUIDES,
(guide) =>
[
"CS 17",
"CS 18",
"CS 19",
"CS 20",
"CS 21",
"CS 23",
"CS 27",
"CS 28",
"CS 29",
].includes(guide.title),
"list-disc pl-6 space-y-2",
)}
</ul>
</section>
</div>
),
},
],
Expand Down
Loading