Page MenuHomePhabricator

[native] introduce getFarcasterAccountAlreadyLinkedAlertDetails
ClosedPublic

Authored by ginsu on May 3 2024, 11:38 PM.
Tags
None
Referenced Files
F5098006: D11873.id40240.diff
Mon, Mar 31, 12:38 AM
Unknown Object (File)
Sun, Mar 30, 12:16 PM
Unknown Object (File)
Sun, Mar 30, 10:51 AM
Unknown Object (File)
Sun, Mar 30, 10:00 AM
Unknown Object (File)
Sun, Mar 30, 12:54 AM
Unknown Object (File)
Sat, Mar 29, 10:35 AM
Unknown Object (File)
Sat, Mar 29, 9:37 AM
Unknown Object (File)
Fri, Mar 28, 6:55 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/utils/alert-messages.js
34 ↗(On Diff #39779)

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 ↗(On Diff #39779)

Just wondering, why rename body with message?

native/utils/alert-messages.js
55 ↗(On Diff #39779)

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 ↗(On Diff #39779)

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 ↗(On Diff #39779)

address comments + rebase before landing