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

Use ellipsis when many versions returned for [ModrinthGameVersions] #10350

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

PyvesB
Copy link
Member

@PyvesB PyvesB commented Jul 11, 2024

Fixes #10346.

To make sure the ellipsis falls in the "middle", the list of game versions must be sorted. All the examples I've tried seem to return sorted results from the API, so I'm running under that assumption and have kept the implementation simple. We can always revisit later if need-be.

@PyvesB PyvesB added the service-badge New or updated service badge label Jul 11, 2024
Copy link
Contributor

Messages
📖 ✨ Thanks for your contribution to Shields, @PyvesB!

Generated by 🚫 dangerJS against f85007e

@chris48s
Copy link
Member

I think I'm fine with this. Do you have any thoughts on the slightly more involved solution I mentioned in #10346 (comment) ?

@PyvesB
Copy link
Member Author

PyvesB commented Jul 13, 2024

I think I'm fine with this. Do you have any thoughts on the slightly more involved solution I mentioned in #10346 (comment) ?

I figured I'd go for the simple solution first. If there's appetite from the community for a more fancy solution, I'm happy to refine things. :)

@PyvesB PyvesB added this pull request to the merge queue Jul 13, 2024
Merged via the queue into badges:master with commit 67deddb Jul 13, 2024
24 checks passed
@PyvesB PyvesB deleted the ellipsis-modrinth-game-versions branch July 13, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modrinth Game Versions don't show ranges
2 participants