Skip to content

Redesign status/difficulty Badge encoding for distinguishability beyond color #49

Closed

Description

@chonilius

Problem

src/components/ui/Badge.tsx presumably renders BountyStatus (open/funded/claimed/in_review/merged/paid/refunded/expired) and Difficulty values as colored pills across BountyCard.tsx and detail pages — eight distinct status values is a lot to encode with color alone in a slate/emerald dark-mode-first palette that likely doesn't have eight easily-distinguishable, WCAG-AA-contrast-compliant hues to spare, especially with the emerald brand color presumably reserved for primary/positive actions elsewhere in the UI (risking a semantic collision, e.g. is "paid" shown in emerald because it's a positive outcome, and does that clash with emerald used for a "Claim" button's affordance elsewhere, confusing which is a status and which is an action?). This is compounded by a specific correctness risk: "funded" and "paid" are both intuitively "good/green" states but mean very different things (money is escrowed vs. money has actually been released to a contributor) — if their badge treatments are too visually similar, a contributor or maintainer could misread a bounty's actual state at a glance, which matters for a financial status indicator.

Why this is hard

  • Requires actually enumerating every current color/style mapping in Badge.tsx for all eight BountyStatus values plus the four Difficulty values (twelve total distinct semantic states sharing one small component), and evaluating them for both mutual distinguishability and WCAG AA contrast in both light and dark mode, which is a real audit against the existing Tailwind v4 config's actual color values, not a guess.
  • Needs a redesign that doesn't rely on hue alone for the states that matter most to get right (the escrow-money-adjacent ones: funded/claimed/in_review/merged/paid/refunded) — likely needs a secondary encoding (icon, label text weight/prefix, border style) for at least the states most likely to be confused, which is a design decision requiring judgment about which pairs are actually confusable, not just adding icons to everything indiscriminately.
  • Must preserve/extend the existing design system's slate/emerald identity rather than introducing an unrelated color scheme, meaning the fix is constrained to work within (or deliberately, minimally extend) the current palette — this requires reading how slate/emerald are used elsewhere (buttons, links, focus rings) to avoid new semantic collisions while fixing the existing ones.
  • Should be validated with an actual colorblindness simulation (protanopia/deuteranopia/tritanopia) on the full eight/four-value set, not just eyeballed by someone with typical color vision, since subtle hue-only distinctions are exactly what fails under color vision deficiency.

Scope

  • Audit and document the current full status/difficulty-to-style mapping in Badge.tsx and every call site's actual rendered contrast (light + dark mode).
  • Redesign the mapping so every one of the twelve states is distinguishable via more than color alone where confusion risk is highest (especially funded vs. paid, and any other close pairs identified in the audit), within the existing slate/emerald design language.
  • Verify WCAG AA contrast for all resulting badge styles in both themes.
  • Run a colorblindness simulation pass across all states and document findings/fixes in the PR.

Acceptance criteria

  • All twelve status/difficulty badge states are pairwise distinguishable under protanopia, deuteranopia, and tritanopia simulation.
  • All badge text/background combinations meet WCAG AA contrast in both light and dark mode.
  • funded and paid (and any other identified confusable pair) are unambiguously distinct at a glance, verified by a non-color-vision-dependent cue.

Activity

  1. added
    very hard
    accessibility
    help wanted
    on Jul 15, 2026
  2. added
    GrantFox OSS
    Maybe Rewarded
    Official Campaign | FWC26
    on Jul 15, 2026
  3. added
    Stellar Wave
    on Aug 25, 2026
  4. Sureplus30 commented on Aug 25, 2026

    @Sureplus30

    @Sureplus30 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    I would like to work on this kindly assign me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Sureplus30 to this issue.

  5. Max347bot commented on Aug 25, 2026

    @Max347bot

    @Max347bot has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi Maintainer! I'm a senior developer with experience building high-quality, production-ready software. I'd love to take on this issue and deliver a clean, well-tested solution that aligns with the project's standards. Please assign it to me—I'm ready to get started and contribute effectively.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Max347bot to this issue.

  6. danfulani0 commented on Aug 25, 2026

    @danfulani0

    @danfulani0 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi Maintainer! I'm a senior developer with experience building high-quality, production-ready software. I'd love to take on this issue and deliver a clean, well-tested solution that aligns with the project's standards. Please assign it to me—I'm ready to get started and contribute effectively.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @danfulani0 to this issue.

  7. gerani1 commented on Aug 26, 2026

    @gerani1

    @gerani1 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    hello, i would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @gerani1 to this issue.

  8. drips-wave commented on Aug 26, 2026

    @drips-wave

    Congratulations, @gerani1! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @gerani1: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  9. drips-wave commented on Sep 29, 2026

    @drips-wave

    This issue has been completed by @gerani1 as part of the Stellar Wave Program's 9th Wave 🥳

    😎 @gerani1: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  10. removed
    Stellar Wave
    on Oct 15, 2026
  11. added
    Stellar Wave
    on Oct 15, 2026
  12. removed
    Stellar Wave
    on Oct 15, 2026
  13. added
    Stellar Wave
    on Oct 15, 2026
  14. removed
    Stellar Wave
    on Oct 15, 2026
  15. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSMaybe RewardedOfficial Campaign | FWC26Stellar Waveaccessibilityhelp wantedvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions