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

Front/119/reports #461

Merged
merged 21 commits into from
Dec 18, 2020
Merged

Front/119/reports #461

merged 21 commits into from
Dec 18, 2020

Conversation

hilvitzs
Copy link

@hilvitzs hilvitzs commented Dec 11, 2020

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

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 year 2020 or 2021 for the ATO. When you make a selection it should update the p 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 on Begin Report and you should be rerouted to /reports/[the year you selected]/upload.

This pull request is ready to merge when...

  • Meets acceptance criteria for the issue
  • Code is reviewed by someone other than the original author
  • Code is tested
  • Experience is approved by UX
  • Meets a11y checklist
  • Meets Raft's Manual QASP Checklist🔒 (only applicable for PR to main HHS)
  • Documentation is updated
    • OpenAPI
    • Readme
    • Entity Relationship Diagram (ERD)

@hilvitzs hilvitzs requested a review from alexsoble December 11, 2020 20:13

/**
*
* @param {string} pathname - The full current url path.

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

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"

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

@reitermb
Copy link

👍 on internal a11y checks

Copy link

@carltonsmith carltonsmith left a 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

@carltonsmith carltonsmith merged commit fa73701 into raft-tdp-main Dec 18, 2020
@carltonsmith carltonsmith deleted the front/119/reports branch December 18, 2020 18:51
George-Hudson pushed a commit that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants