Page MenuHomePhabricator

[web] make user profile accessible from friend/block list row
ClosedPublic

Authored by ginsu on Oct 12 2023, 10:13 PM.
Tags
None
Referenced Files
F2191171: D9477.id32091.diff
Thu, Jul 4, 2:16 PM
F2186252: D9477.id32114.diff
Thu, Jul 4, 2:37 AM
Unknown Object (File)
Wed, Jul 3, 10:09 AM
Unknown Object (File)
Tue, Jul 2, 5:37 PM
Unknown Object (File)
Mon, Jul 1, 2:06 PM
Unknown Object (File)
Mon, Jul 1, 3:02 AM
Unknown Object (File)
Sun, Jun 30, 10:05 PM
Unknown Object (File)
Sun, Jun 30, 8:36 PM

Details

Summary

This diff makes the friend/block list row item interactive. When a user clicks on this component, the user profile modal will be pushed

Linear task:
https://linear.app/comm/issue/ENG-5238/make-user-profile-accessible-from-friend-list-row
https://linear.app/comm/issue/ENG-5239/make-user-profile-accessible-from-block-list-row

Depends on D9476

Test Plan

Please see the demo video below:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka.
ginsu added inline comments.
web/settings/relationship/friend-list-row.react.js
28 ↗(On Diff #31983)

We need to call stopPropagation so that the callback of the action button and the container don't fire off at the same time

https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation

web/settings/relationship/user-list-row.css
12 ↗(On Diff #31983)

Instead of creating a new color variable, I reused one with an incorrect variable name. I made a comment in the Linear task responsible for this part of the new color design system on web project and @ted and I will address this then.

https://linear.app/comm/issue/ENG-4805/relationship-friendblock-list#comment-5f5d7de3

Kind of looked like the height of the highlighted "cell" area changed when friend request was cancelled and the cell with icon took its place. Can you take a look and create an issue before landing if it's a real issue

This revision is now accepted and ready to land.Oct 16 2023, 11:43 AM