[EuiQuickSelect] Migrate from class to function component
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
👋 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.
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 sure, we're welcoming contributions! Thank you @abdeltaehass 🙏🏻