fix(Rewards): Update theMiracle logo and make it theme-aware cp-7.78.0#30213
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #30213 +/- ##
==========================================
+ Coverage 81.54% 81.86% +0.32%
==========================================
Files 5343 5434 +91
Lines 142128 144899 +2771
Branches 32411 33093 +682
==========================================
+ Hits 115899 118625 +2726
+ Misses 18299 18162 -137
- Partials 7930 8112 +182 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The component is only imported by
This is a low-risk, isolated UI addition. No E2E test tags are warranted as none of the available tags cover the Rewards/Benefits feature specifically, and the changes don't affect any shared components that could break existing E2E tests. Performance Test Selection: |
|



Description
The logo for theMiracle displayed at the bottom of the Benefits screen was incorrect and was hard to see in dark theme
This uses the updated, correct logo as an SVG and swaps the color when in dark mode.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/RWDS-1302
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-only change: swaps an SVG asset and passes a theme-derived
colorprop to improve contrast; minimal logic impact covered by unit test updates.Overview
Updates the Rewards Benefits footer to render the TheMiracle logo using the current theme text color by wiring
useTheme()intoTheMiracleFooterand passing acolorprop to the SVG component.Replaces
themiracle-logo.svgwith the corrected artwork and adjusts the unit test to mock/verify the newcolorprop is set tocolors.text.default.Reviewed by Cursor Bugbot for commit 0ee0184. Bugbot is set up for automated code reviews on this repo. Configure here.