Game profile: upstream failure logs and retry affordance
Build & Push / Lint & Build (push) Successful in 1m17s
Build & Push / Build & Push Image (push) Successful in 28s
Build & Push / Trigger Deploy (push) Successful in 1s

- Log Steam, ITAD and detectables upstream failures with
  status codes for diagnosis
- Show retry affordance when all profile sources come back
  empty or the load fails
This commit is contained in:
fristy committed 2026-09-11 06:29:54 +03:00
1 parent cbbbc3effa
commit d778a18a49
5 files changed
+43 -2

No files matched your search

+4
View File
@@ -92,6 +92,7 @@ async function getDetectables(): Promise<DetectableEntry[]> {
next: { revalidate: 86_400 },
});
if (!response.ok) {
console.error(`detectables failed: ${response.status}`);
return detectablesCache?.data ?? [];
}
const data = (await response.json()) as DetectableEntry[];
@@ -153,6 +154,7 @@ async function getSteamDetails(
{ next: { revalidate: 86_400 } },
);
if (!response.ok) {
console.error(`steam details failed: ${steamId} ${response.status}`);
return null;
}
const json = (await response.json()) as Record<string, SteamAppDetails>;
@@ -177,6 +179,7 @@ async function getSteamReviewSummary(steamId: string): Promise<GameReviewSummary
"?json=1&language=all&purchase_type=all&num_per_page=0";
const response = await fetch(url, { next: { revalidate: 3600 } });
if (!response.ok) {
console.error(`steam reviews failed: ${steamId} ${response.status}`);
return null;
}
const json = (await response.json()) as { query_summary?: SteamReviewQuery };
@@ -398,6 +401,7 @@ async function itadFetch<T>(path: string, init?: RequestInit): Promise<T | null>
},
);
if (!response.ok) {
console.error(`itad failed: ${path.split("?")[0]} ${response.status}`);
return null;
}
return (await response.json()) as T;
+2
View File
@@ -46,6 +46,8 @@
"openOnIgdb": "IGDB",
"loading": "Spieldaten werden geladen...",
"loadError": "Spieldaten konnten nicht geladen werden.",
"retry": "Erneut versuchen",
"partialFail": "Einige Daten konnten nicht geladen werden.",
"screenshots": "Screenshots",
"reviewsUnit": "Bewertungen",
"scrollBack": "Zurück",
+2
View File
@@ -46,6 +46,8 @@
"openOnIgdb": "IGDB",
"loading": "Loading game info...",
"loadError": "Couldn't load game info.",
"retry": "Retry",
"partialFail": "Some data failed to load.",
"screenshots": "Screenshots",
"reviewsUnit": "reviews",
"scrollBack": "Back",
+2
View File
@@ -46,6 +46,8 @@
"openOnIgdb": "IGDB",
"loading": "Oyun bilgileri yükleniyor...",
"loadError": "Oyun bilgileri yüklenemedi.",
"retry": "Tekrar Dene",
"partialFail": "Bazı veriler yüklenemedi.",
"screenshots": "Görseller",
"reviewsUnit": "değerlendirme",
"scrollBack": "Geri",