-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add review page accordions #96
Conversation
* Date picker now accepts a string MM/DD/YYYY and spits out the same * Each page defines sections that are used in the review accordion * Simplified how the activity report imports the pages for the report
<Button className="stepper-button" type="submit" disabled={!formState.isValid}>Continue</Button> | ||
<Button type="submit" disabled={!formState.isValid}>Continue</Button> |
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.
Removing CSS class that was doing nothing, missed it in a previous PR
.smart-hub--navigator-item:first-child .smart-hub--navigator-link-active { | ||
border-top-right-radius: 4px; | ||
} | ||
|
||
.smart-hub--navigator-item:last-child .smart-hub--navigator-link-active { | ||
border-bottom-right-radius: 4px; | ||
} |
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.
Fixing slight style issue on the navigator's side nav where the border radius is squared when the first or last element is selected
@@ -307,4 +311,73 @@ ActivitySummary.propTypes = { | |||
control: PropTypes.object.isRequired, | |||
}; | |||
|
|||
export default ActivitySummary; | |||
const sections = [ |
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.
There appears to be the potential for defining the whole form in an object similar to this one and simplifying the ~300 lines of code above, but that would be a bigger project then we have the capacity to tackle at this point.
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.
👍
Conflicts: .circleci/config.yml package.json src/routes/apiDirectory.js
Description of change
The review page now has an accordion with an item for each page that matches the desired design. The report still needs to be marked as
Submitted
in the backend after saving of a report (HHS#98) is closed.How to test
Sandbox:
Test on https://tta-smarthub-sandbox.app.cloud.gov/activity-reports/review. Note the "approvers" section isn't working correctly because the seed files aren't being loaded in for this branch. Once #78 is merged the approvers select box will work.
Local:
Issue(s)
Checklist