feat(houseofrc): re-fetch late entries and withdrawals, remember class mapping, offer brand differences (1.82.0)
This commit is contained in:
1 parent
cdeb6b0402
commit
f4a62b92d2
13 files changed
+240
-28
No files matched your search
+29
-2
@@ -2212,12 +2212,24 @@ const TRANSLATIONS = {
|
||||
"houseofrc.entries_empty": "Inga anmälda förare än.",
|
||||
"houseofrc.entries_class": "Klass hos oss",
|
||||
"houseofrc.entries_hor_class": "Klass på House of RC",
|
||||
"houseofrc.refresh_button": "Hämta ändringar från House of RC",
|
||||
"houseofrc.refresh_hint": "Nya anmälningar och avanmälningar sedan racet skapades ({name})",
|
||||
"houseofrc.refresh_title": "Ändrade anmälningar",
|
||||
"houseofrc.refresh_nothing": "Inga ändringar – deltagarna stämmer med House of RC.",
|
||||
"houseofrc.refresh_added": "Nya anmälningar ({count})",
|
||||
"houseofrc.refresh_withdrawn": "Avanmälda eller på reservlistan ({count})",
|
||||
"houseofrc.refresh_note": "Bara heat som inte har körts ändras, precis som när du bockar i deltagare för hand. Förare du lagt till själv berörs inte.",
|
||||
"houseofrc.refresh_apply": "Uppdatera deltagare",
|
||||
"houseofrc.class_remembered": "Som förra gången",
|
||||
"houseofrc.class_exact": "Samma namn",
|
||||
"houseofrc.class_guess": "Gissad – kontrollera",
|
||||
"houseofrc.entries_brand_hint": "Bilen i anmälan skiljer sig från märket hos oss. Bocka i för att ta anmälans.",
|
||||
"houseofrc.entries_new_class": "Ny klass: {name}",
|
||||
"houseofrc.err_not_your_event": "Den här tävlingen tillhör en annan klubb. Anmälningarna kräver nyckeln för klubben som arrangerar den.",
|
||||
"houseofrc.err_event_not_found": "Hittar ingen sådan tävling på House of RC.",
|
||||
"houseofrc.connected_org": "✅ Ansluten som {name} (organisation {id}) · {limit} anrop/min",
|
||||
"houseofrc.entries_all": "Alla",
|
||||
"houseofrc.entries_hint": "Befintliga förare återanvänds och behåller sitt namn; nya förare skapas med transpondern från anmälan. Hämta igen för nästa klass.",
|
||||
"houseofrc.entries_hint": "Befintliga förare återanvänds och behåller namn och märke om du inte bockar i ett annat; nya förare skapas med transpondern och bilen från anmälan. Klassvalet kommer RaceCore ihåg till nästa gång. Hämta igen för nästa klass.",
|
||||
"houseofrc.entries_apply": "Fyll i Race-guiden",
|
||||
"houseofrc.entry_linked": "Finns",
|
||||
"houseofrc.entry_copy": "Finns i annan klass",
|
||||
@@ -4420,12 +4432,24 @@ const TRANSLATIONS = {
|
||||
"houseofrc.entries_empty": "No drivers entered yet.",
|
||||
"houseofrc.entries_class": "Our class",
|
||||
"houseofrc.entries_hor_class": "Class on House of RC",
|
||||
"houseofrc.refresh_button": "Fetch changes from House of RC",
|
||||
"houseofrc.refresh_hint": "New entries and withdrawals since the race was created ({name})",
|
||||
"houseofrc.refresh_title": "Changed entries",
|
||||
"houseofrc.refresh_nothing": "No changes – the participants match House of RC.",
|
||||
"houseofrc.refresh_added": "New entries ({count})",
|
||||
"houseofrc.refresh_withdrawn": "Withdrawn or on the waiting list ({count})",
|
||||
"houseofrc.refresh_note": "Only heats that haven't run change, just like ticking participants by hand. Drivers you added yourself are not affected.",
|
||||
"houseofrc.refresh_apply": "Update participants",
|
||||
"houseofrc.class_remembered": "As last time",
|
||||
"houseofrc.class_exact": "Same name",
|
||||
"houseofrc.class_guess": "Guessed – please check",
|
||||
"houseofrc.entries_brand_hint": "The car in the entry differs from our brand. Tick to use the entry's.",
|
||||
"houseofrc.entries_new_class": "New class: {name}",
|
||||
"houseofrc.err_not_your_event": "This event belongs to another club. Its entries need the key of the club running it.",
|
||||
"houseofrc.err_event_not_found": "No such event on House of RC.",
|
||||
"houseofrc.connected_org": "✅ Connected as {name} (organization {id}) · {limit} requests/min",
|
||||
"houseofrc.entries_all": "All",
|
||||
"houseofrc.entries_hint": "Existing drivers are reused and keep their name; new drivers get the transponder from the entry. Fetch again for the next class.",
|
||||
"houseofrc.entries_hint": "Existing drivers are reused and keep their name and brand unless you tick another; new drivers get the transponder and car from the entry. RaceCore remembers the class choice for next time. Fetch again for the next class.",
|
||||
"houseofrc.entries_apply": "Fill the race wizard",
|
||||
"houseofrc.entry_linked": "Exists",
|
||||
"houseofrc.entry_copy": "Exists in another class",
|
||||
@@ -6593,6 +6617,8 @@ function normalizeImportedClass(classItem) {
|
||||
return {
|
||||
id: String(classItem?.id || uid("class")),
|
||||
name: String(classItem?.name || "").trim(),
|
||||
// House of RC class names this class was chosen for, so the next fetch picks it again.
|
||||
...(Array.isArray(classItem?.houseOfRcNames) && classItem.houseOfRcNames.length ? { houseOfRcNames: classItem.houseOfRcNames.map(String).slice(0, 20) } : {}),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7455,6 +7481,7 @@ function renderEventManager(eventId) {
|
||||
t,
|
||||
escapeHtml,
|
||||
normalizeEvent,
|
||||
normalizeDriver,
|
||||
ensureRaceParticipantsConfigured,
|
||||
getSessionsForEvent,
|
||||
buildEventSchedule,
|
||||
|
||||
Reference in new issue
Block a user