-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(initial submission): Establish CHIP SPA front-end submission form (
#255) * Copy/paste and wire in chip spa from medicaid spa base * Extraction of some common tooling * Further refinement of zod stuff * Update medicaid spa form to use zod tools * Extract content; Extract modals * Update breadcrumbs * Change reandered medicaid form to include modal wrapper * Remove optional chains for defined value * Fix zod attacahment required logic * Update error messages * Remove authority for chip spa details * Text updates * Remove unused imports * Refactor handleSubmit instantiation * Rewire modals with typesafe layer * Fix breadcrumb test * Ignore nodemodules tests
- Loading branch information
Kevin Haube
authored
Dec 19, 2023
1 parent
e4a9f3b
commit e83c99c
Showing
28 changed files
with
881 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
export const STATE_CODES = [ | ||
"AL", | ||
"AK", | ||
"AS", | ||
"AZ", | ||
"AR", | ||
"CA", | ||
"CO", | ||
"CT", | ||
"DE", | ||
"DC", | ||
"FM", | ||
"FL", | ||
"GA", | ||
"GU", | ||
"HI", | ||
"ID", | ||
"IL", | ||
"IN", | ||
"IA", | ||
"KS", | ||
"KY", | ||
"LA", | ||
"ME", | ||
"MH", | ||
"MD", | ||
"MA", | ||
"MI", | ||
"MN", | ||
"MS", | ||
"MO", | ||
"MT", | ||
"NE", | ||
"NV", | ||
"NH", | ||
"NJ", | ||
"NM", | ||
"NY", | ||
"NC", | ||
"ND", | ||
"MP", | ||
"OH", | ||
"OK", | ||
"OR", | ||
"PW", | ||
"PA", | ||
"PR", | ||
"RI", | ||
"SC", | ||
"SD", | ||
"TN", | ||
"TX", | ||
"UT", | ||
"VT", | ||
"VI", | ||
"VA", | ||
"WA", | ||
"WV", | ||
"WI", | ||
"WY", | ||
] as const; | ||
export type StateCode = typeof STATE_CODES[number]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 11 additions & 13 deletions
24
src/services/ui/src/components/PackageDetails/ChipSpaPackageDetails.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
import { ROUTES } from "@/routes"; | ||
import { mapActionLabel } from "@/utils"; | ||
import { Action } from "shared-types"; | ||
import { BreadCrumbConfig } from "@/components"; | ||
import { actionCrumb, dashboardCrumb, detailsCrumb } from "@/utils/crumbs"; | ||
|
||
export const DETAILS_AND_ACTIONS_CRUMBS = (data: { | ||
export const DETAILS_AND_ACTIONS_CRUMBS = ({ | ||
id, | ||
action, | ||
}: { | ||
id: string; | ||
action?: Action; | ||
}): BreadCrumbConfig[] => { | ||
const base = [ | ||
{ | ||
displayText: "Dashboard", | ||
order: 1, | ||
default: true, | ||
to: ROUTES.DASHBOARD, | ||
}, | ||
{ | ||
displayText: data.id, | ||
order: 2, | ||
to: `/details?id=${data.id}`, | ||
}, | ||
]; | ||
return !data.action | ||
? base | ||
: ([ | ||
...base, | ||
{ | ||
displayText: mapActionLabel(data.action), | ||
order: 3, | ||
to: `/actions/${data.id}/${data.action}`, | ||
}, | ||
] as BreadCrumbConfig[]); | ||
const base = [dashboardCrumb, detailsCrumb(id)]; | ||
return !action ? base : [...base, actionCrumb(action, id)]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.