Skip to content

[EuiSearchBar] Migrate from class to function component #9464

Closed

Description

@weronikaolejniczak

EuiSearchBar is a search input with filter controls, query parsing, and suggestion support. Commonly used across Kibana for search UIs.

  • File: components/search_bar/search_bar.tsx
  • Class size: 167 lines
  • State: query, queryText, error, isHintVisible
  • Lifecycle: getDerivedStateFromProps

Migration notes:

The getDerivedStateFromProps pattern needs careful conversion — likely to a controlled component pattern or useMemo/useEffect sync. The rest is standard state.

Acceptance criteria:

  • Convert to function component with hooks
  • Correctly handle getDerivedStateFromProps → props-to-state sync
  • Maintain query parsing and filter integration
  • All existing tests pass

Activity

  1. added
    help wanted
    low hanging fruit
    on Mar 12, 2026
  2. github-actions commented on Mar 12, 2026

    @github-actions

    👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.

  3. Dmc0125 commented on May 12, 2026

    @Dmc0125
    Contributor

    Hi, I'd like to work on this if it's still available.

  4. weronikaolejniczak commented on May 12, 2026

    @weronikaolejniczak
    ContributorAuthor

    @Dmc0125 hey! It is available, go ahead. As a rule, we do not assign issues to external contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedlow hanging fruit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions