Page MenuHomePhabricator

[web] Remove friend request suggestion in sidebar chats
ClosedPublic

Authored by adar on Nov 29 2022, 2:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 5:17 PM
Unknown Object (File)
Fri, Jun 21, 7:13 AM
Unknown Object (File)
Thu, Jun 20, 8:00 PM
Unknown Object (File)
Wed, Jun 12, 6:25 PM
Unknown Object (File)
Sun, Jun 9, 7:48 AM
Unknown Object (File)
May 18 2024, 12:02 PM
Unknown Object (File)
May 16 2024, 12:18 PM
Unknown Object (File)
Apr 23 2024, 12:06 AM
Subscribers

Details

Summary

Linear

previously the RelationshipPrompt component was getting rendered in sidebar chats on web. This diff adds the proper check to prevent this behavior.

Test Plan

Before:

Screen Shot 2022-11-29 at 5.07.41 PM.png (2×5 px, 592 KB)

After:

Screen Shot 2022-11-29 at 5.16.19 PM.png (2×5 px, 571 KB)

Screen Shot 2022-11-29 at 5.16.23 PM.png (2×5 px, 582 KB)

Test ensuring that relationship prompt still shows on Personal threads

Screen Shot 2022-11-30 at 2.00.50 PM.png (2×5 px, 606 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

adar edited the test plan for this revision. (Show Details)
adar added reviewers: atul, tomek.
Harbormaster returned this revision to the author for changes because remote builds failed.Nov 29 2022, 2:38 PM
Harbormaster failed remote builds in B13858: Diff 18981!
web/chat/chat-message-list.react.js
193 ↗(On Diff #18981)

here i only initialized to null to achieve consistency with native, if that's at all important

Regarding the test plan, you also have to check if the prompt is still displayed in PERSONAL threads.

web/chat/chat-message-list.react.js
193 ↗(On Diff #18981)

It's ok both ways

This revision is now accepted and ready to land.Nov 30 2022, 5:43 AM
In D5761#172111, @tomek wrote:

Regarding the test plan, you also have to check if the prompt is still displayed in PERSONAL threads.

ah yes, updated the test plan.