Skip to content

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Aug 5, 2025

Description
Explain the changes or enhancements you are proposing with this pull request.

Refactored fetchRoms so it takes an object, which should prevent the issue (not setting concat to false on char bar fetch) from happening again.

Fixes #2155

Checklist
Please check all that apply.

  • I've tested the changes locally
  • I've updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes

@gantoine gantoine requested review from zurdi15 and Copilot August 5, 2025 02:51
Copy link

trunk-io bot commented Aug 5, 2025

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the fetchRoms function to accept an object parameter instead of positional parameters, which prevents a bug where the character bar was jumping to the wrong game due to incorrect parameter handling.

  • Refactored fetchRoms method signature to use destructured object parameters
  • Updated all calls to fetchRoms throughout the codebase to use the new object-based API
  • Fixed the character bar issue by ensuring the concat parameter is properly set to false

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
frontend/src/stores/roms.ts Updated fetchRoms method signature to accept destructured object parameters with proper typing
frontend/src/components/Gallery/AppBar/common/CharIndexBar.vue Fixed character bar navigation by explicitly setting concat: false in the new API
frontend/src/views/Settings/LibraryManagement.vue Updated multiple fetchRoms calls to use new object-based API with explicit groupRoms: false
frontend/src/views/Gallery/Search.vue Updated fetchRoms call to use new object-based API
frontend/src/views/Gallery/Platform.vue Updated fetchRoms call to use new object-based API
frontend/src/views/Gallery/Collection/BaseCollection.vue Updated fetchRoms call to use new object-based API
frontend/src/components/common/Game/Table.vue Updated fetchRoms call to use new object-based API
frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue Updated fetchRoms call to use new object-based API

@gantoine gantoine merged commit 9bdde17 into master Aug 6, 2025
8 checks passed
@gantoine gantoine deleted the romm-2155 branch August 6, 2025 13:14
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.

[Bug] Letter bar goes to the letter above it when populating.
1 participant