-
Notifications
You must be signed in to change notification settings - Fork 4
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
Front/119/reports #461
Front/119/reports #461
Conversation
… for upload reducer
…to front/119/reports
|
||
/** | ||
* | ||
* @param {string} pathname - The full current url path. |
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.
👍 👍 JSDoc-style documentation!
import { setYear } from '../../actions/upload' | ||
|
||
/** | ||
* @param {string} selectedYear = The year that the user has chosen from the |
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.
👍 👍 JSDoc-style documentation!
<li className="usa-nav__primary-item"> | ||
<a | ||
href={href} | ||
key="welcome" |
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.
@hilvitzs I think the key should be unique: https://reactjs.org/docs/lists-and-keys.html
👍 on internal a11y checks |
c871832
to
932c532
Compare
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.
This PR is approved for Raft and submitted for QASP review to HHS
This pull request changes...
This adds the initial reports page which should match the mock below.
![Screen Shot 2020-12-09 at 10 41 05 AM](https://user-images.githubusercontent.com/23202538/101672685-0c479080-3a0b-11eb-816b-8fe7d1277ae3.png)
There should be a route for
Reports
with a corresponding navigation tab that is highlighted when on any variation of/reports/*
.There should be a page title of 'TANF Reports' and the browser tab should display that name
There should be a
Select
dropdown that allows the user to select either the year2020
or2021
for the ATO. When you make a selection it should update thep
tag underneath the select with the selected year.The label for the
Select
dropdown should read "Fiscal Year (October - September)"There should be a button to
Begin Report
and upon click of this button the user should be routed to `/reports/[the user's selected year]/upload'. There won't be anything on that page yet but that work will be completed in #429 .This addresses issue #119
TO TEST
List the steps to test the PR
Log in to the application and you will be directed to
/edit-profile
.There should be a navigation tab that reads
Reports
- click on that and you should be rerouted to/reports
where you will see the new page.You should be able to choose between 2020 and 2021. When you have chosen the year, it should update the
p
tag below with the selected year. When you have made a selection, click onBegin Report
and you should be rerouted to/reports/[the year you selected]/upload
.This pull request is ready to merge when...