Add one change & crime

This commit is contained in:
Andras Schmelczer 2026-06-14 14:51:29 +01:00
parent 8e4c56bb0d
commit 54fbcb1ea6
17 changed files with 306 additions and 154 deletions

View file

@ -150,6 +150,12 @@ export function useExportController({
const params = new URLSearchParams();
if (isListMode) {
params.set('postcodes', postcodeList.join(','));
// Pass the active filters so the export keeps its two sheets — "Selected"
// (the filtered feature columns) and "All Data" — even in list mode. The
// server uses them only to pick columns; the supplied postcodes still
// drive which rows appear.
const filterStr = buildFilterString(filters, features);
if (filterStr) params.set('filters', filterStr);
if (shareCode) params.set('share', shareCode);
} else {
const { south, west, north, east } = bounds!;