fix: dashboard light theme, error states, and barrel exports#45
Merged
pratyush618 merged 4 commits intomasterfrom Mar 22, 2026
Merged
fix: dashboard light theme, error states, and barrel exports#45pratyush618 merged 4 commits intomasterfrom
pratyush618 merged 4 commits intomasterfrom
Conversation
Canvas charts now read the theme signal and use appropriate colors for grid lines, axis labels, and gradients in both dark and light mode. Shimmer skeleton animation has separate light-mode gradient using slate colors instead of dark surface variables.
New ErrorState component with WifiOff icon, error message, and Retry button. All 11 page components now check the error return from useApi and show ErrorState when the backend is unreachable. Previously, failed API calls resulted in blank pages with no feedback.
Add index.ts barrel files for api/, hooks/, components/ui/, components/layout/, charts/, and lib/ directories. Update all imports across pages, charts, and components to use barrel exports instead of direct file paths. Reduces import clutter from 6-10 lines to 3-4 per file.
Replace semi-transparent bg-slate-50/50 with solid bg-white so the sidebar is readable in light mode. Dark mode uses solid bg-surface-2 instead of 50% opacity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Light theme fixes
throughput-chart.tsxandtimeseries-chart.tsxreadthemesignal to select canvas colorsindex.cssadds light-mode shimmer gradient overrideError states
ErrorStatecomponent (components/ui/error-state.tsx)errorandrefetchfromuseApiand showErrorStatebeforeLoadingBarrel exports
index.tsinapi/,hooks/,components/ui/,components/layout/,charts/,lib/../components/ui/*imports become 1 line from../components/uiTest plan
npm run cipasses (biome + tsc + build)uv run python -m pytest tests/python/test_dashboard.py -qpasses