WarUI

Filter presets

GRID-A10-F22P2beyond-baselinePlanned

Named, saved combinations of filters can be applied with one click. Presets can be developer-defined (read-only) or user-saved through a pluggable storage adapter. They capture recurring views such as 'Overdue this week'.

Planned. This page shows the specification from issue #187. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with 3 built-in presets and a preset dropdown. The storage adapter is set to in-memory.

Expected behavior

Applying a preset replaces the current filters and shows the preset as active. Editing any filter marks the preset as 'modified'. Built-in presets cannot be deleted. Relative date presets ('last 7 days') are resolved at the moment they are applied.

Planned API surface

filterPresets[]applyFilterPreset(id)saveFilterPreset(name)deleteFilterPreset(id)presetStorageAdapteronFilterPresetAppliedactivePresetId

Acceptance criteria

  • Applying a preset sets the filter model exactly to the preset's model and fires onFilterPresetApplied. (pending)
  • Any later user change sets activePresetId to null and shows a 'modified' indicator. (pending)
  • Built-in presets are read-only; user presets can be renamed and deleted. (pending)
  • Relative date tokens are resolved against the current time and the configured timezone when the preset is applied. (pending)
  • A preset that references missing columns applies its remaining parts and warns. (pending)