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
Ad/4211 MMIS APD overview #4528
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4528 +/- ##
==========================================
+ Coverage 93.94% 94.04% +0.10%
==========================================
Files 252 256 +4
Lines 7977 8111 +134
Branches 1705 1724 +19
==========================================
+ Hits 7494 7628 +134
Misses 461 461
Partials 22 22
Continue to review full report at Codecov.
|
@@ -3,3 +3,24 @@ export const APD_TYPE = { | |||
HITECH: 'HITECH', | |||
MMIS: 'MMIS' | |||
}; | |||
|
|||
export const MEDICAID_BUSINESS_AREAS_DISPLAY_LABEL_MAPPING = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great idea for reusability
import ApdOverviewMMISFields from './ApdOverviewMMISFields'; | ||
import DeleteModal from '../../../components/DeleteModal'; | ||
|
||
const renderApdTypeSpecificFields = apdType => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great way to handle switching between components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed. this is cleaner than the ternary way
}) | ||
.or('annualUpdate', 'asNeededUpdate') | ||
.custom(updateStatusCustomValidation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧠
Looks good to me! Nice work with the APD Name validation 😄
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good
Resolves #4211
Description
Significant changes or possible side effects
medicaidBusinessAreas
objectupdateStatus
objectApdOverview
to be handled within react hook form for validation purposesApdOverview
to contain only the shared fields of HITECH and MMIS APDs. Subsequently moved HITECH fields to new component calledApdOverviewHITECHFields
and createdApdOverviewMMISFields
for the MMIS fields.ApdUpdate
component to handle displaying the Update APD section differently for MMIS and HITECH typesdisableTitleCaseConversion
prop to theInstruction
componentname
andlabel
props. Since the code was written with the intent of the label being hidden, alabelClassName
prop was also passed in to include a newly addedhidden-display
style class which hides the labelAutomated test cases written
disableTitleCaseConversion
is passed insetBusinessAreaField
is calledSteps to verify changes
With admin check ON
With admin check OFF
Other testing
This pull request is ready to code review when
tests, refactor
screenreader, text scaling) OR an exemption is documented
This pull request is ready to test when
This pull request is ready to review when the QA has
This pull request can be merged when