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

Sort assets by priority score #1860

Merged
merged 3 commits into from
Oct 24, 2024
Merged

Sort assets by priority score #1860

merged 3 commits into from
Oct 24, 2024

Conversation

JasonMHasperhoven
Copy link
Contributor

@JasonMHasperhoven JasonMHasperhoven commented Oct 17, 2024

As part of #1829

image

Copy link

changeset-bot bot commented Oct 17, 2024

🦋 Changeset detected

Latest commit: e6f3aa5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
minifront Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JasonMHasperhoven JasonMHasperhoven marked this pull request as ready for review October 23, 2024 13:24
@JasonMHasperhoven JasonMHasperhoven requested a review from a team October 23, 2024 13:24
Copy link
Collaborator

@grod220 grod220 left a comment

Choose a reason for hiding this comment

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

Ah so much better

@TalDerei
Copy link
Contributor

still think shitmos should be hardcoded with the highest priority

@JasonMHasperhoven JasonMHasperhoven merged commit 0745845 into main Oct 24, 2024
6 checks passed
@JasonMHasperhoven JasonMHasperhoven deleted the sort-by-priorityscore branch October 24, 2024 10:36
return responses.map(getDenomMetadata);
return responses
.map(getDenomMetadata)
.toSorted((a, b) => Number(b.priorityScore) - Number(a.priorityScore));
Copy link
Contributor

Choose a reason for hiding this comment

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

question: can we also apply this to the groupAndSort.ts file in the UI package?

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.

4 participants