Skip to content

Rename surviving filter terminology to Dashboard variables #459

Description

@BorisTyshkevich

Found while shipping #447 phase 1. The curated-filter model is gone, but surviving runtime, UI and CSS identifiers still use filter for concepts that now represent inferred Dashboard variables.

This issue is terminology-only. It must not change behaviour.

Runtime and API renames

Rename the surviving variable runtime types and fields:

  • ViewerFilterState, ViewerFilterStatus, ViewerFilterOption, FilterRuntime
  • DashboardViewState.filters / filterDiagnostics
  • setFilter, applyFilter, applyFilters, clearFilter, clearAllFilters, resetFilters, getFilterField
  • DashboardTimeRangeGroup.fromFilterId / .toFilterId
  • TimeRangePairCandidate.fromFilterId / .toFilterId
  • src/ui/filter-bar.ts, FilterBarHandle, FilterBarApp
  • src/core/filter-width.ts

Use names that describe Dashboard variables rather than the removed curated-filter model.

UI, CSS and fixtures

Rename the remaining filter-oriented selectors and update their consumers together:

  • .dash-filters
  • .dash-filter-host
  • .dash-filter-time
  • .dash-filter-ordinary
  • .dash-clear-filters
  • .dash-filter-diagnostics

The time-range and mobile E2E fixtures use several of these names and must move in the same change.

Rename .ms-overlay, which survives only as src/ui/popover.ts's default overlayClassName and in the time-range E2E selector. The ms- prefix came from the deleted multi-select control.

Persisted and interchange exceptions

Do not rename asb:dashFilters without a real migration. Changing that key silently discards saved Dashboard variable values. Either:

  • keep the persisted key and document why its historical name remains, or
  • add an explicit migration that preserves all values.

Do not rename identifiers that belong to read-only legacy interchange schemas merely for consistency. dashboard-v1 must continue describing curated filters while v1 bundles and stored-workspace v2/v3/v4 records remain supported.

Acceptance

  • No surviving runtime, source filename or CSS identifier names the removed curated-filter concept, except documented persisted/interchange compatibility exceptions.
  • Existing values under asb:dashFilters survive the upgrade.
  • No behaviour changes.
  • npm test, npm run check:arch, and npm run test:e2e on Chromium and WebKit stay green.

Split from #457. Related to #447 phase 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorRestructuring without user-facing behavior change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions