Skip to content

fix(workspace): improve local git diff readability - #1505

Merged
nixuuu merged 2 commits into
devfrom
feat/readable-diff
Nov 30, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/readable-diff

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Increase the contrast of added and removed rows and their +/− markers in the Local Git diff, across light and dark themes and both Diffs palettes.
  • Reuse Canopy's Shiki grammars for visible diff pages. Highlight the original and changed sides independently, yield between pages, and keep plain text available while coloring runs, for unrecognized languages, and beyond the coloring budget. Defer applying new colors while text in the diff is selected.
  • Give screen readers a short “Added line” or “Removed line” cue equivalent to the visual marker. Copy audit (§8) passed for those two labels.

Thanks @mikuyeyu for reporting the readability issue.

Local verification

  • Linux, revision de30796d7: scoped oxfmt and oxlint passed.
  • Chromium with fixture data: light and dark, both palettes, changed-line markers and syntax contrast, narrow panel with horizontal scrolling, another virtual page, plaintext fallback, opening a line comment, and preserving selection until the user clears it.

CI

GitHub Actions passed for revision de30796d7, including both required checks. Browser interaction and color checks were manual.

@nixuuu
nixuuu enabled auto-merge (squash) November 30, 2026 19:34
@nixuuu
nixuuu disabled auto-merge November 30, 2026 19:37
@nixuuu
nixuuu enabled auto-merge (squash) November 30, 2026 19:40
@nixuuu
nixuuu merged commit 982040c into dev Nov 30, 2026
25 checks passed
@nixuuu
nixuuu deleted the feat/readable-diff branch November 30, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant