From 3714afa22f6a596a7102ebb690dbb2b4a36e57c2 Mon Sep 17 00:00:00 2001 From: jtrzupek Date: Mon, 15 Jun 2026 09:35:49 +0200 Subject: [PATCH] fix(mobile): capture site/origin text params in bug-report auto-context SiteScenes passes the tube as origin/name (strings), not UUIDs, so the existing UUID-only auto-context loop dropped them. Reports like 'ingest of this site has been stuck 2 days' (14f3a655) arrived without any site identifier. Add a second loop for known string identity params (origin/name/sitetag/tag/q), length-capped, so per-site/per-performer reports become actionable. Co-Authored-By: Claude Fable 5 --- mobile/src/components/BugReportFAB.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mobile/src/components/BugReportFAB.tsx b/mobile/src/components/BugReportFAB.tsx index 821ddf7..3c79feb 100644 --- a/mobile/src/components/BugReportFAB.tsx +++ b/mobile/src/components/BugReportFAB.tsx @@ -173,6 +173,16 @@ export function BugReportFAB({ client, appVersion, navRef }: Props) { extraContext.push(`${key}=${val}`); } } + // Identyfikatory tekstowe (nie-UUID): SiteScenes przekazuje stronę jako + // `origin` (sitetag) + `name` (display), PerformerScenes/TagScenes bywa + // po nazwie. Bez tego zgłoszenie "ingest tej strony stoi" nie mówi której + // (bug-report 14f3a655 2026-06-14). Cap długości, żeby nie wlec listy. + for (const key of ['origin', 'name', 'sitetag', 'tag', 'q']) { + const val = params[key]; + if (typeof val === 'string' && val.trim() && !UUID_RE.test(val)) { + extraContext.push(`${key}=${val.trim().slice(0, 64)}`); + } + } } catch { // navRef nie ready — zostawiamy puste, backend i tak przyjmie nullable }