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

refactor: migrate the Random Set route to a controller method #2665

Conversation

wescopeland
Copy link
Member

This route doesn't fit well into React. This PR drops the Blade template and moves the logic directly into a controller.

There is one functional change. The "Random Set" label has been changed to "Random Game". IMO, this better describes what the logic is actually doing - redirecting the user to a game page. "Set" may also not be a well understood term outside of power users and developers.

@wescopeland wescopeland requested a review from a team September 2, 2024 11:59
@@ -121,7 +121,7 @@
<x-dropdown-item :href="url('setRequestList.php')">Most Requested</x-dropdown-item>
<x-dropdown-item :href="route('claims.completed')">New Sets & Revisions</x-dropdown-item>
<x-dropdown-item :href="route('claims.active')">Sets in Progress</x-dropdown-item>
<x-dropdown-item :href="route('game.random')">Random Set</x-dropdown-item>
<x-dropdown-item :href="route('game.random')">Random Game</x-dropdown-item>
Copy link
Member

Choose a reason for hiding this comment

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

There is one functional change. The "Random Set" label has been changed to "Random Game". IMO, this better describes what the logic is actually doing - redirecting the user to a game page.

The idea behind using "Random Set" is that it only returns games with achievements.

Copy link
Member Author

Choose a reason for hiding this comment

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

That makes sense. A fear I have is what this might mean if/when we're at a point that we're rendering multiple sets on the same game page. Let's cross that bridge when we get to it.

For now, I've reverted this label back to "Random Set".

@wescopeland wescopeland merged commit 3c9ae47 into RetroAchievements:master Sep 2, 2024
5 checks passed
@wescopeland wescopeland deleted the random-game-controller-method branch September 2, 2024 23:25
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