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

Fixes PHRMA Brffs frontend income sorting and unknown handling #3624

Merged

Conversation

benhammondmusic
Copy link
Collaborator

@benhammondmusic benhammondmusic commented Sep 5, 2024

Description and Motivation

closes #3601

  • removes dataframe-js package that was accidentally added
  • keeps age-adj ratios from being shown on non-age, non-race breakdowns
  • sorts the demographic group dropdown by income the map card
  • removes the "Unknown income per 100k" from the simple bar chart
  • sorts by income for simple bar, comparison stacked bar, and table card. NOTE: I tried to get it to work to pre-sort the data earlier in the pipeline, and had lots of trouble. It's possible there is still a better way to do it than this where now it's loading it in each card and sorting it each of those times
  • fixes react key warnings
  • fixes meta data for _sex tables
  • general cleanup
  • allows downloadable data csvs to sort by income
  • adds tests for new incomeSorter
  • adds sortingUtils to clean up conditionals

Has this been tested? How?

  • tests passing
  • manually confirmed

Screenshots (if appropriate)

Sorted Income groups

Screenshot 2024-09-04 at 4 05 37 PM Screenshot 2024-09-05 at 8 26 26 AM Screenshot 2024-09-05 at 8 27 10 AM Screenshot 2024-09-05 at 11 36 38 AM

Types of changes

(leave all that apply)

  • Bug fix
  • New content or feature

New frontend preview link is below in the Netlify comment 😎

Copy link

netlify bot commented Sep 5, 2024

Deploy Preview for health-equity-tracker ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 90051c1
🔍 Latest deploy log https://app.netlify.com/sites/health-equity-tracker/deploys/66da07fa0af79e0008a74254
😎 Deploy Preview https://deploy-preview-3624--health-equity-tracker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@benhammondmusic benhammondmusic marked this pull request as ready for review September 5, 2024 18:17
@benhammondmusic benhammondmusic merged commit 61e0bc0 into SatcherInstitute:main Sep 5, 2024
10 checks passed
@benhammondmusic benhammondmusic deleted the frontend-sorting branch September 5, 2024 19:39
kccrtv pushed a commit to kccrtv/health-equity-tracker that referenced this pull request Sep 5, 2024
…erInstitute#3624)

# Description and Motivation
<!--- bulleted, high level items. use keywords (eg "closes SatcherInstitute#144" or
"fixes #4323") -->

closes SatcherInstitute#3601 

- removes dataframe-js package that was accidentally added
- keeps age-adj ratios from being shown on non-age, non-race breakdowns
- sorts the demographic group dropdown by income the map card
- removes the "Unknown income per 100k" from the simple bar chart
- sorts by income for simple bar, comparison stacked bar, and table
card. NOTE: I tried to get it to work to pre-sort the data earlier in
the pipeline, and had lots of trouble. It's possible there is still a
better way to do it than this where now it's loading it in each card and
sorting it each of those times
- fixes react key warnings
- fixes meta data for _sex tables
- general cleanup
- allows downloadable data csvs to sort by income
- adds tests for new incomeSorter
- adds sortingUtils to clean up conditionals

## Has this been tested? How?

- tests passing
- manually confirmed

## Screenshots (if appropriate)

Sorted Income groups

<img width="1032" alt="Screenshot 2024-09-04 at 4 05 37 PM"
src="https://github.com/user-attachments/assets/04023368-27cc-410c-8e48-554c43949233">

<img width="755" alt="Screenshot 2024-09-05 at 8 26 26 AM"
src="https://github.com/user-attachments/assets/9d9f92fe-76d1-47b6-a577-454f16df2d1e">
<img width="755" alt="Screenshot 2024-09-05 at 8 27 10 AM"
src="https://github.com/user-attachments/assets/0144efca-2fd8-47db-9295-7baf83181c73">
<img width="755" alt="Screenshot 2024-09-05 at 11 36 38 AM"
src="https://github.com/user-attachments/assets/412aae80-ce1e-4f39-a527-3c62c01e53d5">



## Types of changes

(leave all that apply)

- Bug fix
- New content or feature

## New frontend preview link is below in the Netlify comment 😎
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.

Frontend: PHRMA Cancer Items
2 participants