Skip to content

Display an icon on the card if game has notes #2226

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 3 commits into from
Aug 6, 2025
Merged

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Aug 6, 2025

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

Clicking on the icon will display the note content in a window. This saves like 3 clicks, like a quick-view for notes.

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

Screenshot 2025-08-06 at 6 35 03 PM Screenshot 2025-08-06 at 6 35 09 PM Screenshot 2025-08-06 at 6 40 43 PM

@gantoine gantoine requested review from zurdi15 and Copilot August 6, 2025 22:42
Copy link

trunk-io bot commented Aug 6, 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 adds a quick-view feature for game notes by displaying a notebook icon on game cards when notes are present. Users can click the icon to view notes in a modal dialog, reducing the number of clicks needed to access note content.

  • Adds a notebook icon on game cards when notes exist
  • Creates a new modal dialog component to display note content with markdown rendering
  • Removes some unused navigation code from the Platform.vue component

Reviewed Changes

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

File Description
frontend/src/views/Gallery/Platform.vue Removes unused router import and navigation logic for meta/ctrl+click
frontend/src/layouts/Main.vue Adds the new NoteDialog component to the main layout
frontend/src/components/common/Game/Dialog/NoteDialog.vue New modal component for displaying game notes with markdown support
frontend/src/components/common/Game/Card/Base.vue Adds notebook icon to game cards and handles note dialog display
Comments suppressed due to low confidence (1)

frontend/src/views/Gallery/Platform.vue:16

  • The ROUTES import is still being used in the router.push call on line 130 (visible in context). This removal will cause a compilation error.
import type { Emitter } from "mitt";

@gantoine gantoine merged commit ff764e7 into master Aug 6, 2025
8 checks passed
@gantoine gantoine deleted the game-card-notes-icon branch August 6, 2025 23:17
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.

1 participant