BitBoxSwiss / bitbox-wallet-app

The BitBoxApp for desktop and mobile.
https://bitbox.swiss/app
Apache License 2.0
245 stars 82 forks source link

frontend: sell UI components with mocked API calls. #2765

Closed shonsirsha closed 2 weeks ago

shonsirsha commented 1 month ago

Sell UI components with mocked API calls.

Mock API calls:

  1. getExchangeSellSupported (only region CH is supported)
  2. getSellExchangeSupportedAccounts (ETH not supported)

Also moved /buy dir to /exchange dir, and control firmware update dialog from AppContext through firmwareUpdateDialogOpen - so it's controllable from other pages such as the new sell page.

[Preview]:

Available:

avail

Unavailable due to region:

region

Unavailable due to selected account / coin (using ETH):

cointype

Unavailable due to out-of-date firmware:

https://github.com/BitBoxSwiss/bitbox-wallet-app/assets/28676406/b935cc16-d043-410f-8590-a6f08158b906

shonsirsha commented 1 month ago

@thisconnect , thanks! PTAL

shonsirsha commented 3 weeks ago

@Beerosagos do you want to take over here while implementing the BE? Or merge it as it is, and then once the BE is ready (with what we discussed above), we adjust this FE to work with the BE endpoints?

Beerosagos commented 3 weeks ago

@Beerosagos do you want to take over here while implementing the BE? Or merge it as it is, and then once the BE is ready (with what we discussed above), we adjust this FE to work with the BE endpoints?

Feel free to merge as is, thanks! This way we can go on in parallel on the backend integration and the buy refactor you mentioned in the previous comments