[DAS-Dashboard#1166] Improvements in dashboard visuals and bug fixes - #299
Conversation
* General dashboard polish, including layout, styling, colors, and button improvements. * Updated memory chart labels to display values in GB and CPU chart labels to display "CPU % / Container". * Updated agent table labels: memory is now displayed in GB, and CPU usage is displayed as "CPU % / Container". * Updated machine status labels: memory is now displayed in GB, CPU is labeled as "Machine Load", and disk usage now indicates that the reported volume corresponds to the root mount. * Enhanced the Agents section with improved visual highlighting for the selected agent.
- updated system metrics to display values in GB
- implemented a method for mapping hosts and their respective services - gave the existing methods a tiny polish/removed complexity and duplicate calls.
- Integration with back-end mapping changes - Agent table is returning all services that belong to a specific machine, regardless of being active or not.
- adjusted container memory usage calculation - adjusted memory labels from MB to GB (forgot to adjust earlier)
- integrated 'start service' button
…e machine's total memory.
…the servers in the architecture and fetches multiple agent data.
|
Warning Review limit reached
Next review available in: 28 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
WalkthroughAdds a configurable stream cooldown and GB-based metric labels to das-cli, refactors dashboard host/config mapping around normalized service rows, and rewires the dashboard frontend to consume multi-host metrics, merged services, and updated service actions/layouts. ChangesCLI System Status Cooldown and Unit Conversion
Dashboard Backend Host and Config Mapping
Dashboard Frontend Metrics, Layout, and Service Actions
Estimated code review effort: 4 (Complex) | ~75 minutes Sequence Diagram(s)sequenceDiagram
participant ConfigController
participant WebConfiguration
participant ConfigServices
participant DashboardContextProvider
participant useAllMachinesMetrics
participant DashboardPage
ConfigController->>WebConfiguration: load_config_dictionary + map_dashboard_hosts
ConfigServices->>WebConfiguration: map_hosts_from_config(nested_config)
DashboardContextProvider->>useAllMachinesMetrics: pass machines
useAllMachinesMetrics-->>DashboardContextProvider: merged services and per-host metrics
DashboardContextProvider-->>DashboardPage: context with mergedServices, aggregatedMetricsByHost, machineStatsByHost
DashboardPage->>DashboardPage: render view title, alert, and content from context
Possibly related issues
Possibly related PRs
Suggested reviewers: Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai Full Review. |
|
✅ Action performedFull review finished. Your plan includes PR reviews subject to rate limits. More reviews will be available in 34 minutes. |
Bug Fixes
Adjustments & Improvements
Improved the overall page layout and applied visual refinements across the dashboard.
Added a Start button for agents in the Agents table.
Updated the Agents table to always display all configured agents, regardless of whether they are currently active.
Refined labels and descriptions in the Agents table and charts to improve clarity: