Skip to content

feat: add bottom sheet dialog#6551

Merged
0xApotheosis merged 35 commits intodevelopfrom
bottom-sheet-dialog
Apr 2, 2024
Merged

feat: add bottom sheet dialog#6551
0xApotheosis merged 35 commits intodevelopfrom
bottom-sheet-dialog

Conversation

@reallybeard
Copy link
Copy Markdown
Contributor

Description

This adds the new bottom sheet dialog for mobile.

Right now this is only hooked up on send, receive, and asset select modal.

Pull Request Type

  • 🐛 Bug fix (Non-breaking Change: Fixes an issue)
  • 🛠️ Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
  • 💅 New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #6434

Risk

High Risk PRs Require 2 approvals

high risk, this touched the send modal. So this needs to be tested.

What protocols, transaction types or contract interactions might be affected by this PR?

Testing

Engineering

Operations

You are able to use send, receive, and select assets in the mobile app as before with the normal modal.

Its important we test the send flow end to end, to make sure it works as normal.

Screenshots (if applicable)

IMG_0317
IMG_0318
IMG_0319

@reallybeard reallybeard requested a review from a team as a code owner March 25, 2024 16:08
@reallybeard reallybeard marked this pull request as draft March 25, 2024 16:09
@reallybeard reallybeard marked this pull request as ready for review March 25, 2024 16:18
Comment thread src/index.tsx
Comment on lines +13 to +17
const rootElement = document.getElementById('root')!
const root = createRoot(rootElement)

rootElement.setAttribute('vaul-drawer-wrapper', '')
rootElement.classList.add('app-height')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we have to set this here? Feels like a file we shouldn't touch if we can avoid

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Its supposed to be set on the top level div wrapping the app. But I can prob wrap the entire app in another div, but will have to do a bunch of testing again to see if it still works as expected.

Copy link
Copy Markdown
Contributor Author

@reallybeard reallybeard Mar 29, 2024

Choose a reason for hiding this comment

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

@gomesalexandre should I move this off the #root component? Or can we just leave as is, i'm worried if I move it to another div it might screw something up.

Comment thread src/components/Modals/Send/AddressInput/AddressInput.tsx
Comment thread src/components/Modal/components/Dialog.tsx Outdated
Copy link
Copy Markdown
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

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

First pass, LGTM for the most part as this mostly renames the Modal vernacular to Dialog - to be followed up by a regression test of all the diffed surface area

Copy link
Copy Markdown
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

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

Tested on desktop and couldn't find any regressions.

Asset search in asset page is still happy

image image

Send asset search modal is still happy

image image

Receive is still happy

image

Swapper asset search is still happy

image image

Sends are still happy

image image

Not a regression but noticed we're initially in an errored state @reallybeard, I'll take a look and fix this as a separate one-liner of sorts

image image image image

QR code scanning is still happy

Not a regression from this PR as I could repro in develop but noted the modal re-renders/re-animates 3 times before being in a usable state.

image image image image

Comment thread src/components/Modals/Send/AddressInput/AddressInput.tsx Outdated
Copy link
Copy Markdown
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

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

Tested on mobile app and couldn't find any regressions in sends (including QR codes), receives, swapper and asset search 🎉

Great work on this sexy UI rework ser!

Copy link
Copy Markdown
Member

@0xApotheosis 0xApotheosis left a comment

Choose a reason for hiding this comment

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

Code looks good.

Noticed one issue that we probably want to fix before we merge the back button is a dead click:

back-button-dead.mp4

@reallybeard
Copy link
Copy Markdown
Contributor Author

Code looks good.

Noticed one issue that we probably want to fix before we merge the back button is a dead click:

back-button-dead.mp4

fixed

@0xApotheosis 0xApotheosis merged commit 56c2d84 into develop Apr 2, 2024
@0xApotheosis 0xApotheosis deleted the bottom-sheet-dialog branch April 2, 2024 00:45
0xApotheosis added a commit that referenced this pull request Apr 2, 2024
0xApotheosis added a commit that referenced this pull request Apr 2, 2024
0xApotheosis added a commit that referenced this pull request Apr 2, 2024
@reallybeard reallybeard mentioned this pull request Apr 2, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a new draggable modal for mobile

3 participants