fix(map): stabilize layers menu and offline cache UX

This commit is contained in:
Codex
2026-08-09 20:27:06 +03:00
parent b70e165910
commit f645725e8c
8 changed files with 72 additions and 10 deletions
+3 -1
View File
@@ -85,7 +85,7 @@ test("reference subjects remain searchable by profile labels without a provider
id: "map.reference.station.v1",
title: "Метро",
semanticTypes: ["map.station"],
label: { mode: "attributes", fields: ["name", "official_name"] },
label: { mode: "attributes", fields: ["name", "official_name", "alternate_names"] },
};
const index = buildMapSearchIndex({
runtimeBindings: [{
@@ -93,6 +93,7 @@ test("reference subjects remain searchable by profile labels without a provider
presentationProfileId: stationProfile.id,
facts: [point("osm.node.1", "map.station", {
name: "Петроградская",
alternate_names: ["Petrogradskaya station"],
provider_note: "not searchable",
})],
}],
@@ -100,6 +101,7 @@ test("reference subjects remain searchable by profile labels without a provider
});
assert.equal(searchMapSubjects(index, "петрог").at(0)?.title, "Петроградская");
assert.equal(searchMapSubjects(index, "Petrogradskaya").at(0)?.sourceId, "osm.node.1");
assert.equal(searchMapSubjects(index, "osm.node.1").at(0)?.groupTitle, "Метро");
assert.deepEqual(searchMapSubjects(index, "provider_note"), []);
});