Skip to content

Commit

Permalink
feat(implementation-guide): add implementation guide (#293)
Browse files Browse the repository at this point in the history
* added implementation guide

* cleanup

* adjust styling

* adjust logic

* add route

* cleanup and upload files

* add table from MUI and clean up data

* Update index.tsx

* add target blank logic

* Update index.tsx

* Update index.tsx

* add guide type

* cleanup using native table
  • Loading branch information
jdinh8124 authored Jan 16, 2024
1 parent 685f680 commit 2c0aa50
Show file tree
Hide file tree
Showing 25 changed files with 160 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/packages/shared-types/guides.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export type Guide = {
title: string;
linkTitle: string;
href: string;
targetBlank?: boolean;
};
1 change: 1 addition & 0 deletions src/packages/shared-types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export * from "./forms";
export * from "./inputs";
export * from "./states";
export * from "./statusHelper";
export * from "./guides";
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions src/services/ui/src/components/Routing/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ export const MEDICAID_NEW = "/new-submission/spa/medicaid/create";
export const CHIP_NEW = "/new-submission/spa/chip/create";
export const WEBFORMS = "/webforms";
export const WEBFORM = "/webform/:id/:version";
export const GUIDES = "/guides";
export const ABPGUIDE = "/guides/abp";
4 changes: 2 additions & 2 deletions src/services/ui/src/components/Webform/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ export const Webforms = () => {
<h1 className="text-xl font-medium">Webforms</h1>
</SubNavHeader>
<section className="block md:flex md:flex-row max-w-screen-xl m-auto px-4 lg:px-8 pt-8 gap-10">
<div className="flex-1">
<div className="flex-1 space-x-5">
<Link
path="/webform/:id/:version"
params={{ id: "abp1", version: 1 }}
>
ABP 1
</Link>
<br />
<Link
path="/webform/:id/:version"
params={{ id: "abp3", version: 1 }}
>
ABP 3
</Link>
<Link path="/guides/abp">Implementation Guide</Link>
</div>
</section>
</>
Expand Down
145 changes: 145 additions & 0 deletions src/services/ui/src/pages/guides/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
import { SubNavHeader } from "@/components";
import * as UI from "@/components/Table";
import { Guide } from "shared-types";

export const ABPGuide = () => {
return (
<>
<SubNavHeader>
<h1 className="text-xl font-medium">
Medicaid Alternative Benefit Plan Implementation Guides
</h1>
</SubNavHeader>
<section className="max-w-screen-xl m-auto px-4 lg:px-8 py-8 gap-10">
<div className="h-[5px] bg-gradient-to-r from-primary from-50% to-[#02bfe7] to-[66%] rounded-t"></div>
<UI.Table className="flex-1 min-h-[calc(100vh-350px)]">
<UI.TableHeader className="sticky top-0 bg-white">
<UI.TableRow>
<UI.TableHead className="w-[10px]">Guide</UI.TableHead>
<UI.TableHead className="w-[10px]">Link</UI.TableHead>
</UI.TableRow>
</UI.TableHeader>

<UI.TableBody>
{abp_forms.map((row) => (
<UI.TableRow className="h-10" key={row.title}>
<UI.TableCell>{row.title}</UI.TableCell>
<UI.TableCell>
<a
href={row.href}
target={row.targetBlank ? "_blank" : undefined}
rel="noreferrer"
className="underline"
>
{row.linkTitle}
</a>
</UI.TableCell>
</UI.TableRow>
))}
</UI.TableBody>
</UI.Table>
</section>
</>
);
};

const abp_forms: Guide[] = [
{
title: "Introduction",
linkTitle: "Introduction",
href: "/forms/abp/IG_AbpIntroduction.doc",
},
{
title: "ABP1",
linkTitle: "Alternative Benefit Plan Populations",
href: "/forms/abp/IG_ABP1_AlternativeBenefitPlanPopulations.doc",
},
{
title: "ABP2a",
linkTitle:
"Voluntary Benefit Package Selection Assurances - Eligibility Group under Section 1902(a)(10)(A)(i)(VIII) of the Act",
href: "/forms/abp/IG_ABP2a_VoluntaryBenefitPackageAssurances.doc",
},
{
title: "ABP2b",
linkTitle:
"Voluntary Enrollment Assurances for Eligibility Groups other than the Adult Group under Section 1902(a)(10)(A)(i)(VIII) of the Act",
href: "/forms/abp/IG_ABP2b_VoluntaryEnrollmentAssurances.doc",
},
{
title: "ABP2c",
linkTitle: "Enrollment Assurances - Mandatory Participants",
href: "/forms/abp/IG_ABP2c_EnrollmentAssurancesMandatoryParticipants.doc",
},
{
title: "ABP3",
linkTitle:
"Selection of Benchmark Benefit Package or Benchmark-Equivalent Benefit Package",
href: "/forms/abp/IG_ABP3_SelectionOfBenchmark20190819-Final.docx",
},
{
title: "ABP3.1",
linkTitle:
"Selection of Benchmark Benefit Package or Benchmark-Equivalent Benefit Package",
href: "/forms/abp/IG_ABP3.1_SelectionOfBenchmark20190819-Final.docx",
},
{
title: "ABP4",
linkTitle: "Alternative Benefit Plan Cost-Sharing",
href: "/forms/abp/IG_ABP4_AbpCostSharing.doc",
},
{
title: "ABP5",
linkTitle: "Benefits Description",
href: "/forms/abp/IG_ABP5_BenefitsDescription-Final.docx",
},
{
title: "ABP6",
linkTitle: "Benchmark-Equivalent Benefit Package",
href: "/forms/abp/IG_ABP6_BenchmarkEquivalentBenefit.doc",
},
{
title: "ABP7",
linkTitle: "Benefit Assurance",
href: "/forms/abp/IG_ABP7_BenefitAssurances.doc",
},
{
title: "ABP8",
linkTitle: "Service Delivery Systems",
href: "/forms/abp/IG_ABP8_ServiceDeliverySystems.doc",
},
{
title: "ABP9",
linkTitle: "Employer Sponsored Insurance and Payment of Premiums",
href: "/forms/abp/IG_ABP9_EmployerSponsoredInsurance.doc",
},
{
title: "ABP10",
linkTitle: "General Assurances",
href: "/forms/abp/IG_ABP10_GeneralAssurances.doc",
},
{
title: "ABP11",
linkTitle: "Payment Methodology",
href: "/forms/abp/IG_ABP11_PaymentMethodology.doc",
},
{
title: "Alternative Benefit Plan State Training Webinar",
linkTitle:
"Alternative Benefit Plan State Training Webinar (2013-08-13 .wmv)",
href: "https://www.medicaid.gov/media/162926",
targetBlank: true,
},
{
title: "Alternative Benefit Plan State Training",
linkTitle: "Alternative Benefit Plan State Training (2020-04-24 .pdf)",
href: "/forms/abp/ABPStateTraining.pdf",
targetBlank: true,
},
{
title: "Alternative Benefit Plan SPA Process",
linkTitle: "Alternative Benefit Plan SPA Process (2016-08-01 .pdf)",
href: "/forms/abp/ABPSPAProcess.pdf",
targetBlank: true,
},
];
1 change: 1 addition & 0 deletions src/services/ui/src/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export * from "./faq";
export * from "./form";
export * from "./profile";
export * from "./welcome";
export * from "./guides";
1 change: 1 addition & 0 deletions src/services/ui/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const router = createBrowserRouter([
{ path: ROUTES.WEBFORMS, element: <C.Webforms /> },
{ path: ROUTES.WEBFORM, element: <C.Webform /> },
{ path: ROUTES.PROFILE, element: <P.Profile /> },
{ path: ROUTES.ABPGUIDE, element: <P.ABPGuide /> },
],
loader: rootLoader(queryClient),
},
Expand Down
2 changes: 2 additions & 0 deletions src/services/ui/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export enum ROUTES {
CHIP_NEW = "/new-submission/spa/chip/create",
WEBFORMS = "/webforms",
WEBFORM = "/webform/:id/:version",
GUIDES = "/guides",
ABPGUIDE = "/guides/abp",
}

export enum FAQ_SECTION {
Expand Down

0 comments on commit 2c0aa50

Please sign in to comment.