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(game): allow sorting by achievement type #1857

Merged

Conversation

wescopeland
Copy link
Member

✅ Safe to merge, supports the "beat" feature flag.

This PR adds a new sorting option to game pages: "Type", which orders achievements by Progression, Win Condition, and then null.

Brave.Browser.mp4

@wescopeland wescopeland requested a review from a team September 8, 2023 23:43
Copy link
Contributor

@Tsearo Tsearo left a comment

Choose a reason for hiding this comment

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

Works great 👍

Just a thought but would it make sense to hide the Type sort when there are no existing typed achievements? All of the other sorts always apply but this one is semi-conditional at least until all games are marked which may take some time after the feature goes live (and also for subsets which won't get marked). Likely not worth the effort but thought I'd at least bring it up

@wescopeland
Copy link
Member Author

Yes, very good idea. We should make that change-- I'll update the code in this PR in just a bit.

@wescopeland
Copy link
Member Author

Conditional rendering logic added in eebadf4.

app/Helpers/database/game.php Show resolved Hide resolved
app/Helpers/database/game.php Outdated Show resolved Hide resolved
@wescopeland wescopeland merged commit 4d1acc4 into RetroAchievements:master Sep 10, 2023
5 checks passed
@wescopeland wescopeland deleted the game-page-progression-sort branch September 10, 2023 23:47
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.

3 participants