Skip to content

style: show test run attributes as chips in the details dialog - #382

Merged
nGervasyuk merged 2 commits into
Visual-Regression-Tracker:masterfrom
nGervasyuk:style/test-run-details-chips
Jul 27, 2026
Merged

style: show test run attributes as chips in the details dialog#382
nGervasyuk merged 2 commits into
Visual-Regression-Tracker:masterfrom
nGervasyuk:style/test-run-details-chips

Conversation

@nGervasyuk

@nGervasyuk nGervasyuk commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

What & why

In the fullscreen approve/reject dialog the metadata line reads:

OS: Onboarding  Device: iPhone  Custom Tags: ar_AE  Diff: 0%  Diff tolerance: 0.1%

Every part is the same size and weight, so picking out a single attribute while reviewing screenshot after screenshot means reading the whole line each time. The value you usually want — which variant of the screen this is — is the hardest to spot, because half the line is field names.

The test run list already renders these same five fields (os, device, browser, viewport, customTags) as small chips in its Tags column, so the dialog was the odd one out.

Changes

  • Render the five attributes as the same size="small" chips the list uses, with the field name in a tooltip. The eye is already trained to look for these values as chips one screen earlier.
  • Keep Diff and Diff tolerance as bold text with their existing explanatory tooltips. They are measurements rather than attributes, and the contrast between grey chips and bold text now separates the two groups.
  • The five near-identical conditional blocks collapse into one list, so the file is 12 lines shorter.

Only TestRunDetails is touched. MatchingVariationsDialog has a similar line; happy to align it in a follow-up if you'd like, but it felt out of scope here.

Testing

  • Updated the project-page-test-run-details.png Playwright snapshot.
  • Playwright 21/21, tsc --noEmit, eslint, prettier and vite build clean.

Screenshots

Screenshot 2026-07-27 at 11 49 31

OS, device, browser, viewport and custom tags were flat caption text of
the same weight as the diff numbers, so picking out one of them - the
locale, say - meant reading the whole line. Render them as the same
small chips the test run list already uses for these fields, with the
field name in a tooltip, and leave the diff numbers as text.
@nGervasyuk nGervasyuk self-assigned this Jul 27, 2026
@nGervasyuk
nGervasyuk requested a review from pashidlos July 27, 2026 10:04

@pashidlos pashidlos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarqubecloud

Copy link
Copy Markdown

@nGervasyuk
nGervasyuk merged commit ae462a1 into Visual-Regression-Tracker:master Jul 27, 2026
3 checks passed
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