Skip to content

Add compact cabinet metrics display in row view#1657

Open
lacatoire wants to merge 1 commit intoopendcim:masterfrom
lacatoire:feat/1225-cabinet-metrics-rowview
Open

Add compact cabinet metrics display in row view#1657
lacatoire wants to merge 1 commit intoopendcim:masterfrom
lacatoire:feat/1225-cabinet-metrics-rowview

Conversation

@lacatoire
Copy link

@lacatoire lacatoire commented Feb 10, 2026

Summary

  • Added a compact metrics line below each cabinet in the row view showing space usage (U), power (kW), and weight (kg)
  • Provides a quick overview of cabinet utilization without navigating into each individual cabinet
  • Uses existing Cabinet::getStats() and CabinetOccupancy() methods

Fixes #1225

@alex001x
Copy link
Contributor

The $body part needs to be removed from the foreach loop; otherwise, the graphical view generation will be different.
CabinetHeight "U" returns the total number of rack units (U), not the number of units used.

That's a good idea; now we need to consider the relevance of this information in this view.

Show space usage (U), power (kW), and weight (kg) below each cabinet
in the row view. Metrics are inserted inside the cabinet wrapper div
to preserve the graphical view layout.

Fixes opendcim#1225
@lacatoire lacatoire force-pushed the feat/1225-cabinet-metrics-rowview branch from 1cf2190 to 938b675 Compare February 12, 2026 17:19
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.

Option to show cabinet metrics on row view

2 participants