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

Add review page accordions #244

Merged
merged 23 commits into from
Jan 6, 2021
Merged

Add review page accordions #244

merged 23 commits into from
Jan 6, 2021

Conversation

jasalisbury
Copy link
Contributor

@jasalisbury jasalisbury commented Jan 5, 2021

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 (#98) is closed.

  • Each page defines sections that are used in the review accordion
  • Simplified how the activity report imports the pages for the report
  • Date picker now accepts a string MM/DD/YYYY and spits out the same
  • Activity report page file names are no longer capitalized because they are no longer react components

How to test

Dev:

Test on https://tta-smarthub-dev.app.cloud.gov/activity-reports/review. Note I haven't tested on DEV yet because I can't login to the UAT environment. I didn't want to wait for UAT to work before getting eyes on this PR.

Local:

  1. Pull down
  2. Run migrations and seeders
  3. Go to Activity report and fill out a report
  4. Click the accordion in the review page, verify form values are correctly shown

Issue(s)

Checklist

  • Meets issue criteria
  • Code tested
  • Meets accessibility standards (WCAG 2.1 Levels A, AA)
  • [n/a] Documentation updated

Copy link
Contributor

@rahearn rahearn left a comment

Choose a reason for hiding this comment

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

Really love the ability to jump back to the relevant form question from the review page.

In addition to the couple of inline things, please add some api documentation for the approvers api endpoint.

* @param {*} res - response
*/
export async function submitReport(req, res) {
// Temporary until submitting of report is implemented
Copy link
Contributor

Choose a reason for hiding this comment

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

Just putting a pin in that we will need to add authorization to this route when it is implemented.

Please review all information in each section before submitting to your manager for
approval.
</p>
<MultiSelect
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't figure out why - but when I run this locally it has a weird default value on the approvers list.

Screen Shot 2021-01-05 at 5 42 49 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left in some old data simulating loading managers/additional notes from an already saved report. I'll remove the old data.

title: 'Resources',
anchor: 'resources',
items: [
{ label: 'Resources used', name: 'resources used', path: 'name' },
Copy link
Contributor

Choose a reason for hiding this comment

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

The URL resources don't appear in the review page.

 * The url resource now shows up in activity reports review page
 * Add openapi route for the `approvers` endpoint. Held off on adding a
route for submit until it is fully implemented
 * Removed old fake data from the review page (additional notes and
approving managers are now blank)
 * Removed dumbeldore as an approver as he has no "name". Added another
approver to the fake data
Copy link
Contributor

@rahearn rahearn left a comment

Choose a reason for hiding this comment

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

Leaving #135 open until actually submitting for approval is complete, but the review page is 👍🏻

@rahearn rahearn merged commit 553085d into HHS:main Jan 6, 2021
rahearn pushed a commit that referenced this pull request Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to login on dev and sandbox
2 participants