Skip to content

Remove dead search-results inputs and styles left over from the list-item generalization #8660

Closed

Description

@aglinxinyuan

Task Summary

SearchResultsComponent declares three inputs it never reads: searchKeywords, showResourceTypes and pid. Its stylesheet, and the shared section-style.scss, also carry rules that match no element they can reach. #2793 (2024-08-20, "Generalize List Item") replaced the per-type list items, and the nz-layout / nz-sider resource-type icon wrapped around each one, with the generic ListItemComponent. That deleted every template read of the three inputs, but the inputs and their styles stayed behind.

  • searchKeywords fed each old list item's [keywords] input, which drove the search-term highlight. Both parents, SearchComponent and HubSearchResultComponent, still recompute it from the filter bar on every search and bind it into a component that ignores it.
  • showResourceTypes toggled the per-type icon sider. Both parents still bind [showResourceTypes]="true".
  • pid was forwarded to the workflow list item. Nothing binds it.
  • search-results.component.scss: nz-sider, nz-content and .resource-type-icon styled the removed wrapper. .dataset-search-bar, the .dataset-list-item { … } block, .subsection-grid-container and .ant-btn-icon-only match nothing in the component's own template, which is the only template an Emulated component stylesheet can reach. The last two also duplicate the identical rules in section-style.scss, which this stylesheet already @uses.
  • section-style.scss: .section-title .management-panel and .section-title .go-back-button have not matched anything in a template that includes the stylesheet since Moved General Search from the Sidebar to the Top Bar #2776 extracted it. The search page's back button lives in SearchComponent, whose stylesheet does not include it. There is also a commented-out .utility-button-group rule, and a header comment that still calls the layout "shared between workflows and files section".

FiltersComponent.getSearchKeywords() is not part of this: the search requests themselves still call it.

Dead for about two years. Pure deletion, no behaviour change.

Task Type

  • Refactor / Cleanup

Activity

  1. added
    frontend
    on Sep 24, 2026
  2. added a commit that references this issue on Sep 27, 2026
    63db8e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

frontend

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions