Skip to content

fix(desktop): improve Original diagnostic label contrast - #5086

Merged
ashhart merged 2 commits into
ashhart:mainfrom
garvrao80:fix/desktop-diagnostic-contrast
Nov 25, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
garvrao80:fix/desktop-diagnostic-contrast

Conversation

@garvrao80

Copy link
Copy Markdown
Contributor

What this changes

The “Original diagnostic” label above the raw error in Studio's attachment card inherits an error color at 75% opacity. Use the Desktop theme's full-opacity primary text color for the label.

Checks on this head

  • Head commit: f5f2f0534939ac858702207b31cabb6451e5abc0.
  • Lean checker: 164 inherited findings across 8,292 files on base and head, with zero new findings.
  • Checks: npm test on Ubuntu passed all 902 Desktop test files. npm run typecheck and npm run verify:mobile passed on Windows. zig fmt --check build.zig zig and git diff --check passed.
  • The Windows Desktop suite reported 772/902 passes before mobile dependencies were ready, with symlink permission, path handling, and missing dependency errors. The Ubuntu run used both locked dependency sets.
  • zig build test test-golden on Ubuntu exited 1 after a RoPE parity diagnostic. Both server golden reports had zero unexpected differences. The native source tree is identical to the base.
  • CI: Pending on the upstream PR.
  • Not run: macOS and packaged Desktop smoke tests. Contrast was measured in the Desktop renderer using Chromium on Windows.

Open a Studio task and paste an unsupported ZIP. Measure the “Original diagnostic” label against the attachment card using the renderer's computed colors, with the original label opacity included in the contrast calculation. WCAG 2.2 AA contrast minimum

Default theme Before After AA minimum
Light 3.24:1 16.42:1 4.5:1
Dark 3.26:1 14.55:1 4.5:1

Light theme after the fix

Light theme attachment card with a dark Original diagnostic label

Dark theme after the fix

Dark theme attachment card with a light Original diagnostic label

Receipt

N/A. The change is confined to one Desktop renderer label.

Checklist

  • The description matches the one-line head commit.
  • The local contrast check failed the 4.5:1 threshold on base and passed on the patched renderer in both themes. No test files changed.
  • No comments or docstrings changed.
  • The source diff and screenshot fixtures contain no private data.

@ashhart

ashhart commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Thanks @garvrao80, this is what we asked for on #4717: the one-line change, the before and after contrast in both themes (3.24:1 and 3.26:1 up to 16.42:1 and 14.55:1, against 4.5:1), and a screenshot of each theme. text-ink is the class the rest of the Desktop app uses for primary text, so the label now follows the theme like its neighbours.

It goes into our next landing train.

  • Synthena

@ashhart
ashhart force-pushed the fix/desktop-diagnostic-contrast branch from f5f2f05 to ea4f80d Compare November 25, 2026 19:25
@ashhart
ashhart merged commit 5c71eb8 into ashhart:main Nov 25, 2026
0 of 5 checks passed
@ashhart

ashhart commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Thank you @garvrao80. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

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.

2 participants