Skip to content

Comments

[EuiComboBox] Clean duplicated values before adding them#8335

Merged
tkajtoch merged 7 commits intoelastic:mainfrom
dfvalero:combobox/8334-add-single-value
Mar 5, 2025
Merged

[EuiComboBox] Clean duplicated values before adding them#8335
tkajtoch merged 7 commits intoelastic:mainfrom
dfvalero:combobox/8334-add-single-value

Conversation

@dfvalero
Copy link
Contributor

@dfvalero dfvalero commented Feb 19, 2025

Summary

Closes #8334

This PR updates EuiComboBox by cleaning duplicated values when having a delimiter prop.

QA

  • Paste some duplicated values and verify that only one is added.

Demo

demo.mov

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
    • If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist~
    • If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)

@dfvalero dfvalero requested a review from a team as a code owner February 19, 2025 12:11
@dfvalero dfvalero added the bug label Feb 19, 2025
@dfvalero dfvalero changed the title Clean duplicated values before adding them [EuiComboBox] Clean duplicated values before adding them Feb 19, 2025
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiComboBox` by cleaning duplicated values when having a delimiter prop.
Copy link
Member

Choose a reason for hiding this comment

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

While this certainly could be classified as a bug fix, I think we should mark it as a breaking change. This is something customer applications might've been aware of and use in specific ways

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated!

@dfvalero dfvalero requested a review from tkajtoch February 19, 2025 14:01
@JasonStoltz
Copy link
Member

We should wait to merge this until after next week's release. Next week's release will already be quite large.

@dfvalero
Copy link
Contributor Author

Hey @JasonStoltz , sure. Feel free to approve the PR once the release is finished.

@tkajtoch
Copy link
Member

tkajtoch commented Mar 5, 2025

FYI I updated the changelog type to bug fix, as it was initially set to. After testing the changes again, I realized they fix a very specific usage and don't impact the behavior of the whole component. Sorry for the back and forth on this :D

@dfvalero
Copy link
Contributor Author

dfvalero commented Mar 5, 2025

Hi @tkajtoch Thanks, no problem!

@tkajtoch
Copy link
Member

tkajtoch commented Mar 5, 2025

We'll merge this PR and release the changes in the next hour :)

@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

Copy link
Member

@tkajtoch tkajtoch left a comment

Choose a reason for hiding this comment

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

Changes look and work great. Thanks for the contribution!

@tkajtoch tkajtoch merged commit ed97224 into elastic:main Mar 5, 2025
5 checks passed
tkajtoch added a commit to elastic/kibana that referenced this pull request Mar 6, 2025
`99.4.0-borealis.0` ⏩ `100.0.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)

---

First of all, 💯 🎉!

> [!Warning]
> Please note that the [public changelog for EUI
v100.0.0](https://github.com/elastic/eui/releases/tag/v100.0.0) is
longer than what's included below.
>
> Kibana has been using Borealis-specific builds of EUI since November
last year (suffixed with `-borealis.X`), which were built from a
just-merged EUI feature branch.
> Since that feature branch just got merged and released with EUI
v100.0.0, **the public changelog differs from what Kibana should be
concerned about** due to updating from a custom Borealis-enabled version
of EUI.
>
> You can find the list of all (one 👀) changes made between version
`99.4.0-borealis.0` and `100.0.0` below.

## [`v100.0.0`](https://github.com/elastic/eui/releases/v100.0.0)

**Bug fixes**

- Fixed `EuiComboBox` by cleaning duplicated values when having a
delimiter prop. ([#8335](elastic/eui#8335))

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 6, 2025
`99.4.0-borealis.0` ⏩ `100.0.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)

---

First of all, 💯 🎉!

> [!Warning]
> Please note that the [public changelog for EUI
v100.0.0](https://github.com/elastic/eui/releases/tag/v100.0.0) is
longer than what's included below.
>
> Kibana has been using Borealis-specific builds of EUI since November
last year (suffixed with `-borealis.X`), which were built from a
just-merged EUI feature branch.
> Since that feature branch just got merged and released with EUI
v100.0.0, **the public changelog differs from what Kibana should be
concerned about** due to updating from a custom Borealis-enabled version
of EUI.
>
> You can find the list of all (one 👀) changes made between version
`99.4.0-borealis.0` and `100.0.0` below.

## [`v100.0.0`](https://github.com/elastic/eui/releases/v100.0.0)

**Bug fixes**

- Fixed `EuiComboBox` by cleaning duplicated values when having a
delimiter prop. ([elastic#8335](elastic/eui#8335))

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 18fa931)
tkajtoch added a commit to elastic/kibana that referenced this pull request Mar 7, 2025
# Backport

This is a manual backport of #212974 and #213292

---

`99.3.0-classic.0` ⏩ `100.0.0-classic.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)

---


## [`v100.0.0`](https://github.com/elastic/eui/releases/v100.0.0)

**Bug fixes**

- Fixed `EuiComboBox` by cleaning duplicated values when having a
delimiter prop. ([#8335](elastic/eui#8335))

## [`v99.4.0`](https://github.com/elastic/eui/releases/v99.4.0)

- Minor design updates to `EuiCollapsibleNavBeta`
([#8332](elastic/eui#8332))
  - Allow section without a title
- Second-level icons should be horizontally aligned with the top-level
icon
  - Turn off text truncation for nav items
- Added `quickSelectButtonProps` to `EuiSuperDatePicker`
([#8380](elastic/eui#8380))

**Bug fixes**

- Fixed a bug in `EuiHeader` where the navigation of
`EuiCollapsibleNavBeta` would render below the `EuiFlyout`'s overlay
([#8325](elastic/eui#8325))

**Accessibility**

- Improved the accessibility of `EuiComboBox` by adding `aria-setsize`
and `aria-posinset` to ensure correct information is provided for its
virtualized listbox ([#8333](elastic/eui#8333))
- Improved the `EuiAccordionTrigger`'s screen reader UX by passed
`aria-hidden` to the `EuiAccordionArrow` to avoid duplicated
announcements by screen readers.
([#8342](elastic/eui#8342))

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
`99.4.0-borealis.0` ⏩ `100.0.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)

---

First of all, 💯 🎉!

> [!Warning]
> Please note that the [public changelog for EUI
v100.0.0](https://github.com/elastic/eui/releases/tag/v100.0.0) is
longer than what's included below.
>
> Kibana has been using Borealis-specific builds of EUI since November
last year (suffixed with `-borealis.X`), which were built from a
just-merged EUI feature branch.
> Since that feature branch just got merged and released with EUI
v100.0.0, **the public changelog differs from what Kibana should be
concerned about** due to updating from a custom Borealis-enabled version
of EUI.
>
> You can find the list of all (one 👀) changes made between version
`99.4.0-borealis.0` and `100.0.0` below.

## [`v100.0.0`](https://github.com/elastic/eui/releases/v100.0.0)

**Bug fixes**

- Fixed `EuiComboBox` by cleaning duplicated values when having a
delimiter prop. ([elastic#8335](elastic/eui#8335))

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.

[EuiComboBox] Avoid adding duplicated items when copy/pasting duplicated values

5 participants