feat: add multi-strategy version fetchers, disable auto-fetch by default

- Add 4 version-fetch strategies (UpToDateCheck API, Store Page Scrape,
  Community Hub Scrape, Store API Heuristic) — no Steam API key needed
- Create orchestrator that tries all strategies, prefers named version
  over build ID
- Add test page at /test-version-fetchers for comparing strategies
- Add standalone /api/version-test endpoint (direct Steam App ID, no DB)
- Update /api/games/:id/steamdb-version to use new strategies
- Disable auto-fetch on submit page by default (NEXT_PUBLIC_VERSION_AUTO_FETCH=true to enable)
- SteamDB scraping blocked by Cloudflare; strategies preserved for later enablement
This commit is contained in:
2026-05-16 20:13:23 +08:00
parent 88a098f387
commit e5f671a992
13 changed files with 1356 additions and 37 deletions
+28
View File
@@ -0,0 +1,28 @@
---
title: "Moderator Role, Performance Tag Fix, and Steam Sale Section"
date: "2026-05-16"
version: "2026.0.102"
summary: "New moderator role for community management, handheld-scoped performance tags for more accurate badges, Steam sale discovery on the landing page, and submit wizard fixes."
---
### New Moderator Role
A new **moderator** role sits between contributor and admin, giving trusted community members the ability to:
- Verify benchmarks, handle reports, and review community suggestions
- Moderate comments and remove problematic entries
- Access the manage panel with role-appropriate navigation
Admins retain full control over user management, storage, and hardware creation. Existing contributors keep their permissions unchanged.
### Handheld-Scoped Performance Tags
Performance badges (Raw Performer, Poor Performance, best FPS) are now calculated using **Steam Deck data only** — console performance no longer masks handheld reality. A game running at 90 FPS on Steam Machine but 25 FPS on Steam Deck will correctly show as "Poor Performance" rather than displaying both badges confusingly.
### Steam Sale Discovery
The landing page now features an **On Sale & Performing Well** section showing discounted Steam games from the DeckyVault database. Each card displays the discount percentage, sale price, performance badges, and Steam review score — helping you spot great deals on games that actually run well.
### Submit Wizard Improvements
- **Drag-and-drop** in the settings editor and screenshot uploader no longer triggers accidental text selection
- **Editing entries with screenshots** now shows your existing screenshots in the Review step — remove individual ones or add new ones before re-submitting