Commit Graph
186 Commits
Author SHA1 Message Date
adrianbonpin fbfc43832e feat: add OpenAPI support and in-process cron scheduler
- Install @elysia/openapi to auto-generate API docs at /api/openapi
- Install @elysia/cron for in-process scheduled jobs (orphan detection at 2am, storage cleanup at 3am)
- Add Scalar UI docs with 14 tag groups and Bearer JWT security scheme
- Add route-level detail annotations (tags, summaries) to all 30+ route files
- Upgrade crud-builder to accept optional tags config
- Keep HTTP cron endpoint as manual/admin fallback
2026-05-14 21:43:33 +08:00
adrianbonpin 6f64f1d89a feat: convert PATCH /:id/edit to multipart with atomic screenshot replacement (Task 5) 2026-05-10 15:32:09 +08:00
adrianbonpin 285213acdc feat: convert POST /submit to multipart with atomic screenshot processing and R2 cleanup (Task 4) 2026-05-10 15:27:35 +08:00
adrianbonpin 5875595219 feat: enrich game cards with bestFps, raw/poor performer badges, and battery estimates (Tasks 5.1-5.6) 2026-05-10 05:17:55 +08:00
adrianbonpin c704f35f51 feat: add computed battery estimate to ReviewStep via hardware wattHours + tdpWatts (Tasks 4.1-4.3) 2026-05-10 05:11:46 +08:00
adrianbonpin 6d906f0bbf feat: remove estimatedBatteryMin references from 11 files (Tasks 3.1-3.14) 2026-05-10 05:07:25 +08:00
adrianbonpin 3a9ac815e5 feat: drop estimated_battery_min column — Phase 1 migration (Tasks 1.1-1.3) 2026-05-10 04:52:44 +08:00
adrianbonpin bcf2d540b8 chore: format components, switch to CDN hostname, and improve error handling in game stats
- Format long lines and union types in game page, preset modal, games page, and filter drawer
- Replace **.r2.dev with cdn.deckyvault.xyz in next.config image hostnames
- Replace sql ANY with drizzle inArray for hardware query in game stats
- Add try/catch error handler in game stats route
- Add post.md to .gitignore
2026-05-10 04:15:38 +08:00
adrianbonpin 814a5c3d7c feat(api): register admin storage routes and export from index 2026-05-10 01:22:33 +08:00
adrianbonpin 0772b61de8 feat(api): add admin storage management endpoints (stats, list, delete, cleanup) 2026-05-10 01:20:12 +08:00
adrianbonpin 55e5028b09 feat(api): add admin paginated suggestions endpoint 2026-05-10 01:07:24 +08:00
adrianbonpin 6718f1b033 fix: updates page sorting — correct version typo 971→97.1 and add semver tiebreaker 2026-05-09 23:47:50 +08:00
adrianbonpin 5ed60ef3cc chore: fix lint/type issues from seven-feature integration 2026-05-09 23:35:21 +08:00
adrianbonpin 3cbb3538da feat: add screenshot upload/list/delete API routes 2026-05-09 22:40:05 +08:00
adrianbonpin b7c74fcaf5 feat: add sharp dependency and screenshot processing pipeline 2026-05-09 22:36:05 +08:00
adrianbonpin 027d3ac8fc feat: auto-pin entries with ≥10 votes and ≥80% approval 2026-05-09 22:32:19 +08:00
adrianbonpin 8ea160bd05 feat: accept tdpWatts and youtubeVideoId in performance submit/edit APIs 2026-05-09 22:29:34 +08:00
adrianbonpin 02bdbe2825 feat: include wattHours, tdpMax, and batteryLife in hardware and game stats APIs 2026-05-09 22:25:34 +08:00
adrianbonpin 8904a7b611 feat: add entryScreenshots table, wattHours/tdpMax on hardware, tdpWatts/youtubeVideoId on performanceEntries 2026-05-09 22:12:08 +08:00
adrianbonpin 32386ce170 fix: resolve all ESLint errors and warnings
- Replace  types with  and proper type casting
- Remove unused imports and variables across multiple files
- Fix React set-state-in-effect by suppressing with eslint-disable
- Wrap handleFile in useCallback to stabilize hook dependencies
- Remove dead MetaItem component from game-page-client
- Add public/sw.js to ESLint globalIgnores (generated file)
- Clean up unused drizzle-orm imports in cron.ts, dashboard-public.ts
- Remove unused _configured flag from r2-client.ts
2026-05-09 16:38:29 +08:00
adrianbonpin 321c923464 feat: switch sitemap from static file to dynamic DB-driven generation 2026-05-09 15:31:05 +08:00
adrianbonpin 4bca9c97c9 fix: prevent localhost from being used as sitemap base URL 2026-05-09 15:12:55 +08:00
adrianbonpin 11d944bef2 fix: profile photo upload field name mismatch ('file'→'photo'), sitemap auto-run only on CLI 2026-05-09 13:55:22 +08:00
adrianbonpin 7094e05227 feat: v2026.0.98 changelog, version bump, regenerated sitemap 2026-05-09 13:33:47 +08:00
adrianbonpin 03428bdd0b feat: add admin sitemap regeneration endpoint and cron task 2026-05-09 13:30:38 +08:00
adrianbonpin c6a9b448d3 feat: add advanced filters and saved filter presets to search page 2026-05-09 13:27:59 +08:00
adrianbonpin 2f4f0250df feat: add public dashboard API routes for trending, best new, most tested, most reported 2026-05-09 13:07:52 +08:00
adrianbonpin 5bc85aa850 feat: add static sitemap generation script, replace dynamic sitemap with static files 2026-05-09 13:04:33 +08:00
adrianbonpin 20f1d33751 feat: add profile photo upload/delete API routes with R2 storage 2026-05-09 12:54:12 +08:00
adrianbonpin 6009366fb4 feat: add modular daily cron system with storage cleanup and orphan detection 2026-05-09 12:50:16 +08:00
adrianbonpin 393bc9a9c6 feat: add R2 storage client module with upload, delete, list, metadata 2026-05-09 12:46:47 +08:00
adrianbonpin f59ef61634 feat: add storage_objects schema for R2 tracking 2026-05-09 12:44:49 +08:00
adrianbonpin dcf6066b2b feat: sitemap remediation, PWA activation, search refinements, Steam Deck UX
Sitemap:
- Switch from ISR (revalidate=3600) to force-dynamic for per-request generation
- Flatten into single app/sitemap.ts with inlined static entries and DB queries
- NULL-safe syncStatus filter: ne(games.syncStatus, 'failed') OR isNull(games.syncStatus)
- Structured JSON logging for generated URLs and DB errors
- Delete lib/sitemap/* helpers and app/api/revalidate-sitemap route
- Add basic vitest coverage for sitemap exports

PWA & Offline:
- Add @serwist/next service worker (webpack build) with runtime caching
- Cache strategies: stale-while-revalidate for game pages, network-first for listings/API,
  cache-first for Steam CDN images
- Offline fallback page (public/offline.html)
- Manifest icons: 192px maskable + 512px any
- Viewport meta with viewport-fit=cover, user-scalable=no
- Apple mobile web app meta tags

Search / Filter Refinements:
- Multi-genre OR support in listing API (comma-separated genres)
- Device-scoped FPS filter (min/max FPS constrained to selected device)
- Client-side URL state sync via router.replace for shareable filtered views
- Initialize filter state from URL params on mount
- Auto-collapse filter panel on saved-filter load
- Fix multi-genre saved filter parsing (comma-separated)

Steam Deck / Touch / Gamepad UX:
- WCAG 2.1 AA touch targets (44x44px) on all filter controls
- .gamepad-focus CSS focus ring for controller navigation
- useGamepadNavigation hook: D-pad/left-stick roving tabindex, A/B/X/Y actions
- Integrate gamepad hook into games page (X=search, Y=toggle filters)

Chore:
- Bump version to 2026.0.97
2026-05-05 16:20:28 +08:00
adrianbonpin 9be64359be fix: remove Updates from navigation routes 2026-05-05 02:12:16 +08:00
adrianbonpin b627a15a21 refactor: game-stub route now uses ensureSteamGame pipeline 2026-05-05 02:05:36 +08:00
adrianbonpin 47ac4c218b test: add unit tests for ensureSteamGame stub-then-sync 2026-05-05 02:01:41 +08:00
adrianbonpin 50353952db feat: add ensureSteamGame — unified stub-then-sync entry point 2026-05-05 01:29:01 +08:00
adrianbonpin 863358a8fd fix: resolve Next.js 16 build errors
- Extract Elysia app from route.ts into lib/api/app.ts to avoid
  Next.js 16 invalid export validation ('app' is not a valid route
  export field)
- Remove runtime='nodejs' from opengraph-image.tsx (invalid segment
  config in Next.js 16)
- Replace computed revalidate expression in sitemap.ts with literal
  (Next.js cannot statically evaluate BinaryExpression for segment
  configs)
- Update eden.ts imports to match new app.ts location
2026-05-05 00:36:17 +08:00
adrianbonpin 633117f452 chore: final verification fixes for sitemap reliability
- Replace invalid revalidate export with unstable_cache in sitemap.ts
- Add revalidateTag('sitemap', 'default') to on-demand revalidation endpoint
- Fix test assertions to match /game/ URL path
2026-05-04 13:16:47 +08:00
adrianbonpin 16e5cf586d feat: rewrite sitemap with ISR caching, validation, and filtered allowlist 2026-05-04 13:10:56 +08:00
adrianbonpin 26e0b510da feat: add sitemap dynamic entries fetcher with LIMIT, validation, and error recovery 2026-05-04 13:09:02 +08:00
adrianbonpin 4fbaea9d9d feat: add static sitemap entry allowlist (no auth pages) 2026-05-04 13:05:28 +08:00
adrianbonpin e0df92e05e feat: add sitemap image URL validation gate 2026-05-04 13:04:00 +08:00
adrianbonpin ca08024cb5 feat: updates page and lint fixes 2026-05-01 10:15:13 +08:00
adrianbonpin 7749162414 fix: switch markdown pipeline to remark-rehype for proper HTML rendering 2026-05-01 09:44:47 +08:00
adrianbonpin 695c3fbedf feat: add updates route and sitemap entry 2026-05-01 09:36:44 +08:00
adrianbonpin 19c2515437 feat: add content loading utilities for updates 2026-05-01 09:31:04 +08:00
adrianbonpin 824fbbd13f feat: rearrange game benchmark wizard and improve overall 2026-05-01 01:18:13 +08:00
adrianbonpin 293aadbff0 fix: sequential sync with 1.5s delay to avoid Steam rate limiting 2026-04-30 23:13:28 +08:00
adrianbonpin 583486de1a feat: streaming progress for bulk sync - real-time updates 2026-04-30 23:09:35 +08:00