Skip to content

ROX-31760: Fix PF codemod color replacement#17897

Merged
dvail merged 6 commits intodv/ROX-28622-pf-6from
dv/ROX-31760-pf-codemod-color-fix
Dec 3, 2025
Merged

ROX-31760: Fix PF codemod color replacement#17897
dvail merged 6 commits intodv/ROX-28622-pf-6from
dv/ROX-31760-pf-codemod-color-fix

Conversation

@dvail
Copy link
Contributor

@dvail dvail commented Nov 20, 2025

See #17809 for more info on the PF migration.

Description

This change replaces all tmp color variables inserted by the PatternFly code mods to align with what we expect in the UI. The colors were chosen based on the semantic meaning of the new PatternFly tokens as closely as possible, rather than finding the color in v6 that happened to be closest to the color in v5.

AI was not used to help with this PR, as the first attempt was nowhere near satisfactory.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Samples of chosen colors. This PR does not address the numerous layout issues.
image
image
image
image
image
image

@openshift-ci
Copy link

openshift-ci bot commented Nov 20, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.45%. Comparing base (cc2560f) to head (44f506d).
⚠️ Report is 1 commits behind head on dv/ROX-28622-pf-6.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           dv/ROX-28622-pf-6   #17897      +/-   ##
=====================================================
- Coverage              49.45%   49.45%   -0.01%     
=====================================================
  Files                   2699     2699              
  Lines                 198270   198270              
=====================================================
- Hits                   98063    98057       -6     
- Misses                 92602    92606       +4     
- Partials                7605     7607       +2     
Flag Coverage Δ
go-unit-tests 49.45% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dvail dvail requested a review from pedrottimark December 2, 2025 15:53
@dvail dvail force-pushed the dv/ROX-28622-pf-6 branch from 99c3003 to cc2560f Compare December 2, 2025 16:02
@dvail dvail requested a review from a team as a code owner December 2, 2025 16:02
@dvail dvail force-pushed the dv/ROX-31760-pf-codemod-color-fix branch from 8f5cc5b to ad01998 Compare December 2, 2025 16:02
@dvail dvail requested a review from pedrottimark December 2, 2025 21:01
Copy link
Contributor

@pedrottimark pedrottimark left a comment

Choose a reason for hiding this comment

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

You get an A for tenacity.

Obvious opportunity to encapsulate colors for ExclamationCircleIcon and so on.

@dvail dvail merged commit f25eac4 into dv/ROX-28622-pf-6 Dec 3, 2025
109 of 154 checks passed
@dvail dvail deleted the dv/ROX-31760-pf-codemod-color-fix branch December 3, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants