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.
Found while shipping #447 phase 1. The curated-filter model is gone, but surviving runtime, UI and CSS identifiers still use
filterfor 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,FilterRuntimeDashboardViewState.filters/filterDiagnosticssetFilter,applyFilter,applyFilters,clearFilter,clearAllFilters,resetFilters,getFilterFieldDashboardTimeRangeGroup.fromFilterId/.toFilterIdTimeRangePairCandidate.fromFilterId/.toFilterIdsrc/ui/filter-bar.ts,FilterBarHandle,FilterBarAppsrc/core/filter-width.tsUse 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-diagnosticsThe time-range and mobile E2E fixtures use several of these names and must move in the same change.
Rename
.ms-overlay, which survives only assrc/ui/popover.ts's defaultoverlayClassNameand in the time-range E2E selector. Thems-prefix came from the deleted multi-select control.Persisted and interchange exceptions
Do not rename
asb:dashFilterswithout a real migration. Changing that key silently discards saved Dashboard variable values. Either:Do not rename identifiers that belong to read-only legacy interchange schemas merely for consistency.
dashboard-v1must continue describing curated filters while v1 bundles and stored-workspace v2/v3/v4 records remain supported.Acceptance
asb:dashFilterssurvive the upgrade.npm test,npm run check:arch, andnpm run test:e2eon Chromium and WebKit stay green.Split from #457. Related to #447 phase 2.