Page MenuHomePhabricator

[native] improve error handling for TagUnfollowedFarcasterChannel screen
ClosedPublic

Authored by ginsu on Mon, May 6, 12:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 18, 12:48 PM
Unknown Object (File)
Sat, May 18, 11:44 AM
Unknown Object (File)
Sat, May 18, 10:00 AM
Unknown Object (File)
Sat, May 18, 3:04 AM
Unknown Object (File)
Fri, May 17, 4:40 PM
Unknown Object (File)
Fri, May 17, 10:11 AM
Unknown Object (File)
Sun, May 12, 6:53 AM
Unknown Object (File)
Sat, May 11, 10:14 PM
Subscribers

Details

Summary

This diff improves the error handling for TagUnfollowedFarcasterChannel by providing a few error messages to the user based on the error.message that was given

Depends on D11866

Test Plan

Please see the screenshots below

Screenshot 2024-05-06 at 3.06.48 AM.png (1×1 px, 706 KB)

Screenshot 2024-05-06 at 3.07.18 AM.png (1×1 px, 703 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/community-settings/tag-farcaster-channel/tag-farcaster-channel-by-name.react.js
21 ↗(On Diff #39827)

This copy was approved in D11809

22 ↗(On Diff #39827)

This copy needs to be reviewed

ginsu requested review of this revision.Mon, May 6, 12:26 AM

padding around error message looks different than in invite links, can we make it more consistent?

image.png (402×710 px, 56 KB)

native/community-settings/tag-farcaster-channel/tag-farcaster-channel-by-name.react.js
21 ↗(On Diff #39827)

Can we avoid copy-pasting and have this defined in one place?

native/community-settings/tag-farcaster-channel/tag-farcaster-channel-utils.js
5 ↗(On Diff #39865)

This copy needs to be reviewed

padding around error message looks different than in invite links, can we make it more consistent?

Updated the padding to match the screens of invite links which had 8px of padding above and below the error message

Screenshot 2024-05-06 at 1.36.52 PM.png (1×948 px, 523 KB)

Just one comment on the copy

native/community-settings/tag-farcaster-channel/tag-farcaster-channel-utils.js
5 ↗(On Diff #39865)

Let's go with "Could not" instead of "Cannot"

This revision is now accepted and ready to land.Tue, May 7, 5:11 AM
This revision was landed with ongoing or failed builds.Tue, May 7, 10:17 AM
This revision was automatically updated to reflect the committed changes.