refactor: remove broken Community Trust chart (TrustBar)

- Remove TrustBar component and chart
- Remove trust data from game-stats API response
- Remove trust section from game detail page
- DB columns and vote endpoints preserved for future voting system
This commit is contained in:
2026-04-27 20:41:28 +08:00
parent 599cb024c9
commit ab076a92c8
3 changed files with 2 additions and 136 deletions
+1 -14
View File
@@ -74,7 +74,6 @@ export const gameStatsRoutes = new Elysia({ prefix: "/games" }).get(
upscalerStats: [],
fpsRange: [],
deviceBreakdown: [],
trust: [],
filterOptions: { protonVersions: [], osVersions: [] },
}
}
@@ -239,18 +238,7 @@ export const gameStatsRoutes = new Elysia({ prefix: "/games" }).get(
}),
)
// ── 9. Community trust ────────────────────────────────────────
const trust = entries.map((e) => ({
id: e.id,
hardwareSlug: e.hardwareSlug,
upvotes: e.upvotes,
downvotes: e.downvotes,
verifiedAt: e.verifiedAt ? e.verifiedAt.toISOString() : null,
userNotes: e.userNotes,
createdAt: e.createdAt.toISOString(),
}))
// ── 10. Filter options ────────────────────────────────────────
// ── 9. Filter options ────────────────────────────────────────
const protonVersions = [
...new Set(entries.map((e) => e.protonVersion).filter(Boolean)),
] as string[]
@@ -273,7 +261,6 @@ export const gameStatsRoutes = new Elysia({ prefix: "/games" }).get(
upscalerStats,
fpsRange,
deviceBreakdown,
trust,
filterOptions: { protonVersions, osVersions },
}
},