Skip to content

Feature/map search filters

Max de Vries requested to merge feature/map-search-filters into master

This merge request:

  • Fixes wrong typings for button htmlType props, which caused TS issues in the frontend
  • Adds helper functions to map index UI state filters, like menu, refinementList and toggle to a single search filters parameter string that can be used for passing along filters from one search context to another (like with the map)

Example usage:

const indexUiState = uiState[APP_OPTIONS.parameters.searchkitIndexAllProjects];

// Copy over the filters from this search to the map search.
setSearchParameters({
  filters: getSearchFiltersParameter(indexUiState || {}),
  page: 0,
});

Merge request reports

Loading