Generate Workspace Avatar Color based on PolicyID instead of Workspace Name#39637
Generate Workspace Avatar Color based on PolicyID instead of Workspace Name#39637grgia merged 17 commits intoExpensify:mainfrom
Conversation
|
@rushatgabhane 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] |
|
Looks good from a design standpoint. |
Dangit Shawn you beat me by ONE minute! 😂 |
|
@rushatgabhane friendly bump |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-15.at.21.56.33.moviOS: Nativehttps://github.com/Expensify/App/assets/29673073/68618c7f-2136-4ad9-962b-b25f791b6f12MacOS: Chrome / SafariScreen.Recording.2024-04-11.at.04.31.46.movScreen.Recording.2024-04-15.at.21.50.34.movMacOS: DesktopScreen.Recording.2024-04-11.at.04.30.00.mov |
rushatgabhane
left a comment
There was a problem hiding this comment.
@nkdengineer bug: the workspace switcher has same color for all workspaces
- On top left in LHN, click the Expensify icon to open workspace picker
|
@nkdengineer how's it looking? |
|
@rushatgabhane please check again |
src/components/Avatar.tsx
Outdated
| /** ID of the Icon */ | ||
| iconID?: number | string; |
There was a problem hiding this comment.
| /** ID of the Icon */ | |
| iconID?: number | string; | |
| /** ID of the Icon */ | |
| policyID?: number | string; |
There was a problem hiding this comment.
Or are we passing the accountID otherwise?
| @@ -49,6 +49,9 @@ type AvatarProps = { | |||
|
|
|||
| /** Owner of the avatar. If user, displayName. If workspace, policy name */ | |||
| name?: string; | |||
|
Running a test build to do a quick QA |
|
@grgia Updated to fix this case. |
|
@nkdengineer could you merge main? |
|
Apologies for the delay |
|
@grgia I merged. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
@nkdengineer sorry one last merge main, please ping me! |
|
@grgia Merged main. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.69-0 🚀
|
|
@nkdengineer @grgia we have a regression from this PR #41385 |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.69-2 🚀
|





Details
Fixed Issues
$ #39478
PROPOSAL: #39478 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web-resize.mp4
MacOS: Desktop
desktop-resize.mp4