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: make modern hubs generally available #3065

Merged

Conversation

wescopeland
Copy link
Member

@wescopeland wescopeland commented Jan 16, 2025

This PR cuts over legacy hubs to the new Inertia.js hubs:

  • All hub links on the game page now route directly to /hub/{gameSet}.
  • Legacy hub URLs like /game/{game} 302 redirect to their corresponding modern hub page.
  • Navbar hub links now route to either /hubs/ or /hub/{2-5}.
  • Game pages no longer query for game alts.
  • The FEATURE_ENABLE_MODERN_HUBS env var has been removed.

Additionally, I've removed all legacy hub code from gameInfo.blade.php (game list service stuff).

I've also relocated related events to the sidebar:
Screenshot 2025-01-15 at 8 21 07 PM

Next steps:

  • Drop GameAlternatives.
  • Update search to add "Hub" as a SearchType and break hub games out of search.

@wescopeland wescopeland added the status/stacked This PR is stacked on top of another PR. label Jan 16, 2025
@wescopeland wescopeland requested a review from a team January 16, 2025 01:21
@wescopeland
Copy link
Member Author

It has occurred to me that before we can merge this, we'll need to handle "hub game" shortcodes in messages and forum topic comments, probably with the creation of a new [hub= shortcode.

This is still probably good to review, but can't be merged until that piece of work is done.

@wescopeland wescopeland removed the status/stacked This PR is stacked on top of another PR. label Jan 18, 2025
@wescopeland wescopeland merged commit 707adf9 into RetroAchievements:master Jan 26, 2025
8 checks passed
@wescopeland wescopeland deleted the modern-hubs-available branch January 26, 2025 18:03
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