Skip to content

[Feature request] Add badge component for status and category display #676

@shm11C3

Description

@shm11C3

Currently, HardwareVisualizer lacks a consistent way to display hardware status, connection states, and category information. Users need quick visual indicators to identify hardware states (normal, warning, critical), device types, and real-time status without having to read detailed text.

Add the shadcn/ui badge component to provide compact, color-coded status indicators throughout the application. The badge component should support multiple use cases:

Primary Use Cases

1. Hardware Status Display

  • CPU/GPU load levels: Normal, High Load, Critical
  • Temperature warnings: 90°C High Temp, 65°C Normal
  • Performance modes: Turbo, Standard, Power Save

2. Connection Status

  • Network interfaces: • Connected, ○ Disconnected
  • Device detection: Detected, Not Found

3. Hardware Categories

  • GPU vendors: NVIDIA, AMD, Intel
  • Storage types: SSD, HDD

4. Real-time Status

  • Data update status: • LIVE, Paused, History Mode

5. Alerts & Warnings

  • Threshold violations: Memory Low, CPU Overheating
  • System alerts: Normal Range

Implementation Details

  • Install shadcn/ui badge component: npx shadcn@latest add badge
  • Support variant types: default, secondary, destructive, outline
  • Integrate with existing hardware monitoring components
  • Ensure consistent styling with current design system

Benefits

  • Visual Recognition: Instant status identification
  • Color Coding: Priority indication through variants
  • Space Efficient: Compact information display
  • Design Consistency: Unified component system

Describe alternatives you've considered

  • Custom status indicators: More development overhead, inconsistent styling
  • Text-only status: Less visual impact, harder to scan quickly
  • Icon-only indicators: Less descriptive, accessibility concerns

Additional context
This enhancement will significantly improve the user experience by providing immediate visual feedback about hardware states and system status. The badge component is particularly valuable for hardware monitoring applications where quick status assessment is critical.

The component should integrate seamlessly with existing components like charts, cards, and the dashboard layout.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions