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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions