Skip to content

fix frontend: handle dashboard overview card states - #283

Open
Ayilee wants to merge 1 commit into
Hardhat-Enterprises:frontendfrom
Ayilee:fix/dashboard-overview-cards
Open

fix frontend: handle dashboard overview card states#283
Ayilee wants to merge 1 commit into
Hardhat-Enterprises:frontendfrom
Ayilee:fix/dashboard-overview-cards

Conversation

@Ayilee

@Ayilee Ayilee commented Jul 31, 2026

Copy link
Copy Markdown

TASK
Improve the Dashboard overview cards’ missing-value and error states while allowing other Dashboard sections to continue loading if the overview endpoint fails.
Changes

  1. Display Unavailable for missing overview-card values.

  2. Preserve missing snapshot totals instead of converting them to zero.

  3. Show a clear error message when the overview endpoint fails.

  4. Continue displaying available fallback Dashboard data.
    Known limitations

  5. A zero-data API response was not manually tested.

  6. The intended meaning of “Total Risks” still requires team confirmation because the existing fallback may use integration or ingestion data.
    Impact
    Frontend-only change to Dashboard.jsx. No backend, API contract, authentication, database, dependency, or environment-file changes.
    Rollback
    Revert commit 4eb5666.

@Ayilee
Ayilee requested a review from priyankaTtk as a code owner July 31, 2026 16:55
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.

1 participant