-
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
Remove pending-remove thread from LHN #21854
Remove pending-remove thread from LHN #21854
Conversation
Additional video showing the not found page when we access the removed thread. Screen.Recording.2023-06-29.at.15.16.16.mov |
message: [ | ||
{ | ||
moderationDecisions: [{decision: lodashGet(reportAction, 'message[0].moderationDecisions[0].decision')}], | ||
}, | ||
], |
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.
Added this so SidebarLinks rerender when the moderationDecisions
value changed
), | ||
}), | ||
), | ||
), |
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.
reportActionPropTypes
have a required property (specifically inside reportActionFragmentPropTypes
), but the reportActions
selector only includes errors
and message.moderationDecisions
which will give a warning.
src/libs/ReportUtils.js
Outdated
if (getPolicyType(report, policies) === CONST.POLICY.TYPE.FREE) { | ||
if (getPolicyType(report, allPolicies) === CONST.POLICY.TYPE.FREE) { |
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.
Please revert this and all other instances that change the source of policies. I seen instances where what we pass as a parameter is not in onyx e.g. something that we are still about to create. I don't think this applies here but it's better to keep the changes minimal.
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.
Yes, it doesn't apply here, but I did that so we don't need to connect the Policy Onyx in withReportOrNotFound
. So, let's revert it and connect the policy Onyx in withReportOrNotFound
?
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.
Yeah that's safer
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.
Done
Reviewer Checklist
Screenshots/VideosWebweb.mp4Mobile Web - Chromemweb-chrome.mp4Mobile Web - Safarimweb-safari.mp4Desktopdesktop.mp4iOSios.mp4Androidandroid.mp4 |
@bernhardoj Can you please resolve that conflict? |
@s77rt Conflicts solved! |
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! 🚀
🎀 👀 🎀 C+ reviewed
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.3.35-2 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.35-5 🚀
|
1 similar comment
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.35-5 🚀
|
Details
A message that is flagged as harassment/assault will be removed from the chat. In case it's a thread, we also want to remove the thread report on LHN. Additionally, we don't want the user to be able to access the report by deeplink/type the URL in the browser address bar.
Fixed Issues
$ #21497
PROPOSAL: #21497 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisites: User B sends a message to User A
The below step is for User A
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
Screen.Recording.2023-06-29.at.14.52.46.mov
Mobile Web - Chrome
Screen.Recording.2023-06-29.at.15.15.09.mov
Mobile Web - Safari
Screen.Recording.2023-06-29.at.15.11.14.mov
Desktop
Screen.Recording.2023-06-29.at.14.56.33.mov
iOS
Screen.Recording.2023-06-29.at.15.31.49.mov
Android
Screen.Recording.2023-06-29.at.15.12.39.mov