-
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
Add ReportActionItemThread
and Thread Replies UI
#18274
Conversation
@@ -244,6 +246,7 @@ class ReportActionItem extends Component { | |||
toggleReaction={this.toggleReaction} | |||
/> | |||
)} | |||
<ReportActionItemThread numberOfReplies={7} mostRecentReply={'1:03pm'} icons={ReportUtils.getIcons(this.props.report, this.props.personalDetails)} /> |
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 how are we handling the conditional rendering of this. Would we just check if this.props.action.childReportID
exists?
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.
ReportUtils.js isThread?
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.
Discussed 1:1, yes just checking this.props.action.childReportID
should suffice to render this item.
this is definitely a bug, @shawnborton would you mind confirming this? How should we handle mobile sizes? Also, say you have |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
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.
LGTM!
Awesome, in the interest of time i'm going to merge this. Its still only visible under beta so we can test it out properly before showing it to everyone. Since the code concerns were handled I'm going to go ahead and merge this. If there are any pending concerns feel free to raise them and we'll tackle them in a follow up. |
@chiragsalian @stitesExpensify can you please create a follow up issue for my design comments above? Let's try to address that ASAP please! |
Oh I saw @grgia already created the issue, woo! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Yeah, do create the followup issues.
|
🚀 Deployed to staging by https://github.com/chiragsalian in version: 1.3.14-0 🚀
|
@stitesExpensify No QA needed here, correct? |
Sorry I missed this, we should run the test steps as QA here |
@stitesExpensify see linked issue as we are still checking all the platforms |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.14-14 🚀
|
@@ -254,6 +264,14 @@ class ReportActionItem extends Component { | |||
/> | |||
</View> | |||
)} | |||
{shouldDisplayThreadReplies && ( | |||
<ReportActionItemThread |
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 has caused a small visual issue in #19398.
Reply
text wasn't aligned with composer when editing, ReportActionItemThread should have the same styles applied as ReportActionItemReactions above: this.props.draftMessage ? styles.chatItemReactionsDraftRight : {}
Details
Fixed Issues
$ #18754
Tests
Tested with this snippet and changing values:
reportActions_<reportID>
to find one). We will call thesereportID
andparentReportActionID
respectively.Offline tests
QA Steps
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
Mobile Web - Chrome
Mobile Web - Safari
emulator won't connect to wifi on web only, no screenshot for now
Desktop
iOS
Android