Page MenuHomePhabricator

[web] Include `Relationship` tab in thread settings modal
ClosedPublic

Authored by jacek on Jul 29 2022, 3:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 11:38 AM
Unknown Object (File)
Fri, Nov 8, 8:37 PM
Unknown Object (File)
Fri, Nov 8, 8:37 PM
Unknown Object (File)
Fri, Nov 8, 8:37 PM
Unknown Object (File)
Tue, Nov 5, 2:06 AM
Unknown Object (File)
Oct 5 2024, 3:10 AM
Unknown Object (File)
Oct 5 2024, 3:09 AM
Unknown Object (File)
Oct 5 2024, 3:09 AM

Details

Summary

Display relationship tab in thread settings modal if there are some relationship actions available.
It modifies size of the modal so it has now the same size in every tab - as we discussed it already with Ashoat.

Screenshot_Google Chrome_2022-07-29_122412.png (665×460 px, 25 KB)

Test Plan

In personal threads additional tab "Relationship" should appear in thread settings modal. The actions should be exactly the same as in mobile app.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek added a reviewer: ashoat.

Adding @ashoat because this diff adds new UI (and a tiny bit of copy).

web/modals/threads/settings/thread-settings-modal.react.js
35 ↗(On Diff #15092)

How does it look like when all four tabs are available?

179 ↗(On Diff #15092)

I guess that && otherUserInfo was added to satisfy Flow, because availableRelationshipActions is always empty when !otherUserInfo.

web/modals/threads/settings/thread-settings-modal.react.js
35 ↗(On Diff #15092)

Still looks good in my opinion:

Screenshot_Google Chrome_2022-07-29_153615.png (651×432 px, 26 KB)

179 ↗(On Diff #15092)

Exactly!

This revision is now accepted and ready to land.Jul 29 2022, 8:47 AM

rebase & remove unnecessary props