Skip to content

fix: refreshMinInterval for use in EuiQuickSelectPopover#7905

Merged
cee-chen merged 4 commits intoelastic:mainfrom
nickofthyme:fix-min-refresh-interval-bug
Jul 23, 2024
Merged

fix: refreshMinInterval for use in EuiQuickSelectPopover#7905
cee-chen merged 4 commits intoelastic:mainfrom
nickofthyme:fix-min-refresh-interval-bug

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 requested a review from cee-chen July 23, 2024 00:15
@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
cee-chen added 2 commits July 22, 2024 18:00
Use the full `refreshMinInterval` prop for EuiSuperDatePicker subcomponents - we use `minInterval` for the refresh component directly

+ unify types
Copy link
Contributor

@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
@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 <elasticmachine@users.noreply.github.com>
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

Comments