fix(ci): repair map fixtures and keep renderer dependencies layered

Use the engine write lock for map defaults and clean the metadata-free test snapshot with Kysely. Model the Leaflet bridge option, keep the renderer failure state below the settings store, and make the tile tests independent of the transpiler quote style.
This commit is contained in:
Maurice
2026-11-30 16:34:55 +01:00
parent 5c133bbf40
commit 54c54d5e65
14 changed files with 86 additions and 66 deletions
+5 -4
View File
@@ -282,7 +282,6 @@ export class SettingsService {
// null/undefined means "reset to built-in default" — delete the row
if (value === null || value === undefined) {
await this.appSettings.deleteValue(appKey);
if (key === 'map_provider') await this.appSettings.deleteValue(MAP_PROVIDER_DEFAULT_CHOSEN_KEY);
continue;
}
@@ -300,9 +299,11 @@ export class SettingsService {
? (maybe_encrypt_api_key(String(value)) ?? String(value))
: JSON.stringify(value);
await this.appSettings.setValue(appKey, stored);
// The admin page saves a field only when the admin sets it, so a stored
// provider default is always a choice a managed install has to keep.
if (key === 'map_provider') await this.appSettings.setValue(MAP_PROVIDER_DEFAULT_CHOSEN_KEY, 'true');
}
// An admin provider change and its marker are one transaction.
if (Object.hasOwn(partial, 'map_provider')) {
if (partial.map_provider == null) await this.appSettings.deleteValue(MAP_PROVIDER_DEFAULT_CHOSEN_KEY);
else await this.appSettings.setValue(MAP_PROVIDER_DEFAULT_CHOSEN_KEY, 'true');
}
});
}