Skip to content

[Doc Update] [console] 🐛 Fix stat block definitions to match actual handler IDs #911

@github-actions

Description

@github-actions

📝 Documentation Update Needed

A pull request was recently merged that may require documentation updates.

Source PR

PR Summary

This PR fixes 8 dashboard stat block definitions where IDs didn't match the actual handler IDs, causing "Not available on this dashboard" errors. Stat IDs in StatsBlockDefinitions.ts were aligned with getDashboardStatValue handlers across Compliance, Data Compliance, Compute, Events, Cost, Alerts, Dashboard (main), and Operators dashboards.

Changes Overview

  • Fixed 8 of 15 dashboards with mismatched stat IDs (e.g., Compliance: soc2cis_score, Compute: cpu_usagecpus)
  • Added localStorage cleanup to remove stale stat IDs when definitions change
  • Dashboard statistics now display correctly instead of showing "Not available" errors

Files Changed

Multiple files changed in dashboard stat handling and configuration (StatsBlockDefinitions.ts, useStatBlockConfig hook)


Action Required: The technical documentation writer agent will review this PR and identify specific documentation pages that need updates, then create a PR with the necessary changes.

/cc @technical-doc-writer

AI generated by scan-merged-prs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions