Skip to content

[Frontend] Create StatusBadge and ConditionBadge Components #451

@yusuftomilola

Description

@yusuftomilola

Small inline badge components used throughout the asset tables and detail pages to visually communicate asset status and condition.

Requirements

StatusBadge — accepts status: AssetStatus enum value and renders a coloured pill:

  • ACTIVE → green
  • ASSIGNED → blue
  • MAINTENANCE → yellow/amber
  • RETIRED → gray

ConditionBadge — accepts condition: AssetCondition enum value:

  • NEW → emerald
  • GOOD → green
  • FAIR → yellow
  • POOR → red

Both components should be small, pill-shaped, with a subtle background tint.

Acceptance Criteria

  • All enum values have a colour mapped
  • No unhandled/unknown values cause crashes (fallback to gray)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions