Problem
Search / filter / sort controls should be disabled when the underlying list has no items at all. Some surfaces already do this; others (notably Automations) leave the controls interactive on an empty set.
Current behaviour
- DataTable already disables search/filters when
data.length === 0 && !hasActiveFilters (searchDisabled in data-table.tsx ~L465–469, applied to DataTableFilters).
- Integrations catalog mirrors that with a local
searchDisabled (integrations.tsx).
- Automations (
automations-grid.tsx): loading disables search; true empty org catalog hides the toolbar; but when the catalog has entries and the Installed tab (or filter) shows zero rows, CatalogToolbar search stays enabled with no disabled flag (~L695–701). Same class of gap likely on other catalog toolbars that don’t pass disabled for empty scopes.
- Skills/agents hide the toolbar on total empty, but filter/search affordances on empty scoped tabs are inconsistent.
Proposed change
- Establish one rule: if the unfiltered dataset for the current scope is empty, disable search/filter/sort (keep them enabled only when the empty state is “no matches for current query/filters”).
- Fix Automations (Installed-empty and peers) to pass
disabled: true on CatalogToolbar search (and any filter controls) in that case.
- Sweep other catalogs / tables that diverge from DataTable’s
searchDisabled behaviour.
Acceptance criteria
Affected service
Platform (web app)
Problem
Search / filter / sort controls should be disabled when the underlying list has no items at all. Some surfaces already do this; others (notably Automations) leave the controls interactive on an empty set.
Current behaviour
data.length === 0 && !hasActiveFilters(searchDisabledindata-table.tsx~L465–469, applied toDataTableFilters).searchDisabled(integrations.tsx).automations-grid.tsx): loading disables search; true empty org catalog hides the toolbar; but when the catalog has entries and the Installed tab (or filter) shows zero rows,CatalogToolbarsearch stays enabled with nodisabledflag (~L695–701). Same class of gap likely on other catalog toolbars that don’t passdisabledfor empty scopes.Proposed change
disabled: trueonCatalogToolbarsearch (and any filter controls) in that case.searchDisabledbehaviour.Acceptance criteria
Affected service
Platform (web app)