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
Unknown Object (File)
Fri, Jan 3, 6:23 AM
Unknown Object (File)
Fri, Dec 20, 9:56 PM
Unknown Object (File)
Fri, Dec 20, 5:57 AM
Unknown Object (File)
Sat, Dec 14, 5:55 PM
Unknown Object (File)
Sat, Dec 14, 5:55 PM
Unknown Object (File)
Sat, Dec 14, 5:55 PM
Unknown Object (File)
Sat, Dec 14, 5:55 PM
Unknown Object (File)
Sat, Dec 14, 5:55 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
No Lint Coverage
Unit
No Test Coverage

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