fix(houseofrc): explain why no transponder matched (1.79.1)
This commit is contained in:
1 parent
3829ca1cab
commit
42df6a786f
5 files changed
+10
-4
No files matched your search
@@ -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.
|
||||
|
||||
Generated
+2
-2
@@ -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",
|
||||
|
||||
+1
-1
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 = `<p>${escapeHtml(summary)}</p><p>${escapeHtml(t("houseofrc.import_nothing"))}</p>`;
|
||||
body.innerHTML = `<p>${escapeHtml(summary)}</p><p>${escapeHtml(t(found ? "houseofrc.import_nothing" : "houseofrc.import_none_found"))}</p>`;
|
||||
return;
|
||||
}
|
||||
const cell = (row, field, current, incoming) => (row[`${field}Differs`]
|
||||
|
||||
Reference in new issue
Block a user