test: hold the branch's tests to the type and lint gates

The booking save helper answers a Reservation the way the dialogs' onSave
does, and takes the payload the sheets read back. The export tests resolve
their routing promise without non-null assertions, the autocomplete test
reads its own console spy, and the Photon tally test asks its five dropped
questions together instead of awaiting in a loop. The Photon address line
falls back to empty when a feature has none.

The repair test now expects the dashboard to place the cleared beach in
Germany through the borders, as the Atlas map does since #2875. The client
lint baseline follows the counts this branch lowered.
This commit is contained in:
Maurice
2026-10-29 15:24:49 +01:00
parent 724857fc73
commit 2a51a1a842
8 changed files with 42 additions and 34 deletions
@@ -148,7 +148,7 @@ export function asSuggestion(feature: PhotonFeature): Suggestion | null {
// place is. Cut by the name rather than at its first comma, which a name can
// hold; a house without a name is titled by its number, as Nominatim does.
const name = feature.properties.name?.trim();
const line = hit.display_name;
const line = hit.display_name ?? '';
const [head = '', ...rest] = line.split(', ');
const mainText = name || head;
if (!mainText) return null;