[ReportPreview / Text] When showing two avatars, also show both display names with tooltip#50341
[ReportPreview / Text] When showing two avatars, also show both display names with tooltip#50341puneetlath merged 5 commits intomainfrom
Conversation
|
@eh2077 I assigned you since this is code from the original PR, I'm breaking it into pieces |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safariweb.mov |
eh2077
left a comment
There was a problem hiding this comment.
The changes looks good just a minor comment.
I'll complete remain recordings early tmr as it's EOD for me.
| {personArray.map((fragment) => ( | ||
| <ReportActionItemFragment | ||
| style={[styles.flex1]} | ||
| key={`person-${action?.reportActionID}-${actorAccountID}`} |
There was a problem hiding this comment.
I think it's better to use index suffix like before. Because it's possible that
personArray.length === 2 and isReportPreviewAction is false right?
There was a problem hiding this comment.
To clarify the above comment, we may be able to remove the isReportPreviewAction check entirely
There was a problem hiding this comment.
Got it. For the lint error, maybe we can just disable the lint by adding
// eslint-disable-next-line react/no-array-index-key
There was a problem hiding this comment.
Yeah I see what you mean, updating now.
|
@puneetlath 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] |
|
✋ 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.0.47-1 🚀
|
|
This PR is failing for Web because of issue #50547 |
|
Reverted because of these reasons. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.47-4 🚀
|






Details
We Reverted https://github.com/Expensify/App/pull/49172/files#diff-f0268faeaefd2de8c31b3f9ceba588c49478c66413b82b3285b0704b820a57a8
I'm breaking it into smaller PRs to avoid blockers- this PR allows for displaying both names if two avatars are shown. It does not change what avatars are shown.
Fixed Issues
Part of #49036
PROPOSAL:
Tests
Offline tests
QA Steps
Name 1 & Name 2FormatName 1PR 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