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

fix issue #387 collected items for sale visibility #389

Conversation

floydwilde
Copy link

As mentioned in issue #387, @Zir0h pointed out where in the code this was likely happening. I read through the code for the collections page and could not understand the need to filter on FILTER_FOR_SALE and FILTER_NOT_FOR_SALE as it didn't align with the functionality we wanted for the page. The main goal here is to display all items a collector has acquired, irrespective of whether these items are currently listed for sale or not. This ensures a more consistent and user-friendly experience, where collectors can view their entire collection in one place.

In this pull request, I have removed the FILTER_FOR_SALE and FILTER_NOT_FOR_SALE filters and replaced them with a single FILTER_COLLECTED filter. This new filter effectively shows all tokens collected by the user that they didn't create themselves. The change simplifies the filtering logic and aligns the collections page with the intended purpose of showcasing all acquired items, making it easier for users to manage and view their collections.

This update should resolve the issue where tokens disappeared from the collection upon being listed for sale, as now all collected items remain visible regardless of their sale status. I'm not that good at JavaScript though, so someone should review this for any syntax issue.

@floydwilde
Copy link
Author

dOh! I realize this is probably conflicting with development in #383 now, feel free to cancel or mark as draft and I could have another look after that work is completed.

@melMass
Copy link
Member

melMass commented Feb 24, 2024

Thanks Floyd, yes those are not used for now because filtering is not fully implemented so we decided to hide it.
Before we migrated the infra it was allowing to display the sale status from any feed.
The new system's goal is to allow more fine tuned filtering with price range, dates, etc etc but it need quite some work, there is a branch IIRC that is about that where a few filters are working

@melMass melMass closed this Feb 25, 2024
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.

2 participants