-
Notifications
You must be signed in to change notification settings - Fork 7
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
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
Conflicts: .circleci/config.yml package.json src/routes/apiDirectory.js
Add review page accordions
Rename `admin/user` route to `admin/users`
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.
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 |
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.
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 |
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 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.
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' }, |
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.
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
Update user auto inc in seeder
review page feedback
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.
Leaving #135 open until actually submitting for approval is complete, but the review page is 👍🏻
Display external link warning
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.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:
Issue(s)
Checklist