-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Avatars] Revert PR #50557 If two avatars, use Name 1 & Name 2
pattern.
#50697
base: main
Are you sure you want to change the base?
Conversation
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 |
@@ -2371,7 +2371,7 @@ function getIcons( | |||
|
|||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Should we fix this? Please also help resolve the conflicts. |
triggered a new test build... |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
@grgia I tested again and confirmed that the icon is working as expected. The following example - User A submitted an expense to Eric Han. From both ends of them, the sender icon is User A, which is expected. But now I found that the owes text seems wrong. The staging has the same issue and I also agree we don't touch IOU here, so I think it can be handled separately. |
@grgia Please take a look at the comments when you get a chance, thank you |
Going to take a look at these comments, thanks @eh2077 |
It's the end of the day for me, so I'll get to this tomorrow. |
@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 |
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 2
FormatCreate or locate a report preview that displays a single avatar
✅ Verify that single name is displayed i.e.
Name 1
Open 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop