Page MenuHomePhabricator

[web] introduce CreateFarcasterChannelTagModal
ClosedPublic

Authored by ginsu on Jun 24 2024, 10:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 28, 9:31 AM
Unknown Object (File)
Sat, Dec 28, 9:31 AM
Unknown Object (File)
Sat, Dec 28, 9:31 AM
Unknown Object (File)
Sat, Dec 28, 9:31 AM
Unknown Object (File)
Wed, Dec 4, 3:23 AM
Unknown Object (File)
Tue, Dec 3, 5:15 AM
Unknown Object (File)
Nov 14 2024, 4:04 AM
Unknown Object (File)
Nov 13 2024, 3:28 AM
Subscribers

Details

Summary

This diff introduces a new modal component called CreateFarcasterChannelTagModal. CreateFarcasterChannelTagModal handles the user flow of creating a farcaster channel tag based on the farcaster channels you are following. Once the tag is successfully created then the modal will close and return the user to the TagFarcasterChannelModal modal

Depends on D12534

Test Plan

Please see the demo video below

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: inka, kamil.
ginsu added a reviewer: ashoat.

This diff contains copy that needs to be reviewed

web/tag-farcaster-channel/create-farcaster-channel-tag-modal.react.js
106 ↗(On Diff #41673)

This copy needs to be reviewed

115 ↗(On Diff #41673)

This copy needs to be reviewed

web/tag-farcaster-channel/tag-farcaster-channel-modal.react.js
67 ↗(On Diff #41673)

This copy needs to be reviewed

Had three concerns, but don't think any of them make sense to block this diff given @ginsu is leaving imminently:

  1. I don't loved the nested modal UX. It feels like this could've been done a single modal, without requiring the nesting of modals
  2. Some of the strings are copy-pasted, but not all of them. Given there are some differences in the UI, and given the strings are short, I figure it's okay to copy-paste
  3. The invariant might potentially fire in a scenario where the user's Farcaster account is unlinked while they're on this screen. But that seems unlikely, and I think it would be resolved with a simple refresh
This revision is now accepted and ready to land.Jun 27 2024, 12:25 PM
web/tag-farcaster-channel/create-farcaster-channel-tag-modal.css
13 ↗(On Diff #41673)

Why do we need to hardcode height here?

web/tag-farcaster-channel/create-farcaster-channel-tag-modal.css
13 ↗(On Diff #41673)

This was used to make sure that the height of the modal doesn't change when an error message is shown; however, I saw that in D12567, you mentioned we should use visibility: hidden over hardcoding the height here so will update this diff to fix this before landing

This revision was landed with ongoing or failed builds.Jul 2 2024, 1:44 PM
This revision was automatically updated to reflect the committed changes.