Skip to content

fix: assign distinct tier colors in learner profile #77

Description

@EmeditWeb

Problem

In LearnerProfile.tsx (lines 15-20), TIER_COLORS maps 'Gold' and 'Bronze' both to 'amber', and 'Silver' to 'muted'. Different tiers should have visually distinct colors.

User impact: The tier badges for Gold and Bronze learners look identical, defeating the purpose of visual tier differentiation.

Root Cause

Color mapping was typed incorrectly during initial development.

What To Build

  1. Fix TIER_COLORS to use distinct colors:
    • Gold → amber/yellow
    • Silver → gray/slate
    • Bronze → orange/copper
    • Starter → blue
  2. Verify against colors.ts constants

Files To Touch

  • src/pages/LearnerProfile.tsx — lines 15-20 fix color mapping

Acceptance Criteria

  • Each tier has a distinct color
  • Colors reference constants/colors.ts
  • Gold and Bronze visually different

Mandatory Checks

  • context/ files read
  • npm run build passes
  • PR references this issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions