Skip to content

[ROMM-2211] Only show missing platforms on lib manage page #2212

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

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Aug 5, 2025

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

Use filteredPlatforms for most uses of allPlatforms, which filters empty platforms (even on scan page).

Fixes #2211

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

Screenshots

@gantoine gantoine requested review from zurdi15 and Copilot August 5, 2025 14:17
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 modifies the frontend to use filteredPlatforms instead of allPlatforms throughout the application, which filters out empty platforms to improve user experience by only showing platforms that contain ROMs.

  • Replace allPlatforms with filteredPlatforms across multiple components
  • Add validation for missing ROMs deletion to prevent empty operations
  • Improve platform filtering consistency across scan, gallery, and filter views

Reviewed Changes

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

Show a summary per file
File Description
frontend/src/views/Settings/LibraryManagement.vue Adds validation to prevent empty ROM deletion operations
frontend/src/views/Scan.vue Updates platform selection to use filtered platforms
frontend/src/views/Gallery/Platform.vue Replaces all platform references with filtered platforms
frontend/src/components/Gallery/AppBar/common/FilterDrawer/Base.vue Updates filter drawer to use filtered platforms
frontend/src/components/Details/Title.vue Updates platform lookup for missing file system icons

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.

@gantoine gantoine merged commit 1faf1bf into master Aug 6, 2025
8 checks passed
@gantoine gantoine deleted the romm-2211 branch August 6, 2025 13:15
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] Missing platforms appear on scan page
1 participant