Page MenuHomePhabricator

[native] add farcaster avatar URL to registration workflow
Needs RevisionPublic

Authored by varun on Aug 15 2024, 10:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 12, 10:20 AM
Unknown Object (File)
Wed, Sep 11, 2:10 AM
Unknown Object (File)
Mon, Sep 9, 2:20 PM
Unknown Object (File)
Mon, Sep 9, 12:43 PM
Unknown Object (File)
Thu, Sep 5, 1:52 PM
Unknown Object (File)
Thu, Sep 5, 3:14 AM
Unknown Object (File)
Sat, Aug 31, 2:49 PM
Unknown Object (File)
Tue, Aug 27, 6:38 AM
Subscribers

Details

Reviewers
ashoat
tomek
Summary

Depends on D13099

Test Plan

tested later in stack by successfully setting avatar from farcaster

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun held this revision as a draft.
varun published this revision for review.Mon, Aug 19, 7:19 AM
varun added reviewers: ashoat, tomek.
ashoat requested changes to this revision.Tue, Aug 20, 12:40 PM

When we last talked about this work, we were considering two options on how to proceed. It looks like you've taken the second approach – can you explain a bit about how you derisked this part?

To do this, we'd need to form a native media selection which might involve first saving the file to the file system

Curious if you've tested on both iOS and Android. Requesting changes to get an answer to the above (although might be best to document on Linear?)

native/account/registration/connect-farcaster.react.js
136

What's the significance of pfpURL? getFCAvatarURLs appears to be introduced in the prior diff, but it's still in draft form

150

Why do we use null here but undefined in setCachedSelections below?

This revision now requires changes to proceed.Tue, Aug 20, 12:40 PM
native/account/registration/connect-farcaster.react.js
136

pfpURL is the URL to the farcaster avatar provided by neynar

150

i used undefined below because i had typed farcasterAvatarURL as +farcasterAvatarURL?: string, in CachedUserSelections (further below in diff).

i can't think of a good reason to not change it to ?string and use null below, so will fix

When we last talked about this work, we were considering two options on how to proceed. It looks like you've taken the second approach – can you explain a bit about how you derisked this part?

To do this, we'd need to form a native media selection which might involve first saving the file to the file system

Curious if you've tested on both iOS and Android. Requesting changes to get an answer to the above (although might be best to document on Linear?)

https://linear.app/comm/issue/ENG-9182/allow-users-to-set-farcaster-avatar-on-native we can discuss further here. i've opted for option 1

native/account/registration/connect-farcaster.react.js
136

What's the significance of this parameter to getFCAvatarURLs? Why is it null here? When should it be null and when shouldn't it be?

When we last talked about this work, we were considering two options on how to proceed. It looks like you've taken the second approach – can you explain a bit about how you derisked this part?

To do this, we'd need to form a native media selection which might involve first saving the file to the file system

Curious if you've tested on both iOS and Android. Requesting changes to get an answer to the above (although might be best to document on Linear?)

https://linear.app/comm/issue/ENG-9182/allow-users-to-set-farcaster-avatar-on-native we can discuss further here. i've opted for option 1

Okay, sure. When you've finished responding to my last review (whether on Linear or here), feel free to re-request review. Make sure you respond to all parts