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

feat: Price sort by logic #8920

Closed
wants to merge 6 commits into from
Closed

feat: Price sort by logic #8920

wants to merge 6 commits into from

Conversation

hassnian
Copy link
Contributor

@hassnian hassnian commented Jan 9, 2024

PR Type

  • Bugfix
  • Feature
  • Refactoring

Needs Design check

Context

Did your issue had any of the "$" label on it?

  • Fill up your DOT address: Payout

Screenshot 📸

  • My fix has changed something on UI;

@hassnian hassnian requested a review from a team as a code owner January 9, 2024 12:14
@hassnian hassnian requested review from preschian and roiLeo and removed request for a team January 9, 2024 12:14
@kodabot
Copy link
Collaborator

kodabot commented Jan 9, 2024

SUCCESS @hassnian PR for issue #8890 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!

Copy link

netlify bot commented Jan 9, 2024

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 9ae4572
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/65d6f82e7e9e3f0008669a3d
😎 Deploy Preview https://deploy-preview-8920--koda-canary.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.

@hassnian hassnian changed the title fix: Price sort by logic #8890 fix: Price sort by logic Jan 9, 2024
Copy link
Contributor

reviewpad bot commented Jan 9, 2024

AI-Generated Summary: This pull request involves significant refactoring of the useItemsGrid.ts and en.json files. In useItemsGrid.ts, a considerable chunk of code related to the price sorting logic is removed. This includes the removal of the isPriceSortActive function and a watch method that previously observed changes in the route.query.sort value. Furthermore, in the en.json file, the value for the "listed" key is changed from "Buy now" to "Listed".

@reviewpad reviewpad bot added small Pull request is small waiting-for-review labels Jan 9, 2024
@hassnian
Copy link
Contributor Author

hassnian commented Jan 9, 2024

@exezbcz pls check , let me know if it's working as you mentioned

@hassnian hassnian changed the title fix: Price sort by logic feat: Price sort by logic Jan 9, 2024
@preschian preschian requested a review from prury January 9, 2024 15:51
@exezbcz
Copy link
Member

exezbcz commented Jan 9, 2024

nope, not working yet

image

when this filter is applied it should show listed first - sorted by price and then the rest

@prury prury added the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Jan 9, 2024
@hassnian hassnian marked this pull request as draft January 10, 2024 04:20
@hassnian
Copy link
Contributor Author

sorted by price and then the rest

@roiLeo this is not possible only using tokenListWithSearch query right ?

@roiLeo
Copy link
Contributor

roiLeo commented Jan 10, 2024

sorted by price and then the rest

@roiLeo this is not possible only using tokenListWithSearch query right ?

Doesn't look like it's possible with tokenEntities this might be indexer issue, let's open issue on https://github.com/kodadot/stick/issues with what you need

@yangwao
Copy link
Member

yangwao commented Jan 23, 2024

Copy link
Member

@preschian preschian left a comment

Choose a reason for hiding this comment

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

blocked by this. lets re-review again once ready

waiting to resolve this

@yangwao
Copy link
Member

yangwao commented Feb 14, 2024

@vikiival can do silent release of new Stick for you

@vikiival
Copy link
Member

vikiival commented Feb 15, 2024

https://squid.subsquid.io/arrow-speck/v/v1/graphql

Copy link

codeclimate bot commented Feb 22, 2024

Code Climate has analyzed commit 9ae4572 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link

sonarcloud bot commented Feb 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@hassnian
Copy link
Contributor Author

hassnian commented Feb 22, 2024

https://squid.subsquid.io/arrow-speck/v/v1/graphql

CleanShot 2024-02-22 at 14 31 22@2x

can you deploy it again

thanks

@vikiival
Copy link
Member

can you deploy it again

Blocked by

@yangwao yangwao mentioned this pull request Mar 11, 2024
@yangwao yangwao added the S-stale pull request which haven't seen any changes for last 3 days, with this labels will be close in 7days label Mar 14, 2024
@vikiival
Copy link
Member

meanwhile we run arrowsquid, prob continue?

@hassnian
Copy link
Contributor Author

meanwhile we run arrowsquid, prob continue?

yes

when the low to high filter is active, show listed first, sorted by the sort by filter, and then leave the rest untouched. It takes all the supply and just reorders it so the listed ones are on top.

we have

CleanShot 2024-04-11 at 16 58 54@2x

and we need price_ASC_NULL_LAST

@vikiival
Copy link
Member

yes

@vikiival
Copy link
Member

vikiival commented Apr 26, 2024

I have missunderstood your question @hassnian

closing as this is not resolved

https://t.me/HydraDevs/9433

Copy link

sonarcloud bot commented Jun 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@hassnian
Copy link
Contributor Author

hassnian commented Jun 8, 2024

@vikiival any updates ? is kodadot/stick#275 the blocker ?

@vikiival
Copy link
Member

vikiival commented Jun 8, 2024

Yes

@hassnian hassnian closed this Jun 22, 2024
@hassnian
Copy link
Contributor Author

new pr #10529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-changes-requested-🤞 PR is almost good to go, just some fine tunning S-stale pull request which haven't seen any changes for last 3 days, with this labels will be close in 7days small Pull request is small waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Price sort by logic
8 participants