Skip to content

feat: add a colorblind-safe review marker beside the PR number #70

Description

@davidtaing

Problem

#67 / #68 color the #NN PR-number suffix by review state (green approved, red changes-requested, …). Color alone is an accessibility gap: red/green are the two most important states and are indistinguishable for red-green colorblind users (~8% of men). We want a redundant, non-color signal.

Why not full text labels

Considered (and rejected) showing approved / changes requested as words: they're wide and variable-width, which fights the ref column's plain-text padding (it keeps the timestamp columns aligned). Duplicating the state as prose on every row is a lot of horizontal real estate for what a compact marker conveys.

Proposed

A small glyph/letter riding next to the number, mirroring the CI ✓/✗/●/○ glyph pattern in render.go (checkGlyph). Strawman:

State Color Marker (strawman)
approved green #58 ✓
changes requested red #58 ±
review required yellow #58 …
draft dim #58 ·
open, no decision plain #58 (none)

Always-on (the point is the non-color channel), so no toggle to maintain.

Design fork (why hitl)

  • Exact glyph set — ✓/±/…/· vs letters (A/C/R/D) vs something else. Must stay single-width and not collide visually with the CI glyph column.
  • Placement: after the number (#58 ±) vs a dedicated column.
  • Width/alignment: the suffix padding in refCell is measured on plain text — adding a marker needs the same care so columns stay aligned.

Data is already in place: Worktree.PRReview (added in #68). This is render-only.

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

    Labels

    enhancementNew feature or requesthitlNeeds a human (decision/design/review)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions