Page MenuHomePhabricator

[native] scaffolding for CommunityJoinerModal
AbandonedPublic

Authored by varun on Sep 26 2024, 12:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 2:54 AM
Unknown Object (File)
Mon, Dec 16, 2:54 AM
Unknown Object (File)
Mon, Dec 16, 2:54 AM
Unknown Object (File)
Mon, Dec 16, 2:54 AM
Unknown Object (File)
Mon, Dec 16, 2:54 AM
Unknown Object (File)
Fri, Dec 6, 1:40 AM
Unknown Object (File)
Thu, Dec 5, 3:54 AM
Unknown Object (File)
Wed, Dec 4, 10:52 AM
Subscribers

Details

Reviewers
ashoat
Summary

In next diff, I will introduce a handler component responsible for navigating to this modal if a user does not have an associated farcaster account (logic will be further refined later in stack to not display if existing user has just declined to connect a farcaster account and to display if farcaster user is only in 3 or fewer communities)

Test Plan

Diff Detail

Repository
rCOMM Comm
Branch
directory (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat requested changes to this revision.Sep 26 2024, 12:51 PM
ashoat added inline comments.
native/components/community-joiner-modal.react.js
31

Never use colors directly like this

This revision now requires changes to proceed.Sep 26 2024, 12:51 PM
native/components/community-joiner-modal.react.js
66 ↗(On Diff #45571)

this alert will be replaced in a later diff with a new modal from which the user can join the selected community

ashoat requested changes to this revision.Nov 1 2024, 8:45 AM

Please update the test plan to reflect your recent changes. Would be good to see a video of the whole experience

native/components/community-joiner-modal.react.js
52 ↗(On Diff #45572)

What's the point of using a Set here? We're storing a list of objects, and given object comparison is by reference in JS, I don't think the Set will have any value as opposed to just an array

56 ↗(On Diff #45572)

Hmm... wondering if we really need to redo this call whenever the deps change. I'm worried that in production, something will change (eg. the keyserver socket will reconnect) and it will cause the UI to jump while the results are repopulated. Can you check if the UI currently jumps when we call setCommunities a second time here?

This revision now requires changes to proceed.Nov 1 2024, 8:45 AM