Page MenuHomePhabricator

[native] introduce getFarcasterAccountAlreadyLinkedAlertDetails
ClosedPublic

Authored by ginsu on May 3 2024, 11:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 8, 9:39 PM
Unknown Object (File)
Sun, Apr 6, 12:07 PM
Unknown Object (File)
Sun, Apr 6, 7:53 AM
Unknown Object (File)
Thu, Apr 3, 9:50 AM
Unknown Object (File)
Thu, Apr 3, 3:28 AM
Unknown Object (File)
Thu, Apr 3, 3:24 AM
Unknown Object (File)
Mon, Mar 31, 3:51 PM
Unknown Object (File)
Mon, Mar 31, 12:38 AM
Subscribers

Details

Summary

Based on feedback in D11863, I want to factor out the logic for this error message since it will be needed in several places.

Test Plan

flow + confirmed the error message was the same

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/utils/alert-messages.js
34

Took a second to have all of these be exported in the bottom of the file, which is a more common pattern I see in our codebase

ginsu requested review of this revision.May 3 2024, 11:54 PM
ashoat added inline comments.
native/account/registration/connect-farcaster.react.js
114

Just wondering, why rename body with message?

native/utils/alert-messages.js
55

Should all of these start with a lowercase letter? I thought we only use uppercase for React components (and sometimes all caps for constants)

This revision is now accepted and ready to land.May 4 2024, 11:19 AM
native/account/registration/connect-farcaster.react.js
114

I wanted this to match the AlertDetails type. However, I should have also updated the queuedAlert state to use this type too. Will make this update

native/utils/alert-messages.js
55

address comments + rebase before landing