Skip to content

fix(dashboard): show empty states for overview charts#1007

Merged
lightzt99 merged 1 commit into
oceanbase:mainfrom
wayyoungboy:fix/issue-370-dashboard-empty-states
Jun 11, 2026
Merged

fix(dashboard): show empty states for overview charts#1007
lightzt99 merged 1 commit into
oceanbase:mainfrom
wayyoungboy:fix/issue-370-dashboard-empty-states

Conversation

@wayyoungboy

Copy link
Copy Markdown
Member

Summary

Fixes #370 by showing explicit empty states for the overview charts that previously rendered blank when there was no memory data.

Changes:

  • show a no-data state for Growth Trend when growth_trend has no positive counts
  • show a no-data state for Memory Categories when category counts are empty or all zero
  • add English and Chinese dashboard copy for both states

Verification

cd dashboard
pnpm run type-check
pnpm run build
cd ..
git diff --check

pnpm run lint still fails on pre-existing dashboard Biome diagnostics unrelated to this change, such as src/components/ui/* type-only imports, src/lib/api.ts explicit any, and existing src/routes/index.tsx array-index keys.

@lightzt99

Copy link
Copy Markdown
Collaborator

LGTM.

@lightzt99 lightzt99 merged commit 8c46b72 into oceanbase:main Jun 11, 2026
11 checks passed
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.

[Enhancement]: When there is no memory in the database, the content of Growth Trend and Memory Categories is empty and there is no prompt

2 participants