M39: harden application and acceptance gates
MobilityOps acceptance / backend (push) Failing after 45s
MobilityOps acceptance / frontend (push) Successful in 32s
MobilityOps acceptance / e2e (push) Skipped

This commit is contained in:
NuklearRabbit
2026-08-17 03:17:44 +02:00
parent a9f48d6880
commit ae39a8947f
62 changed files with 5277 additions and 202 deletions
+7 -3
View File
@@ -28,7 +28,7 @@ export function Vehicles() {
if (value === null || value === "" || value === false) next.delete(key);
else next.set(key, String(value));
});
setSearchParams(next);
setSearchParams(next, { replace: true });
}
useEffect(() => {
@@ -41,10 +41,14 @@ export function Vehicles() {
if (location) params.set("location", location);
params.set("page", String(page));
params.set("page_size", "25");
const controller = new AbortController();
api
.get<Page<Vehicle>>(`/api/v1/vehicles?${params.toString()}`)
.get<Page<Vehicle>>(`/api/v1/vehicles?${params.toString()}`, { signal: controller.signal })
.then(setVehicles)
.catch(() => setError(t("list.unavailable")));
.catch(() => {
if (!controller.signal.aborted) setError(t("list.unavailable"));
});
return () => controller.abort();
}, [status, attentionOnly, query, location, page, t]);
return (