From 42df6a786f1f0a9dadd9457000a57a0653d41367 Mon Sep 17 00:00:00 2001 From: larssand Date: Sat, 7 Nov 2026 23:24:41 +0100 Subject: [PATCH] fix(houseofrc): explain why no transponder matched (1.79.1) --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- src/app.js | 2 ++ src/houseofrc_view.js | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80e2582..f81ea86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ The application version is maintained in `package.json` and displayed in the adm No changes recorded yet. +## 1.79.1 + +- **Fetch from House of RC:** when no transponder matches, the dialog now explains why (House of RC only knows transponders the drivers added to their profile there, with the full number) instead of just "0 of 12". + ## 1.79.0 - **Drivers from House of RC:** Drivers → **🏠 Fetch from House of RC** looks up every transponder in one go and lists what differs: the name, the brand and the car (e.g. "7700001 → Anna Andersson · Associated B7"). Only empty fields, or a name that is just the transponder number, are pre-ticked; nothing is overwritten unless you tick it. Drivers whose name matches are linked to their House of RC member for posting results later. Typing a known transponder for a new driver fills in an empty name and brand. Changing a driver's transponder removes the link. diff --git a/package-lock.json b/package-lock.json index a255f2b..836a6d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rc-racecore", - "version": "1.79.0", + "version": "1.79.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rc-racecore", - "version": "1.79.0", + "version": "1.79.1", "hasInstallScript": true, "dependencies": { "better-sqlite3": "^12.11.1", diff --git a/package.json b/package.json index 3de8345..1ec5255 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rc-racecore", - "version": "1.79.0", + "version": "1.79.1", "private": true, "description": "RC RaceCore live timing and race control with AMMC ingest and SQLite persistence", "engines": { diff --git a/src/app.js b/src/app.js index a2a42f0..40a688c 100644 --- a/src/app.js +++ b/src/app.js @@ -2191,6 +2191,7 @@ const TRANSLATIONS = { "houseofrc.import_no_transponders": "Inga förare har transponder ännu.", "houseofrc.import_summary": "{found} av {asked} transpondrar finns på House of RC.", "houseofrc.import_nothing": "Allt stämmer redan, inget att uppdatera.", + "houseofrc.import_none_found": "Ingen träff. House of RC känner bara till transpondrar som förarna själva lagt in på sin profil där, med hela numret (oftast 7 siffror). Testnummer som 1001 finns inte.", "houseofrc.import_hint": "Bocka i det som ska ändras. Bara tomma fält är förvalda, inget skrivs över utan att du väljer det.", "houseofrc.import_model": "Bil", "houseofrc.import_apply": "Uppdatera valda", @@ -4372,6 +4373,7 @@ const TRANSLATIONS = { "houseofrc.import_no_transponders": "No driver has a transponder yet.", "houseofrc.import_summary": "{found} of {asked} transponders are on House of RC.", "houseofrc.import_nothing": "Everything already matches, nothing to update.", + "houseofrc.import_none_found": "No match. House of RC only knows transponders the drivers have added to their own profile there, with the full number (usually 7 digits). Test numbers like 1001 are not there.", "houseofrc.import_hint": "Tick what to change. Only empty fields are pre-ticked; nothing is overwritten unless you choose it.", "houseofrc.import_model": "Car", "houseofrc.import_apply": "Update selected", diff --git a/src/houseofrc_view.js b/src/houseofrc_view.js index 60797d7..d0c4e0a 100644 --- a/src/houseofrc_view.js +++ b/src/houseofrc_view.js @@ -115,7 +115,7 @@ export async function openHouseOfRcDriverImport({ state, t, escapeHtml, saveStat const summary = t("houseofrc.import_summary", { found, asked: result.asked }); const changes = plan.filter((row) => row.nameDiffers || row.brandDiffers || !row.linked); if (!changes.length) { - body.innerHTML = `

${escapeHtml(summary)}

${escapeHtml(t("houseofrc.import_nothing"))}

`; + body.innerHTML = `

${escapeHtml(summary)}

${escapeHtml(t(found ? "houseofrc.import_nothing" : "houseofrc.import_none_found"))}

`; return; } const cell = (row, field, current, incoming) => (row[`${field}Differs`]