eui icon indicating copy to clipboard operation
eui copied to clipboard

[EuiQuickSelect] Migrate from class to function component

Open weronikaolejniczak opened this issue 8 months ago • 3 comments

EuiQuickSelect provides time unit arithmetic controls (e.g., "Last 15 minutes") within EuiSuperDatePicker's quick select popover.

  • File: components/date_picker/super_date_picker/quick_select_popover/quick_select.tsx
  • Class size: 249 lines
  • State: timeTense, timeValue, timeUnits
  • Lifecycle: None

Migration notes:

No lifecycle methods. State is straightforward. Complexity is in the time arithmetic validation logic. Internal to SuperDatePicker.

Acceptance criteria:

  • [ ] Convert to function component with useState
  • [ ] Maintain time arithmetic and validation
  • [ ] All existing tests pass

weronikaolejniczak avatar Mar 12 '26 09:03 weronikaolejniczak

👋 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.

github-actions[bot] avatar Aug 10 '26 14:08 github-actions[bot]

Hi! I'd like to work on this. I'm planning to migrate EuiQuickSelect to a function component using hooks while preserving the existing time arithmetic, keyboard behavior, validation, and public API. I'll keep the change scoped to this migration and make sure the existing tests and lint checks pass.

abdeltaehass avatar Aug 12 '26 23:08 abdeltaehass

@abdeltaehass sure, we're welcoming contributions! Thank you @abdeltaehass 🙏🏻

weronikaolejniczak avatar Aug 13 '26 07:08 weronikaolejniczak