-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add ReportActionItemThread and Thread Replies UI
#18274
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
Conversation
| 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 |
stitesExpensify
left a comment
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 🚀
|
| </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 thesereportIDandparentReportActionIDrespectively.Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
emulator won't connect to wifi on web only, no screenshot for now
Desktop
iOS
Android