Skip to content

fix(dashboard): unify empty-state detection on exact constant match - #3187

Merged
Xore merged 1 commit into
mainfrom
dsa-r2-empty-states-status
Sep 13, 2026
Merged

Xore merged 1 commit into
mainfrom
dsa-r2-empty-states-status

Conversation

@Xore

@Xore Xore commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Unify dashboard empty states on the single canonical string 'Nothing to show here' (the pre-existing shared default from Investigate.tsx:88)
  • Replace the startsWith('No ') prefix heuristic with an exact constant comparison so no future copy edit can break empty-state detection
  • Reuse the existing ClusterBadge helper for the source-health ES chip, removing duplicate bare text

Test plan

  • Fix-review round 2 approved (opus high)

Replace the startsWith('No ') prefix heuristic with an exact comparison
against the canonical 'Nothing to show here' string, so a future copy
edit can't silently break empty-state detection. Reuse ClusterBadge for
the source-health ES chip instead of duplicating bare text.
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@Xore
Xore merged commit 94854f2 into main Sep 13, 2026
106 checks passed
@Xore
Xore deleted the dsa-r2-empty-states-status branch September 13, 2026 20:21
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