From 72abfadd5604bf1e7b41d106413966d5e5fc2c9b Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Mon, 8 Sep 2025 20:59:06 -0400 Subject: [PATCH 1/2] [ROMM-2148] Add metadata icons to table view --- frontend/src/components/common/Game/Table.vue | 123 +++++++++++++++--- frontend/src/utils/index.ts | 2 +- 2 files changed, 107 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/common/Game/Table.vue b/frontend/src/components/common/Game/Table.vue index e1f7ce506..93b1c50bf 100644 --- a/frontend/src/components/common/Game/Table.vue +++ b/frontend/src/components/common/Game/Table.vue @@ -12,6 +12,7 @@ import PlatformIcon from "@/components/common/Platform/Icon.vue"; import { ROUTES } from "@/plugins/router"; import romApi from "@/services/api/rom"; import storeAuth from "@/stores/auth"; +import storeCollections from "@/stores/collections"; import storeDownload from "@/stores/download"; import storeGalleryFilter from "@/stores/galleryFilter"; import storeRoms, { type SimpleRom } from "@/stores/roms"; @@ -33,6 +34,7 @@ const { filteredRoms, selectedRoms, fetchingRoms, fetchTotalRoms } = storeToRefs(romsStore); const auth = storeAuth(); const galleryFilterStore = storeGalleryFilter(); +const collectionsStore = storeCollections(); const HEADERS = [ { @@ -60,19 +62,19 @@ const HEADERS = [ key: "first_release_date", }, { - title: "Rating", + title: "⭐", align: "start", sortable: true, key: "average_rating", }, { - title: "Languages", + title: "🔠", align: "start", sortable: false, key: "languages", }, { - title: "Regions", + title: "🌎", align: "start", sortable: false, key: "regions", @@ -159,7 +161,7 @@ function updateOptions({ sortBy }: { sortBy: SortBy }) { /> @@ -279,7 +341,6 @@ function updateOptions({ sortBy }: { sortBy: SortBy }) {