[Avatars] Revert PR #50557 If two avatars, use Name 1 & Name 2 pattern. #50697
[Avatars] Revert PR #50557 If two avatars, use Name 1 & Name 2 pattern. #50697
Name 1 & Name 2 pattern. #50697Conversation
Name 1 & Name 2
|
Triggering a test build |
This comment has been minimized.
This comment has been minimized.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeMacOS: Desktop |
@grgia According to #49036 (comment), I think we should show At the meantime, the avatar should also be single right? As it's the case of |
|
@eh2077 I agree with those, but this PR doesn't update which avatars are displayed, it mainly shows both names if both avatars are present. Should we tackle the single expense avatar case in a separate PR or do you think that would cause a revert |
|
I also updated the logic to only show one icon for those cases for now |
Name 1 & Name 2 Name 1 & Name 2 pattern.
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
@grgia Let's say, user
|
| // For one transaction IOUs, display a simplified report icon | ||
| if (isOneTransactionReport(report?.reportID ?? '-1')) { | ||
| return [ownerIcon]; | ||
| return [managerIcon]; |
There was a problem hiding this comment.
This should match the IOU case. For IOUs we use managerIcon, for expense reports, ownerIcon
|
@grgia Please take a moment to look into this when you're free. Thanks! |
|
@eh2077 could you let me know if there's anything specific blocking this PR |
|
@grgia Long user name overflow in iOS app. |
|
Thanks for testing @eh2077, I'll push a fix |
|
@grgia I pulled the latest changes and there's still text overflow in iOS app |
|
@grgia Please take a look at the above comment when you get a chance, thank you |
|
oof okay let me take another look- |
|
@eh2077 my ios dev environment is borked rn, trying to fix it now. But this is probably a react native flex issue- I remember theres a certain style that doesnt work on ios |
|
🚧 @grgia has triggered a test build. You can view the workflow run here. |
|
@eh2077 I pushed an attempted fix, but xcode is being grrr and I can't test it |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
@grgia The display formats still look different between mobile Safari and iOS App, |
|
|
@grgia Did you get your emulator working? |
|
@grgia Friendly bump |
|
Alright I'm going to take a look at this before EOW so we can wrap this for good. Thanks for your patience |
|
@grgia Please take a look at this when you get a chance, thank you! |
|
@grgia Friendly bump |
|
@grgia Please take a look at this when you get a chance, thanks! |
|
@grgia Friendly bump |
1 similar comment
|
@grgia Friendly bump |
|
@eh2077 I'm working on a critical project right now and have my dev set up for testing that. I created a draft branch to fix these issues (since this PR was created before the broken commits), but I won't be able to update this again until I finish that PR. I apologize for the delay/ poor communication from my end. I recognize you've put work in here and you will be compensated for the review |

















This PR reverts the changes from PR #50557
Original PR - #50341
Uses Manager Icon instead of Owner icon for report headers to match the expense preview logic.
Match the number of icons shown to the report preview.
Working on Fixing these cases:
#50553
#50547
Details
Fixed Issues
$ #49956
$ #50547
$ #50553
Tests
Offline tests
QA Steps
Verify that no errors appear in the JS console
Create or locate a report preview that displays two avatars
✅ Verify that both names are displayed in
Name 1 & Name 2FormatCreate or locate a report preview that displays a single avatar
✅ Verify that single name is displayed i.e.
Name 1Open in Android and IOS
✅ Verify that both names fit
Change both names to be very long
✅ Verify that both names use
...patternPR 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop