Skip to content

Conversation

@moijes12
Copy link

This change updates the tag options used in the TestHeader and SubtestsRevisionHeader to change the tag background and font based on the theme chosen (dark / light). New background colors are defined in the styles/Colors.ts for the option and existing font colors are reused for the font.

This has been tested locally and the screenshots are as below.

  1. TestHeader update
image
  1. Subtests Header Update
image

npm run fix-all has been applied before creating the commit.

@davehunt @kala-moz

This change updates the TestHeader and SubtestsRevisionHeader by making tag options aware of light. The changes made are:
* Import theme hook in both TestHeader and SubtestsRevisionHeader
* Update `styles` object in both TestHeader and SubtestsRevisionHeader to choose background color of span based on theme
* Update color of tag based on theme
* Add new colors to `styles/Colors.ts`
@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for mozilla-perfcompare ready!

Name Link
🔨 Latest commit 940dcda
🔍 Latest deploy log https://app.netlify.com/projects/mozilla-perfcompare/deploys/6978cad3d87a100008e56307
😎 Deploy Preview https://deploy-preview-993--mozilla-perfcompare.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

❌ Patch coverage is 53.84615% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.01%. Comparing base (cc1d8e1) to head (940dcda).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...Results/SubtestsResults/SubtestsRevisionHeader.tsx 53.84% 3 Missing and 3 partials ⚠️
src/components/CompareResults/TestHeader.tsx 53.84% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #993      +/-   ##
==========================================
- Coverage   96.38%   96.01%   -0.37%     
==========================================
  Files         104      104              
  Lines        3016     3040      +24     
  Branches      686      706      +20     
==========================================
+ Hits         2907     2919      +12     
- Misses        108      114       +6     
- Partials        1        7       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@moijes12 moijes12 marked this pull request as draft January 27, 2026 14:32
@moijes12
Copy link
Author

Converting this to draft. I will have a look at improving the tests

@moijes12
Copy link
Author

@kala-moz Since this is a change to an UI element color, do we have to write tests for it ?

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