-
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
QA dashboard overview FE #2329
base: main
Are you sure you want to change the base?
QA dashboard overview FE #2329
Conversation
import Tooltip from '../components/Tooltip'; | ||
import colors from '../colors'; | ||
|
||
export function Field({ |
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.
Can we please reuse existing components here, and just add a prop to handle the differences? that way we wouldn't need a whole new CSS file/reinvent the wheel
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.
Yea I added a new component and used it in both places.
@@ -0,0 +1,47 @@ | |||
@media( min-width: 640px){ |
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.
would it be possible to reuse the HTML/CSS from the existing widgets and just override stuff here where necessary, rather than recoding this?
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 have a new CSS.
Thanks for the cleanup. Can we go further and have one overview widget component (maybe start with the one on the regional dashboard? Also, the icon size and some of the text in the overview widgets are pretty different from the mockup, it'd be good if we could keep the sizes and stuff consistent with regional dashboard. |
import Tooltip from '../components/Tooltip'; | ||
import colors from '../colors'; | ||
|
||
export function OverviewWidgetField({ |
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's a duplicative component in frontend/src/widgets/DashboardOverview.js, can we condense
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.
Will leave as is for now as this will need to be updated to use the new overview widget in the future.
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.
can you explain what you mean? @AdamAdHocTeam
@@ -0,0 +1,51 @@ | |||
@media( min-width: 1024px ){ |
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's duplicative CSS at frontend/src/widgets/DashboardOverview.css, if we condense the components we can probably condense the CSS as well
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 widget will need to be updated to use the new overview widget when we do this it will go away. I have only updated resource and qa dashboard atm.
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.
what is the new overview widget? @AdamAdHocTeam
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.
So we have a overview widget container now that wraps around all the individual overview widgets. I think this needs to be updated to that structure.
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.
We don't need to pass array of field components just an array of object info.
frontend/src/widgets/__tests__/QualityAssuranceDashbaordOverview.js
Outdated
Show resolved
Hide resolved
.smart-hub--overview-widget-field-font-size { | ||
font-size: 15px; | ||
} | ||
|
||
.smart-hub--overview-widget-field-data-font-size { | ||
font-size: 19px; | ||
} |
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.
Can we use the uswds font size classes for these, please?
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.
any luck on this change ^ @AdamAdHocTeam
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.
@thewatermethod oops missed this looking now
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.
should be updated now.
@media( min-width: 640px){ | ||
.smart-hub--dashboard-overview-container { | ||
column-gap: 1rem; | ||
row-gap:.5rem; | ||
} | ||
} | ||
|
||
@media( min-width: 1024px ){ | ||
.smart-hub--dashboard-overview-container { | ||
gap: 1em; | ||
} | ||
} |
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.
Suggestion:
- Delete this file.
- Remove "margin-bottom-1" from the classnames OverviewWidgetField line 29
- add "flex-gap-2" to the classnames in "DashboardOverviewContainer" line 32
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.
changes made.
.smart-hub--dashboard-overview-widget-field-icon-background-lg { | ||
border-radius: 50%; | ||
height: 5em; | ||
width: 5em; | ||
} | ||
|
||
.smart-hub--dashboard-overview-widget-field-icon-background-sm { | ||
border-radius: 50%; | ||
height: 3em; | ||
width: 3em; | ||
} |
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.
Added suggestion, would need to be coupled with adjustments in the HTML
.smart-hub--dashboard-overview-widget-field-icon-background-lg { | |
border-radius: 50%; | |
height: 5em; | |
width: 5em; | |
} | |
.smart-hub--dashboard-overview-widget-field-icon-background-sm { | |
border-radius: 50%; | |
height: 3em; | |
width: 3em; | |
} | |
.smart-hub--dashboard-overview-widget-field-icon { | |
border-radius: 50%; | |
} | |
.smart-hub--dashboard-overview-widget-field-icon__background-lg { | |
height: 5em; | |
width: 5em; | |
} | |
.smart-hub--dashboard-overview-widget-field-icon__background-sm { | |
height: 3em; | |
width: 3em; | |
} |
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.
updated.
height: 24px; | ||
width: 24px; |
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.
Can we switch to em to match the other heights in the file?
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 switched to em.
…ord' into mb/TTAHUB-3345/filters-on-QA-dashboard
…etails-for-qa-dashbaord
…etails-for-qa-dashbaord
…ord' into mb/TTAHUB/3345/add-filters-to-qa-dash
…345/filters-on-QA-dashboard
…345/filters-on-QA-dashboard
…345/filters-on-QA-dashboard
…etails-for-qa-dashbaord
…etails-for-qa-dashbaord
[TTAHUB-3305, 3306] QA dashboard overview detail pages for first two widgets
…ets into mb/TTAHUB/3345/add-filters-to-qa-dash
Raise frontend test coverage to 90%
[TTAHUB-3345] Add filters to QA dashboard, frontend
….com/HHS/Head-Start-TTADP into al-ttahub-3316-3317-overview-widgets
Description of change
This is the frontend for the QA dashboard overview section. It has three widgets and should show the new 'Filter not applied' message and tool tip when the filters aren't applicable (currently hard coded).
How to test
Issue(s)
Checklists
Every PR
Before merge to main
Production Deploy
After merge/deploy