Skip to content

refactor: convert FieldValueToggleFilter to function component#9522

Open
CollegeRideOut wants to merge 1 commit intoelastic:mainfrom
CollegeRideOut:field-value-toggle-filter-function
Open

refactor: convert FieldValueToggleFilter to function component#9522
CollegeRideOut wants to merge 1 commit intoelastic:mainfrom
CollegeRideOut:field-value-toggle-filter-function

Conversation

@CollegeRideOut
Copy link

Summary

Convert FieldValueToggleFilter from a class component to a stateless function component.

  • Refactored to use FC<FieldValueToggleFilterProps> style
  • Stateless render-only; no functional changes
  • Prettier formatting applied

API Changes

None — this is an internal component and its API hasn’t changed.

Screenshots

Not applicable — no visual changes.

Impact Assessment

  • 🔴 Breaking changes — None
  • 💅 Visual changes — None
  • 🧪 Test impact — All existing tests pass
  • 🔧 Hard to integrate — N/A

Impact level: 🟢 None

Release Readiness

  • Documentation — N/A
  • Figma — N/A
  • Migration guide — N/A
  • Adoption plan — N/A

QA instructions for reviewer

  • Verify the FieldValueToggleFilter behaves as before in Storybook and any demo pages
  • Confirm that toggling the filter updates the query as expected

Checklist before marking Ready for Review

  • Filled out all sections above
  • QA: Verified light/dark mode, accessibility, keyboard navigation
  • Tests: Existing Jest/Cypress tests pass
  • Changelog: Not needed (internal component)
  • Breaking changes: None

@CollegeRideOut CollegeRideOut requested a review from a team as a code owner March 21, 2026 00:13
@cla-checker-service
Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
3e4e775

Please, read and sign the above mentioned agreement if you want to contribute to this project

@github-actions
Copy link

👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually?

@github-actions github-actions bot added the community contribution (Don't delete - used for automation) label Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community contribution (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant