nft-gallery icon indicating copy to clipboard operation
nft-gallery copied to clipboard

Handle expired offers acceptation

Open petersopko opened this issue 2 years ago • 10 comments

Currently on our front end, we leave space for confusion when it comes to expired offers. On image below, there is one of my NFTs after clicking on Action button, accept offer.

Proposed solution: Let user click on the button and show red text above the table, saying Selected offer is expired and can no longer be accepted. Inspiration can be found in the way errors are handled at Create NFTs /bsx/create Maybe @roiLeo can chip in on how to handle this properly, but iirc you don't like disabling buttons + tooltips 😆.

Don't forget to test: Every place which has option of accepting offers.

image

petersopko avatar Aug 19 '22 11:08 petersopko

👋

kkukelka avatar Aug 19 '22 11:08 kkukelka

ASSIGNED - @kkukelka 🔒 LOCKED -> Saturday, August 20th 2022, 23:50:58 UTC -> 36 hours

kodabot avatar Aug 19 '22 11:08 kodabot

Should we keep showing expired offer? I noticed that on OpenSea they are no longer displayed

roiLeo avatar Aug 19 '22 12:08 roiLeo

hmm, maybe not everywhere? There are two related issues:

  • https://github.com/kodadot/nft-gallery/issues/3401
  • https://github.com/kodadot/nft-gallery/issues/3583

From the context, I think we want to keep them for user to withdraw, but maybe we don't want to show them at item detail? wdyt @yangwao

petersopko avatar Aug 19 '22 12:08 petersopko

Oh, I recall, when an offer is made the balance is locked until the user withdraw even when expire

roiLeo avatar Aug 19 '22 12:08 roiLeo

Should we keep showing expired offer?

we could default show active offers.

maybe we don't want to show them at item detail?

why?

yangwao avatar Aug 19 '22 12:08 yangwao

maybe we don't want to show them at item detail?

why?

It's like showing "out of stock" product on a marketplace this can be confusing for the user.

But it would be nice to have a tab in my profile where I could manage all my expired offers (#3401?)

roiLeo avatar Aug 19 '22 12:08 roiLeo

I'll unassign myself until there is a consensus reached on what's the best approach here

kkukelka avatar Aug 20 '22 11:08 kkukelka

ASSIGNMENT OVER - @kkukelka has been unassigned.

kodabot avatar Aug 20 '22 11:08 kodabot

It's like showing "out of stock" product on a marketplace this can be confusing for the user.

But it would be nice to have a tab in my profile where I could manage all my expired offers (#3401?)

maybe we want to show activity on the given item regardless and that was @yangwao's point? Created (even if expired) offer signals some demand for the item. @yangwao wdyt, maybe just disable the "Accept" green bill button when offer is expired?

Current implementation is still resulting in user being able to click the accept button, sign transaction and get response as seen on the screenshot.

petersopko avatar Aug 27 '22 09:08 petersopko

This was left on read for way too long, let's resolve this in the following way:

  1. We are leaving expired offers to show, they are a good sign of activity around NFT
  2. We should handle the button in a better way, I'd suggest disabled Accept with tooltip informing about the expiration of offer (please @roiLeo, take a look and let us know if there's more elegant way🧙🏻‍♂️)

petersopko avatar Sep 30 '22 06:09 petersopko

We are leaving expired offers to show, they are a good sign of activity around NFT

Aight, still don't agree with it but let's keep them

I'd suggest disabled Accept with tooltip informing about the expiration of offer

Sounds good to me, can we sort offers by expiration Date too?

roiLeo avatar Sep 30 '22 06:09 roiLeo

Sounds good to me, can we sort offers by expiration Date too?

it seems to be working image

petersopko avatar Sep 30 '22 09:09 petersopko