stock-bot/apps/stock/web-app/src/features/monitoring
2025-06-24 13:27:43 -04:00
..
components fixed up workers 2025-06-24 13:27:43 -04:00
hooks huge refactor to remove depenencie hell and add typesafe container 2025-06-24 09:37:51 -04:00
services huge refactor to remove depenencie hell and add typesafe container 2025-06-24 09:37:51 -04:00
types fixed up workers 2025-06-24 13:27:43 -04:00
utils huge refactor to remove depenencie hell and add typesafe container 2025-06-24 09:37:51 -04:00
index.ts huge refactor to remove depenencie hell and add typesafe container 2025-06-24 09:37:51 -04:00
MonitoringPage.tsx reorganized web-app 2025-06-23 16:55:29 -04:00
README.md reorganized web-app 2025-06-23 16:55:29 -04:00
SPACING.md reorganized web-app 2025-06-23 16:55:29 -04:00

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 state
  • HealthStatus - Shows healthy/unhealthy state
  • ServiceStatusIndicator - Shows service status as a colored dot

MetricCard

Displays metrics with optional progress bars in a consistent card layout.

Cards

  • ServiceCard - Displays individual service status
  • DatabaseCard - Displays database connection info
  • SystemHealthCard - Shows system health overview
  • CacheStatsCard - Shows cache statistics
  • ProxyStatsCard - Shows proxy status
  • QueueStatsTable - 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 uptime
  • formatBytes() - Formats bytes to KB/MB/GB
  • formatNumber() - Adds thousand separators
  • formatPercentage() - Formats numbers as percentages