| .. | ||
| components | ||
| hooks | ||
| services | ||
| types | ||
| utils | ||
| index.ts | ||
| MonitoringPage.tsx | ||
| README.md | ||
| SPACING.md | ||
Monitoring Components
This directory contains monitoring components that have been refactored to use standardized UI components with a consistent dark theme.
Standardized Components
StatusBadge
Used for displaying status indicators with consistent styling:
ConnectionStatus- Shows connected/disconnected stateHealthStatus- Shows healthy/unhealthy stateServiceStatusIndicator- Shows service status as a colored dot
MetricCard
Displays metrics with optional progress bars in a consistent card layout.
Cards
ServiceCard- Displays individual service statusDatabaseCard- Displays database connection infoSystemHealthCard- Shows system health overviewCacheStatsCard- Shows cache statisticsProxyStatsCard- Shows proxy statusQueueStatsTable- Displays queue statistics in a table
Theme Colors
All components now use the standardized color palette from the Tailwind config:
- Background:
bg-surface-secondary(dark surfaces) - Borders:
border-border - Text:
text-text-primary,text-text-secondary,text-text-muted - Status colors:
text-success,text-danger,text-warning - Primary accent:
text-primary-400,bg-primary-500/10
Utilities
Common formatting functions are available in utils/formatters.ts:
formatUptime()- Formats milliseconds to human-readable uptimeformatBytes()- Formats bytes to KB/MB/GBformatNumber()- Adds thousand separatorsformatPercentage()- Formats numbers as percentages