Center-align setup experience app icons - #49962
Conversation
The "Setting up your device" software cell forced a width-only override on the small software icon, which scaled the SVG-fallback icons (custom packages) but left the <img> used by Fleet-maintained/VPP apps at 24px, so icons and their "Install …" labels misaligned by app type. Drop the override so all app types render at the component's consistent, centered 24px small icon. Adds a Storybook story covering the icon render paths. Resolves #46973
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #49962 +/- ##
========================================
Coverage 67.92% 67.92%
========================================
Files 3905 3919 +14
Lines 249676 249664 -12
Branches 13350 13178 -172
========================================
- Hits 169580 169572 -8
+ Misses 64828 64825 -3
+ Partials 15268 15267 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
WalkthroughAdds Storybook stories for fleet-maintained apps, custom packages, uploaded icon URLs, and mixed app layouts. The stories provide a shared query client and query client provider. Removes the nested 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@RachelElysia @cdcme What is your take on adding more storybook components, in this case a bigger piece/page? For a situation like this a bug like this can be fixed without even going through DEP (would be advised for testing still) |
Related issue: Resolves #46973
Description
FMA and custom-package app icons were misaligned on the macOS setup experience ("Setting up your device") screen — icons rendered at different sizes and their "Install …" labels didn't line up.
Root cause:
SetupSoftwareProcessCellforced.software-icon__small { width: $pad-xlarge }(32px, width only). That class lands on different elements inSoftwareIcon's two render paths, so it hit them differently:<div>; the 24px<img>inside stayed 24px, left-aligned.Result: different icon sizes/positions by app type → the misalignment.
Fix: remove the width override so every app type renders
SoftwareIconat its consistent, vertically-centered 24px "small" size.Testing
Verified in Storybook (added
SetupSoftwareProcessCell.stories.tsx,MixedAlignmentstory) with real matched brand icons (Chrome, 1Password, VS Code, Zoom), a generic custom-package icon, and a URL/<img>icon stacked together:On-device QA to follow once hardware is available.
Notes for reviewer
width: $pad-xlarge(32px) was added in Update "Setting up your device" page for MacOS Setup Experience #33770, so 32px may have been the intended icon size. This change makes them a consistent 24px. If a larger icon is desired, that's a follow-up done properly via a realSoftwareIconsize (not a width-only override) — flagging for PD input since this is:product-labeled.Checklist for submitter
changes/.See Changes files for more information.
Testing
Summary by CodeRabbit
Bug Fixes
Tests