feat(sort): persist sort order in URL as ?sort= param
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 33s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m9s
Build and Push Docker Images / Build Pipeline (Meltano + dbt + Airflow) (push) Successful in 31s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s

Sort was local state, lost on navigation. Now reads from
searchParams.get('sort') and pushes to URL on change.
'default' removes the param to keep URLs clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-30 10:10:28 +01:00
parent cd6a5d092c
commit bd4e71dd30
2 changed files with 18 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ interface HomePageProps {
page?: string;
postcode?: string;
radius?: string;
sort?: string;
}>;
}