Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refreshMinInterval for use in EuiQuickSelectPopover #7905

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

nickofthyme
Copy link
Contributor

@nickofthyme nickofthyme commented Jul 23, 2024

Summary

Following the addition of the new refreshMinInterval prop to EuiSuperDatePicker in #7516, we missed passing this prop to EuiQuickSelectPopover

Before

Notice changing the interval from EuiAutoRefreshButton properly validates against the minInterval. But when changing the interval from within EuiQuickSelectPopover, the validation is skipped.

Zight Recording 2024-07-22 at 05 02 40 PM

After

Zight Recording 2024-07-22 at 05 01 27 PM

Related to elastic/kibana#188881

General checklist

  • Code quality checklist
    • [ ] Added or updated jest and cypress tests - Skipped, just a basic prop pass
  • Release checklist
    • A changelog entry exists and is marked appropriately.

@nickofthyme nickofthyme marked this pull request as ready for review July 23, 2024 00:23
@nickofthyme nickofthyme requested a review from a team as a code owner July 23, 2024 00:23
Use the full `refreshMinInterval` prop for EuiSuperDatePicker subcomponents - we use `minInterval` for the refresh component directly

+ unify types
Copy link
Member

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a million for catching this @nickofthyme! 🤦 I've pushed up some minor naming/copy tweaks but otherwise this looks great!

@cee-chen cee-chen enabled auto-merge (squash) July 23, 2024 01:43
@cee-chen cee-chen merged commit 5977952 into elastic:main Jul 23, 2024
4 of 5 checks passed
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@nickofthyme nickofthyme deleted the fix-min-refresh-interval-bug branch July 23, 2024 02:12
@nickofthyme
Copy link
Contributor Author

Not a problem, Thanks for the quick merge. You da best!!

jbudz pushed a commit to elastic/kibana that referenced this pull request Aug 1, 2024
`v95.4.0` ⏩ `v95.5.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v95.5.0`](https://github.com/elastic/eui/releases/v95.5.0)

- Added `minusInSquare` and `plusInSquare` glyphs to `EuiIcon`.
([#7875](elastic/eui#7875))

**Bug fixes**

- Fixed `EuiSuperDatePicker` not correctly passing `refreshMinInterval`
from the quick select popover
([#7905](elastic/eui#7905))

**CSS-in-JS conversions**

- Converted `EuiSuperDatePicker`'s form control to Emotion;
([#7904](elastic/eui#7904))
  - Removed `$euiSuperDatePickerWidth`
  - Removed `$euiSuperDatePickerButtonWidth`
  - Removed `$euiSuperDatePickerNeedsUpdatingBackgroundColor`
  - Removed `$euiSuperDatePickerNeedsUpdatingTextColor`
  - Removed `@euiSuperDatePickerText` mixin
- Converted `EuiSuperDatePicker`'s date popover content to Emotion
([#7908](elastic/eui#7908))
- Converted `EuiSuperDatePicker`'s quick select to Emotion
([#7909](elastic/eui#7909))

---------

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants