-
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
Thread subheaders and parent navigation #21092
Conversation
if (props.isSingleTransactionView) { | ||
report.ownerAccountID = lodashGet(props, ['parentReport', 'ownerAccountID'], null); | ||
report.ownerEmail = lodashGet(props, ['parentReport', 'ownerEmail'], ''); | ||
} |
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.
@luacmartins, can you check if this change and the one below where i remove parentReport from HeaderWithBackButton breaks anything with single expense/IOU view?
also cc @grgia for awareness as this code change affects report headers since we're providing source report instead of parent report to HeaderWithBackButton.
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.
Some of these checks depend on the report type, which can be different with your changes. Previously, the report type of the parentReport on a singleTransactionView was iou
or expense
and now it'll always be chat
.
The only difference that I noticed with your changes is that the Workspace subscript avatar is missing in the single transaction view. There might be others given the type checks we do in the code I linked above.
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.
Hmm i think that geogia is changing the avatar anyway. @grgia do you know what the final avatar for this single expense request is supposed to be. Is it supposed to be with a workspace subscript? If so i think i can easily add it in using the current report instead of having the parent report.
Removed the feature freeze hold. @chiragsalian it looks like @grgia left a few comments. |
@chiragsalian we have conflicts too! |
oops i missed georgia's comments earlier. I was just thinking as soon as feature freeze was done we would merge this. Either way, i replied to her comments and updated the PR to address merge conflicts. Feel free to review/merge. |
Pulled and testing a few cases locally! |
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 LGTM and tests well!
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.
Approving and sending since we have all approvals and quite a few issues are holding on this
✋ 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/thienlnam in version: 1.3.37-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.37-7 🚀
|
onPress={() => { | ||
Navigation.navigate(ROUTES.getReportRoute(props.report.parentReportID)); | ||
}} | ||
style={[styles.alignSelfStart, styles.mw100]} |
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.
@chiragsalian this was accidentally removed while fixing conflict.
I raised follow-up PR.
Details
Adding subheaders and parent navigation for child reports. The latest on where we landed for this is mentioned here
i.e.,
From <parent report name> in <workspace name>
From <parent report name>
From <parent report name>
Fixed Issues
$ #20844
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Regular DMs
From <userB full name>
. (its basicallyFrom <parent report name>
)From <userA full name>
Group DMs
From <userB>, <userC>
(i.e.,From <parent report name>
)Task DM
From <userB full name>
. (its basicallyFrom <parent report name>
)From <userA full name>
IOUs
From <userA full name>
IOUs children
From <parent IOU report name>
The parent IOU report can be seen in the LHN. In the below screenshot the parent IOU report name is "Marc Glasser owes $20.00" and so the child has that as its subheader.
From <parent IOU report name>
.Policy room threads
From <public room name> in <workspace name>
Policy room tasks
From <public room name> in <workspace name>
.Expense Chats
From <userB full name> in <workspace name>
From <workspace name>
Expense chats children
From <Expense parent report name> in <workspace name>
. The Expense parent report name can be seen in the LHN of the expense report.From <Expense parent report name> in <workspace name>
.Offline tests
None, haven't made any API changes so we're not testing optimistic/offline steps for these flows for now.
QA Steps
Same as Web-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
Without workspace (IOU report)
Without workspace (IOU report child)
With workspace (expense report)
With workspace (expense report child)
Mobile Web - Chrome
Mobile Web - Safari
Without workspace (IOU report)
Without workspace (IOU report child)
With workspace (expense report)
With workspace (expense report child)
Desktop
Without workspace (IOU report)
Without workspace (IOU report child)
With workspace (expense report)
With workspace (expense report child)
iOS
Without workspace (IOU report)
Without workspace (IOU report child)
With workspace (expense report)
With workspace (expense report child)
Android