Page MenuHomePhabricator

[native] community list item component
Needs RevisionPublic

Authored by varun on Thu, Nov 21, 9:51 AM.
Tags
None
Referenced Files
F3346346: D13994.id45929.diff
Fri, Nov 22, 8:25 AM
F3346232: D13994.diff
Fri, Nov 22, 8:01 AM
F3339970: D13994.id45931.diff
Thu, Nov 21, 9:05 PM
F3339969: D13994.id45930.diff
Thu, Nov 21, 9:05 PM
F3339968: D13994.id45929.diff
Thu, Nov 21, 9:05 PM
F3339962: D13994.id.diff
Thu, Nov 21, 9:05 PM
F3339957: D13994.diff
Thu, Nov 21, 9:05 PM
F3335850: RPReplay_Final1732217286.MP4
Thu, Nov 21, 11:30 AM
Subscribers

Details

Reviewers
ashoat
Summary

Depends on D13987

https://linear.app/comm/issue/ENG-9897/communitylistitem-component

this component will be used in the CommunityList component that I introduce next

Test Plan

tested with later diffs (not yet published) and verified that join/leave work as expected. see video

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

fix activityIndicator location

This comment was removed by varun.

the search bar placeholder text is in the following diff, where it is actually "Search communities" (see D13995)

ashoat requested changes to this revision.Thu, Nov 21, 6:50 PM

It looks like you got a lot of this from another file. If any of my feedback here applies to the original file, can you make sure to make the changes there too?

native/components/community-list-item.react.js
44–46 ↗(On Diff #45931)

What's the point of this, as opposed to just using the ThreadInfo we're passed?

61–64 ↗(On Diff #45931)

Can these be moved closer to where they're used?

139 ↗(On Diff #45931)

I'd like to iterate a bit on the design of the button here. Some thoughts:

  1. What do you think of using PrimaryButton, or perhaps building a more compact variation of it? I think it would look sleaker to have the rounded corners, and it gives us in-progress state for free
  2. I think it might look better right-aligned
  3. I'm not sure about the colors, they seem a little too basic
This revision now requires changes to proceed.Thu, Nov 21, 6:50 PM