Skip to content

Manoj - Enhance Material Usage Dashboard with Interactive and Informational Features(Backend)#2172

Open
ManojPuttaswamy wants to merge 2 commits intodevelopmentfrom
Manoj-utilisation_chart
Open

Manoj - Enhance Material Usage Dashboard with Interactive and Informational Features(Backend)#2172
ManojPuttaswamy wants to merge 2 commits intodevelopmentfrom
Manoj-utilisation_chart

Conversation

@ManojPuttaswamy
Copy link
Copy Markdown

@ManojPuttaswamy ManojPuttaswamy commented Apr 16, 2026

Description

Screenshot 2026-04-16 at 6 46 27 PM

Related PRS (if any):

To test this backend PR you need to checkout the PR#5162 frontend PR.

Main changes explained:

Frontend (UtilizationChart.jsx)

  1. Enhanced tooltips — full name, utilization, downtime, count
  2. Summary banner — total tools, avg utilization, top tool, total downtime
  3. Comparison toggle — consistent with Apply button flow
  4. Increased Only filter — visible only when comparison is ON
  5. Download CSV/PDF — reflects current filters
  6. 4-week trend line chart with linear regression trend line
  7. Mock data commented out, real API calls active

Frontend (UtilizationChart.module.css)

  1. Summary banner styles
  2. Comparison toggle styles
  3. Download dropdown styles
  4. Trend section styles
  5. Full dark mode support

Backend (toolUtilizationController.js)

  1. count field added to per-tool response
  2. groupBy=week support — single API call for trend data
  3. computeUtilizationForRange extracted as shared helper
  4. No breaking changes to existing behavior

How to test:

  1. check into current branch
  2. do npm install and npm run start to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. go to /UtilizationChart
  6. verify above listed functionalities and also with dark mode.

Screenshots or videos of changes:

REC-20260416013413.mp4

@ManojPuttaswamy ManojPuttaswamy changed the title Manoj utilisation chart Manoj - Enhance Material Usage Dashboard with Interactive and Informational Features(Frontend) Apr 17, 2026
@ManojPuttaswamy ManojPuttaswamy changed the title Manoj - Enhance Material Usage Dashboard with Interactive and Informational Features(Frontend) Manoj - Enhance Material Usage Dashboard with Interactive and Informational Features(Backend) Apr 17, 2026
@ManojPuttaswamy ManojPuttaswamy added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Apr 17, 2026
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant