web icon indicating copy to clipboard operation
web copied to clipboard

Unavailable quotes drawer

Open gomesalexandre opened this issue 1 year ago • 2 comments

Overview

Currently in all envs, swapper displays some non-actionable quotes:

image

While some of these errors are something you can "fix" as a user (e.g not enough native asset, not enough fee asset, minimum not met etc), some others aren't really errors, and only mean the current selection is incompatible for a given swapper (cross-chain not supported, chain not supported, pair not supported) aren't really errors per se in the sense nothing failed upstream as a result of.

This PR is to add a drawer that will group all "unavailable quotes" (cross-chain not supported, chain not supported, pair not supported) into a drawer.

References and additional details

N/A

Acceptance Criteria

  • A drawer is added that groups all unavailable quotes in their own collapsable drawer, collapsed by default
  • Quotes that errored because of "wrong user state" (not enough balance, not enough fees, minimum not met...) are still displayed outside of the drawer

Need By Date

No response

Screenshots/Mockups

No response

Estimated effort

No response

gomesalexandre avatar Oct 24 '24 16:10 gomesalexandre

to fix your trouble check this solution click maybe this will solve your problem.

Olowojaye avatar Oct 26 '24 21:10 Olowojaye

image

0xean avatar Oct 28 '24 22:10 0xean

Here is a mock for this: https://www.figma.com/design/ZkRqq0Bk1glXqIW776IAtr/Portals?node-id=636-3893&node-type=frame&t=ftzpLksOo2ZyCmx0-0

The empty state icon is from tabler <TbRoute />

reallybeard avatar Oct 28 '24 22:10 reallybeard