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

fix: add tooltips and line charts to operational insight #630

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

CK-7vn
Copy link
Member

@CK-7vn CK-7vn commented Jan 7, 2025

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)

image

image

When hovering the tooltip displays the time in 24hr time
image

@jtucholski jtucholski self-requested a review January 8, 2025 20:39
backend/src/database/users.go Outdated Show resolved Hide resolved
backend/src/database/users.go Outdated Show resolved Hide resolved
backend/src/handlers/dashboard.go Outdated Show resolved Hide resolved
backend/src/handlers/dashboard.go Outdated Show resolved Hide resolved
backend/src/handlers/dashboard.go Outdated Show resolved Hide resolved
backend/src/handlers/dashboard.go Outdated Show resolved Hide resolved
frontend/src/common.ts Outdated Show resolved Hide resolved
@CK-7vn CK-7vn force-pushed the op_insights branch 2 times, most recently from 3e178c2 to c7954c7 Compare January 9, 2025 23:19
@CK-7vn
Copy link
Member Author

CK-7vn commented Jan 9, 2025

A lot of updates here.

-- Updated the facilities API call to use SWR.
-- Added labels on the x and y axis for the Peak login times graph
-- Changed it so that based on screen size the ticks on the x axis will change so that the ticks don't bombard the x axis, and makes it easier to see.
-- Changed the labels in the StatsCard with a slice to uppercase first letter
-- Changed some "students" to residents in backend, and fixed a typo.
-- Cleaned out a couple left over Debug's in queries
-- Added an information tool tip for the StatsCards
-- Moved the refresh button

(Small, key in on the x axis labels)
image

3 hr x axis
image

2 hr x axis
image

image

image

image

image

@CK-7vn CK-7vn force-pushed the op_insights branch 2 times, most recently from 967a0f1 to 4e5d074 Compare January 10, 2025 00:40
Copy link
Contributor

@jtucholski jtucholski left a 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.

Copy link
Contributor

@jtucholski jtucholski left a 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.

@jtucholski jtucholski changed the title fix: remove graphs from operational insights, add line chart, fix wordage fix: add tooltips and line charts to operational insight Jan 10, 2025
@jtucholski jtucholski merged commit 6b10267 into UnlockedLabs:main Jan 10, 2025
4 checks passed
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.

UI: Improvements to the Operational Insights page
2 participants