WarUI

Saved view switcher UI

GRID-A21-F19P2beyond-baselinePlanned

An optional, accessible toolbar component for choosing, saving and managing views. It shows the active view, a modified-since-applied indicator, and grouping into personal and shared views. It is built entirely on the public views API so that teams can replace it with their own UI.

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

Live example

A grid with the ViewSwitcher showing two personal views and two shared views.

Expected behavior

Choosing a view applies it. Modifying the grid adds a modified marker and enables 'Save changes' and 'Discard'. Shared views are read-only and offer only 'Save as copy'.

Planned API surface

ViewSwitcher componentviews APIisStateDirtyviewSwitcher: {showShared, allowCreate, allowDelete}

Acceptance criteria

  • The switcher follows the menu button pattern, with arrow-key navigation and type-ahead. (pending)
  • The modified marker reflects isStateDirty relative to the applied view. (pending)
  • Read-only shared views cannot be overwritten through the UI. (pending)
  • The component exposes all labels for localisation. (pending)
  • All actions are also available programmatically. (pending)