fix(ci): the second round of gates after the places changes

- index.css stays at its size: the map canvas colour moves to its own
  stylesheet.
- The rating badge on map markers takes its amber and white from a class in
  ratingBadge.css instead of inline literals; the theme entry drops with it.
- Strict mode: the identity a link joins is resolved without a widened union,
  the description of an entry's origins is string or undefined, and the map
  search rows are typed.
- knip: PLACE_NAME_ATTR is module private, the linked-by enum names the values
  the service writes, and the unlink contract is its own described schema
  rather than a second name for the use schema.
- The duplicates hook test reads toasts through a module mock instead of the
  window hook; react-hooks/refs is lowered to the count the run measured.
- Tests follow the rename to Places and the list icon on an edit.
This commit is contained in:
Maurice
2026-11-29 16:38:53 +01:00
parent bacc6a29a7
commit f99c7f5421
17 changed files with 51 additions and 37 deletions
+2 -1
View File
@@ -61,5 +61,6 @@ export async function searchMapSpots(query: string, lang?: string): Promise<MapM
const q = query.trim();
if (!q || isEffectivelyOffline()) return [];
const res = lang ? await mapsApi.search(q, lang) : await mapsApi.search(q);
return (res?.places ?? []).map((row) => toMatch(row, q)).filter((m): m is MapMatch => m !== null);
const rows: readonly unknown[] = res?.places ?? [];
return rows.map((row: unknown) => toMatch(row, q)).filter((m: MapMatch | null): m is MapMatch => m !== null);
}