Use correct border color for bot avatar edit icon - #91337
Conversation
The agent pages render the avatar on appBG background, but were using profilePageAvatar style which sets borderColor to highlightBG. Switch to smallEditIconAccount which uses appBG to match the actual background. Co-authored-by: Nicolás Bonet <NicolasBonet@users.noreply.github.com>
|
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
All checks on this PR are currently passing (or skipping/pending where expected). There are no failing CI checks to fix. The |
|
🚧 @puneetlath has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.3.79-1 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. It is a style-only fix that corrects the border color of the bot avatar edit icon on the Add Agent and Edit Agent pages. No user-facing features, workflows, settings, or terminology were added or changed. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.79-4 🚀
|
Explanation of Change
The bot avatar edit icon on
EditAgentPageandAddAgentPageusesstyles.profilePageAvatarwhich setsborderColor: theme.highlightBG. This is wrong because those pages render the avatar ontheme.appBG(not inside aSectioncard likeProfilePage), so the border doesn't match the background.Switched both pages to use
styles.smallEditIconAccountwhich setsborderColor: theme.appBG, matching the actual background.Fixed Issues
$ #91335
PROPOSAL: #91335 (comment)
Tests
Offline tests
N/A — this is a style-only change with no network behavior.
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.AI Tests
ConvertGpsPointsTo2DArray.ts)Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari