Page MenuHomePhabricator

[native] community list item component
Needs RevisionPublic

Authored by varun on Thu, Nov 21, 9:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 1:15 PM
Unknown Object (File)
Fri, Nov 22, 8:25 AM
Unknown Object (File)
Fri, Nov 22, 8:01 AM
Unknown Object (File)
Thu, Nov 21, 9:05 PM
Unknown Object (File)
Thu, Nov 21, 9:05 PM
Unknown Object (File)
Thu, Nov 21, 9:05 PM
Unknown Object (File)
Thu, Nov 21, 9:05 PM
Unknown Object (File)
Thu, Nov 21, 9:05 PM
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

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

61–64

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

139

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