Page MenuHomePhabricator

[native] scaffolding for CommunityJoinerModal
AbandonedPublic

Authored by varun on Sep 26 2024, 12:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 30, 9:21 AM
Unknown Object (File)
Sat, Nov 30, 4:46 AM
Unknown Object (File)
Sun, Nov 17, 5:18 PM
Unknown Object (File)
Sat, Nov 16, 9:02 PM
Unknown Object (File)
Thu, Nov 14, 2:59 PM
Unknown Object (File)
Fri, Nov 8, 11:06 PM
Unknown Object (File)
Fri, Nov 8, 11:06 PM
Unknown Object (File)
Nov 2 2024, 10:35 PM
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