Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: redesign connection flow #5874

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

kyranjamie
Copy link
Collaborator

@kyranjamie kyranjamie commented Sep 25, 2024

Try out Leather build 371ceebExtension build, Test report, Storybook, Chromatic

Closes leather-io/issues#283

This PR implements the redesigned getAddresses flow. Using the Approver UX that's now in the design system. I've also added a warning in the inpage.ts to alert app devs they should upgrade.

Screenshots

Light Dark Switch account
image image image

Demo

2024-09-25-000296.mp4

Requested by link

This opens the page that requested the action, not a new page.

2024-10-02-000307.mp4

@kyranjamie kyranjamie force-pushed the feat/redesign-get-addresses branch 2 times, most recently from 873180e to 59d6da9 Compare September 25, 2024 09:45
@pete-watters
Copy link
Contributor

Nice work 👍 LGTM on initial glance

@kyranjamie kyranjamie force-pushed the feat/redesign-get-addresses branch from 59d6da9 to 138702a Compare September 25, 2024 10:21
Copy link
Contributor

@fbwoolf fbwoolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm ...should the icon you are adding here be shared form the UI lib?

@kyranjamie
Copy link
Collaborator Author

should the icon you are adding here be shared form the UI lib?

It's not really an icon like the others, just an illustration

@fbwoolf
Copy link
Contributor

fbwoolf commented Sep 25, 2024

It's not really an icon like the others, just an illustration

We do have an assets-web folder in the UI lib so that is confusing?

@kyranjamie
Copy link
Collaborator Author

What's the purpose of that folder exactly? For assets that belong in the ui library? Is it supposed to be that all image assets go there, even if they don't correspond to a given ui component?

@fbwoolf
Copy link
Contributor

fbwoolf commented Sep 25, 2024

What's the purpose of that folder exactly? For assets that belong in the ui library? Is it supposed to be that all image assets go there, even if they don't correspond to a given ui component?

Tbh, I don't know. @pete-watters I believe you created it? It was part of the build when I started working on icons.

@pete-watters
Copy link
Contributor

What's the purpose of that folder exactly? For assets that belong in the ui library? Is it supposed to be that all image assets go there, even if they don't correspond to a given ui component?

Tbh, I don't know. @pete-watters I believe you created it? It was part of the build when I started working on icons.

@edgarkhanzadian added it when first building the UI package. It's similar to public/assets in the extension, containing web only static assets .png images, font files etc.

There are both an icons and illustration folder there. I would put this asset in assets/icons along with the other .svg files if it was being shared with native but as it's just used on web, I think it's OK where it is now

Copy link
Contributor

@alter-eggo alter-eggo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, great to see that animations 💪
I only feel like we can do them a little bit faster when show connection page?

@kyranjamie kyranjamie force-pushed the feat/redesign-get-addresses branch 2 times, most recently from 4a3d089 to f898af4 Compare September 27, 2024 16:00
@kyranjamie kyranjamie marked this pull request as ready for review September 27, 2024 16:01
@kyranjamie kyranjamie force-pushed the feat/redesign-get-addresses branch 2 times, most recently from 04aecd3 to 0653e3e Compare September 27, 2024 16:07
@kyranjamie
Copy link
Collaborator Author

I only feel like we can do them a little bit faster when show connection page?

Agree, we can tune up a tad in mono

@markmhendrickson
Copy link
Collaborator

Looking good! Should we integrate Crowdin here as a first extension-side integration, for the copy?

@kyranjamie
Copy link
Collaborator Author

@markmhendrickson @fabric-8 ready for re-review

Copy link
Contributor

@fabric-8 fabric-8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good! 2 more minor questions which I think should not be regarded as blockers:

  • Some minor alignment issues within the "select account" header bar, but we should prob. handle as a separate issue? (It's a general issue and not specific to how it's being display within connect)
  • use the first/last 3 instead of 4 digits of the account addresses? I think it would help with giving the layout a bit more space and improve scan-ability. Or is there a very strong preference for the first/last 4 digits? @markmhendrickson @314159265359879 ?

@markmhendrickson

This comment was marked as resolved.

@markmhendrickson

This comment was marked as resolved.

@markmhendrickson
Copy link
Collaborator

is there a very strong preference for the first/last 4 digits?

I don't have a strong preference either way, though 4 digits does seem more common generally.

@markmhendrickson
Copy link
Collaborator

Some minor alignment issues within the "select account" header bar, but we should prob. handle as a separate issue?

I'm seeing that as well. It's indeed in production as well, though, so let's split out into its own issue: https://github.com/leather-io/issues/issues/375

image

@markmhendrickson

This comment was marked as resolved.

@markmhendrickson
Copy link
Collaborator

markmhendrickson commented Oct 3, 2024

@fabric-8 should we have the same padding for the account component below the hover effect for an account as on the sides? Or is the smaller bottom padding inevitable so that everything lines up in the non-hover state?

It appears we may have more bottom padding for this component in general.

Forgive the photo (I wasn't able to capture as a screenshot for some reason without the hover effect going away)

image image

@markmhendrickson

This comment was marked as resolved.

@markmhendrickson

This comment was marked as resolved.

markmhendrickson

This comment was marked as resolved.

@kyranjamie
Copy link
Collaborator Author

kyranjamie commented Oct 4, 2024

  • I've migrated from position: sticky to position: fixed per your comment @markmhendrickson. I don't necessarily think one is more correct than the other, as the latter adds a few additional complexities/assumptions to deal with and bounce is just an OS feature, but adjusted here. There's a lot more to it, we now need a "listener" to get the action bar height so we can pad the scroll sufficiently. Also required fixes in Storybook to prevent it going outside the bounds
  • I've padded the bottom so the hover doesn't look so tight, Ginny agrees it looks better, so its been design reviewed 🙃
  • If the user navigates away from the tab, we'll focus them back when they confirm the connection

@kyranjamie kyranjamie force-pushed the feat/redesign-get-addresses branch from 1679c6a to 00a6b15 Compare October 4, 2024 07:40
@kyranjamie kyranjamie force-pushed the feat/redesign-get-addresses branch 2 times, most recently from e54b712 to 9c56e83 Compare October 4, 2024 08:13
@markmhendrickson

This comment was marked as resolved.

markmhendrickson

This comment was marked as resolved.

@kyranjamie kyranjamie force-pushed the feat/redesign-get-addresses branch from 9c56e83 to 371ceeb Compare October 4, 2024 12:06
Copy link
Collaborator

@markmhendrickson markmhendrickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@kyranjamie kyranjamie added this pull request to the merge queue Oct 4, 2024
Merged via the queue into dev with commit 0717b12 Oct 4, 2024
30 checks passed
@kyranjamie kyranjamie deleted the feat/redesign-get-addresses branch October 4, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants