houses: default filter max €2000, 2 bedrooms (3 rooms), 50 m²
All checks were successful
Deploy production / deploy (push) Successful in 2m46s

This commit is contained in:
Daisy
2026-10-24 15:30:48 +00:00
parent 2bd668bf5e
commit 112c31d194

View File

@@ -33,7 +33,7 @@ import { GOUDA_REGION } from '#lib/house-tracker/address.js';
import type { Actions, PageServerLoad } from './$types';
const REGION = GOUDA_REGION;
const DEFAULTS = { city: 'region', max: '1800', area: '35' } as const;
const DEFAULTS = { city: 'region', max: '2000', area: '50', rooms: '3' } as const;
const int = (value: string | null) => {
const n = Number(value);
@@ -54,7 +54,7 @@ export const load: PageServerLoad = async (event) => {
const min = int(params.get('min'));
const max = int(given('max', DEFAULTS.max));
const minArea = int(given('area', DEFAULTS.area));
const minRooms = int(params.get('rooms'));
const minRooms = int(given('rooms', DEFAULTS.rooms));
const source = (params.get('source') ?? '').replace(/[^a-z0-9-]/g, '');
const showRemoved = params.get('removed') === '1';
const status = params.get('status') ?? '';