-
Notifications
You must be signed in to change notification settings - Fork 21
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
fix: add tooltips and line charts to operational insight #630
Conversation
3e178c2
to
c7954c7
Compare
A lot of updates here. -- Updated the facilities API call to use SWR. |
967a0f1
to
4e5d074
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.
Two small changes
- Try changing some of the step values for the chart to have even greater intervals. There's a point still where the values in there are squeezed together.
- Look into using the DaisyUI or Tailwind Tooltips that we use throughout the app so you don't need to fight the DOM in the ToolTipIcon component.
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.
Awesome work! This looks really good. There may be a few followup enhancements for the messaging but if that's the case, those will be logged separately.
Description of the change
This fixes the wordage on the operational insights dashboard for the cards, removed logins per day, and both the pie chart, and bar graph in the peak login times. Total users was changed to include admins, so now users include the totality of the users. Users = total people using the platform, Admins = everyone except residents (students per user roles), Residents = anyone in student role.
The tooltip was changed to reflect the theme so there is no longer issues with the coloring as well.
In the StatsCard's ternary's were added to check the count of the data being returned/rendered so that the pluralism was correct as well.
Changes "Students" in navbar to "Residents" as well.
Screenshot(s)
When hovering the tooltip displays the time in 24hr time