Skip to content

[EuiTreeView] Migrate from class to function component #9496

@weronikaolejniczak

Description

@weronikaolejniczak

EuiTreeView renders a hierarchical tree with expandable nodes, keyboard navigation, and ARIA tree semantics.

  • File: components/tree_view/tree_view.tsx
  • Class size: 254 lines
  • State: openItems, activeItem, treeID, expandChildNodes
  • Lifecycle: componentDidUpdate

Migration notes:

Recursive rendering pattern with multiple state fields. componentDidUpdate manages expand-all behavior. Wrapped with withEuiTheme.

Acceptance criteria:

  • Convert to function component with hooks
  • Replace withEuiTheme with useEuiTheme
  • Maintain keyboard navigation and ARIA tree semantics
  • All existing tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions