Page MenuHomePhabricator

[native] scaffolding for CommunityJoinerModal
Needs RevisionPublic

Authored by varun on Sep 26 2024, 12:29 PM.
Tags
None
Referenced Files
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)
Sat, Nov 2, 10:35 PM
Unknown Object (File)
Fri, Nov 1, 5:36 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
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 ↗(On Diff #44610)

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.Fri, Nov 1, 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

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

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.Fri, Nov 1, 8:45 AM