-
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
Subheader update and parent navigation #20484
Conversation
lint is failing on something unrelated which is being tackled here |
I wasn't able to test on android. Can someone test this on android for me? |
@abdulrahuman5196 @youssef-lr One of you needs to 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] |
@mananjadhav @youssef-lr One of you needs to 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] |
src/libs/ReportUtils.js
Outdated
function getChatRoomSubtitle(report) { | ||
if (isThread(report)) { | ||
if (!getChatType(report)) { | ||
return `From ${getDMRootReportName(report)}`; |
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.
I moved this method down since it refers getDMRootReportName
. The only change to this method is this line and this one.
I'm not sure when i requested two puller bears. I think manan was added accidentally so I'll remove him. |
@chiragsalian Could you kindly add the issue description here or clone the issue to Expensify/App? I don't have access to view Expensify/Expensify issues. And is the PR ready for review, wanted to confirm if any pending actions are left? |
@chiragsalian Is this the expected behaviour to show 'owes' in the subheader for thread created from IOU? Screen.Recording.2023-06-14.at.1.24.36.AM.mov |
Interesting, i didn't test IOU too much. I'll ping someone and ask about IOU expectations. It also can be refined as needed in future so I'm not worrying too much about it. For now can you confirm if the PR looks fine for everything not IOU related? Meanwhile I'll hit up others and discuss about the IOU expectations. |
Sure. As far as i tested in web there weren't any other issues. Will work on testing on all other platforms and update the checklist soon. |
I also just updated the link to use |
Reviewer Checklist
Screenshots/VideosWebUntitled.33.mp4Mobile Web - ChromeUntitled.30.mp4Mobile Web - SafariUntitled.34.mp4DesktopUntitled.31.mp4iOSUntitled.32.mp4AndroidUntitled.35.mp4 |
Updated the code, can you check again @abdulrahuman5196. |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours @chiragsalian / @grgia
🎯 @abdulrahuman5196, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #20723. |
Cool, i'll self merge since @grgia has approved it previously and the changes are minor since then. Edit: Looks like i can't self-merge it. I'll request someone else to merge it. |
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 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/PauloGasparSv in version: 1.3.28-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
accessibilityLabel={subtitle} | ||
accessibilityRole="link" | ||
> | ||
<Text |
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.
When we added this component, the content is stretched and hence clicking the blank space was opening user chat instead of the chat details. This caused a regression here.
I think the issue occurred because we copy pasted the Text content, which didn't have the click behavior earlier.
Details
The inability to go "back" to where the thread originated was quickly flagged as a major problem by EC3 users. This has spawned a long conversation on how to normalize headers to include a "parent link". (the rest was discussed on slack)
TLDRs:
From <root report persons name/email>
. The same translates to group DM where it shows youFrom <root report group of persons name/email>
. So in the root report if you see "Marc", the in the subheader of the child reports you should see "From Marc"From <parent report> in <workspace>
.From ...
should look like a link (including the "From" from what i gather)From ...
link should go up one parent level.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/290078
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
From <full name/email>
and it looks like a link. Thefull name/email
should be the same as what you see on the parent rows first line.From <parent report> in <workspace name>
and it looks like a link.UserA, UserB
.From <UserA>, <UserB>
and it looks like a link. Thefull name/email
of the thread subheader should sayFrom UserA, UserB
.Sample DM/group DM screenshot.
If the parent report looks like this, (Notice the first line says
Marc, Rocio
)Confirm the threaded UI matches what was on the parent report i.e.,
From Marc, Rocio
Offline tests
You can test the above same steps and it should work offline
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
DM thread
Workspace thread
Mobile Web - Chrome
DM thread
Workspace thread
Mobile Web - Safari
Desktop
Dm thread
Workspace thread
iOS
DM thread
Workspace thread
Android