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

implement offramp summary popup #394

Conversation

Sharqiewicz
Copy link
Contributor

No description provided.

@Sharqiewicz Sharqiewicz linked an issue Jan 20, 2025 that may be closed by this pull request
Copy link

netlify bot commented Jan 20, 2025

Deploy Preview for pendulum-pay ready!

Name Link
🔨 Latest commit 7810dd6
🔍 Latest deploy log https://app.netlify.com/sites/pendulum-pay/deploys/679a455cc148d1000836abbc
😎 Deploy Preview https://deploy-preview-394--pendulum-pay.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

Really nice job @Sharqiewicz, it looks amazing 🙏

It's not defined in the ticket but I would suggest we don't close the offramp dialog when the user clicks on 'Continue to partner'. This has some advantages:

  • The user doesn't see that the exchange rates/quotes still continuously change/refresh in the base form.
  • The user can switch back and forth between the anchor page and vortex to double check the expected values

I would continue showing the info dialog all the way until we switch over to the progress page. WDYT @pendulum-chain/devs and also @pendulum-chain/product?

src/components/OfframpSummaryDialog/index.tsx Outdated Show resolved Hide resolved
src/components/OfframpSummaryDialog/index.tsx Outdated Show resolved Hide resolved
src/components/OfframpSummaryDialog/index.tsx Outdated Show resolved Hide resolved
@prayagd
Copy link
Collaborator

prayagd commented Jan 22, 2025

I would continue showing the info dialog all the way until we switch over to the progress page. WDYT

i agree to this suggestion

@prayagd
Copy link
Collaborator

prayagd commented Jan 22, 2025

couple of comments

  • Change You're offramping to You're selling, now that we are call everything sell
  • There is lot of delay if i close the pop-up change the input amount and again click on confirm until the pop-up reappears
  • For the Partner thing please follow the alignment move the link to the right below similar to how other details are aligned to right and also please remove the "-" from partner
  • Both partner links are wrong please make mykobo - https://www.mykobo.co/ anclap - https://home.anclap.com/
  • I know not mentioned in the acceptance criteria is it possible to make the links? clicking them should open the website in new page

@Sharqiewicz
Copy link
Contributor Author

@prayagd @ebma @gianfra-t The comments are addressed ✅

Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

Looks and feels fantastic, great job @Sharqiewicz 🙏

One bug I noticed: When I have the summary dialog open and click on the 'x' to close it, the 'Confirm' button keeps spinning. As a user, I would expect that the I can interact with the form again, change amounts, and click on 'Confirm' again to open the dialog with a fresh quote. Currently I have to refresh the page.

@gianfra-t
Copy link
Contributor

Looks cool 😎.

Besides the thing @ebma mentioned, I noticed that when I rejected the approve transaction and later clicked "Try Again" it brought me to the swap page, but the summary popup was still there. I think it should behave similar to closing it when there is a failure.

Also, do you think we could bring the signing box to the front focus too? Not greyed out, I mean. I guess this is more opinionated.
image

@Sharqiewicz
Copy link
Contributor Author

@gianfra-t I think the popup should only appear after the ARS approve tx is signed so it doesn't interfere with the SigningBox

@gianfra-t
Copy link
Contributor

Even better solution! Thanks.

Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

Let's follow up with the bug I reported on Slack after merging this.

@Sharqiewicz can you please create a ticket for the remaining issue (continue to partner button pending after closing and reopening the offramp summary)?

@Sharqiewicz Sharqiewicz merged commit 0fbe6c3 into polygon-prototype-staging Jan 30, 2025
5 checks passed
@ebma ebma deleted the 348-implement-new-changes-after-the-confirm-button branch January 30, 2025 14:58
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.

Implement new changes after the Confirm button
4 participants