Skip to content

UI Settings should be disabled when elasticsearch is not available#8764

Merged
spalger merged 6 commits intoelastic:masterfrom
kobelb:ui-settings-disabled
Oct 19, 2016
Merged

UI Settings should be disabled when elasticsearch is not available#8764
spalger merged 6 commits intoelastic:masterfrom
kobelb:ui-settings-disabled

Conversation

@kobelb
Copy link
Contributor

@kobelb kobelb commented Oct 19, 2016

Resolves the console error being logged on startup and plugin installation:

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'state' of undefined


function setStatus() {
if (!kbnServer.config.get('plugins.initialize')) {
status.disabled('Disabled because plugins are disabled');
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Didn't realize this existed

}

function setStatus() {
if (!kbnServer.config.get('plugins.initialize')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably move this check to the top of the mixin so that we don't expose the API or really do anything when we are disabled.

@Bargs Bargs self-assigned this Oct 19, 2016
@kobelb
Copy link
Contributor Author

kobelb commented Oct 19, 2016

Good call! Changes made.

@Bargs
Copy link
Contributor

Bargs commented Oct 19, 2016

Checking plugins.initialize in this file feels kind of dirty to me. The root issue is that esStatus is undefined, no? Couldn't we just disable the uisettings when that's the case?

@spalger
Copy link
Contributor

spalger commented Oct 19, 2016

I agree that using plugins.initialize is kind of dirty. Disabling based on the existence of the elasticsearch plugin won't work though, as we can only know if it's loaded after the server has loaded up all of the plugins, which is after we have already exposed the uiSettings API. The only proper way to react to the elasticsearch plugin not being available is setting the status to red.

Perhaps we could add a uiSettings.enabled setting which would be flipped off by the dev cli? Then we aren't correlating two unrelated things (plugin initialization and the uiSettings) and we can also update the our status to "red" when the elasticseach plugin is not available.

@Bargs
Copy link
Contributor

Bargs commented Oct 19, 2016

we can only know if it's loaded after the server has loaded up all of the plugins, which is after we as supposed to have exposed the uiSettings API.

How does this work on normal server startup then? Or is there a race condition where this error might get thrown on normal server startup? If so, how does uisettings get re-enabled once the ES plugin becomes available?

@spalger
Copy link
Contributor

spalger commented Oct 19, 2016

On normal server startup the uiSettings exposes it's API and then waits for the server to finish initialization. Once initialization is complete the kibana.ready() promise resolves and the uiSettings begin mirroring the status of the elasticsearch plugin. This is the only time where we learn that the elasticsearch plugin is not included/enabled, so we should permanently set the uiSettings status to "red". There is no way for the elasticsearch plugin to be re-enabled without a server restart.

Now, if we wanted to prevent the uiSettings module from going red in a specific situation, like in the optimizer half of the dev server, we could additionally pass the --uiSettings.enabled=false flag and it won't even try to start up.

@Bargs
Copy link
Contributor

Bargs commented Oct 19, 2016

@spalger and I chatted and we agreed implementing --uiSettings.enabled=false is the best we can do for now. The main issue with just letting uiSettings go red in the dev server scenario is that it'll print out a scary message about it in the console, and we want that to be the exception not the rule. It would be nice if uiSettings was actually a plugin so it could participate in the normal plugin lifecycle, but it's not, so we'll go with the flag for now.

@kobelb
Copy link
Contributor Author

kobelb commented Oct 19, 2016

Does that mean we shouldn't be doing the status.disabled when it's disabled, and just "short-circuiting" and not setting up the uiSettings module?

@spalger
Copy link
Contributor

spalger commented Oct 19, 2016

I think that status.disabled() is the correct thing to do when we are short-curcuiting

spalger added 2 commits October 19, 2016 16:24
in response to matt's comment that relying on `plugins.initialize` is kinda dirty (with which we all agree) we're adding an undocumented config value that the dev cli can use to put prevent the optimizr server from logging meaningless warnings
@tylersmalley
Copy link
Member

There are 27 failing tests on this PR:

2) ui settings #setMany() returns a promise:
     TypeError: Cannot read property 'get' of undefined
      at setupSettings (src/ui/settings/index.js:7:24)
      at instantiate (src/ui/settings/__tests__/index.js:328:25)
      at Context.<anonymous> (src/ui/settings/__tests__/index.js:25:30)

Copy link
Member

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

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

LGTM, though it would be amazing if we could get some documentation for uiSettings.enabled as it's bound to bring up questions in the future.

@spalger spalger merged commit 1ff971a into elastic:master Oct 19, 2016
elastic-jasper added a commit that referenced this pull request Oct 19, 2016
---------

**Commit 1:**
UI Settings disabled when plugins.initialize is false

* Original sha: c6f90e2
* Authored by = <brandon.kobel@elastic.co> on 2016-10-19T20:47:05Z

**Commit 2:**
Moving where we're disabling the ui settings

* Original sha: e66c7e7
* Authored by = <brandon.kobel@elastic.co> on 2016-10-19T21:22:52Z

**Commit 3:**
[server/uiSettings] add enabled config

in response to matt's comment that relying on `plugins.initialize` is kinda dirty (with which we all agree) we're adding an undocumented config value that the dev cli can use to put prevent the optimizr server from logging meaningless warnings

* Original sha: 40ffd12
* Authored by spalger <email@spalger.com> on 2016-10-19T23:24:55Z

**Commit 4:**
[server/uiSettings] react to missing elasticsearch plugin

* Original sha: 7feacf6
* Authored by spalger <email@spalger.com> on 2016-10-19T23:26:44Z

**Commit 5:**
[server/uiSettings] fix da tests

* Original sha: c2d7d01
* Authored by spalger <email@spalger.com> on 2016-10-19T23:36:11Z

**Commit 6:**
[server/uiSettings] document enabled config

* Original sha: f9bd154
* Authored by Spencer <spalger@users.noreply.github.com> on 2016-10-19T23:52:28Z
* Committed by GitHub <noreply@github.com> on 2016-10-19T23:52:28Z
elastic-jasper added a commit that referenced this pull request Oct 19, 2016
---------

**Commit 1:**
UI Settings disabled when plugins.initialize is false

* Original sha: c6f90e2
* Authored by = <brandon.kobel@elastic.co> on 2016-10-19T20:47:05Z

**Commit 2:**
Moving where we're disabling the ui settings

* Original sha: e66c7e7
* Authored by = <brandon.kobel@elastic.co> on 2016-10-19T21:22:52Z

**Commit 3:**
[server/uiSettings] add enabled config

in response to matt's comment that relying on `plugins.initialize` is kinda dirty (with which we all agree) we're adding an undocumented config value that the dev cli can use to put prevent the optimizr server from logging meaningless warnings

* Original sha: 40ffd12
* Authored by spalger <email@spalger.com> on 2016-10-19T23:24:55Z

**Commit 4:**
[server/uiSettings] react to missing elasticsearch plugin

* Original sha: 7feacf6
* Authored by spalger <email@spalger.com> on 2016-10-19T23:26:44Z

**Commit 5:**
[server/uiSettings] fix da tests

* Original sha: c2d7d01
* Authored by spalger <email@spalger.com> on 2016-10-19T23:36:11Z

**Commit 6:**
[server/uiSettings] document enabled config

* Original sha: f9bd154
* Authored by Spencer <spalger@users.noreply.github.com> on 2016-10-19T23:52:28Z
* Committed by GitHub <noreply@github.com> on 2016-10-19T23:52:28Z
@spalger spalger changed the title UI Settings disabled when plugins.initialize is false UI Settings should be disabled when elasticsearch is not available Oct 19, 2016
spalger added a commit that referenced this pull request Oct 20, 2016
[backport] PR #8764 to 5.0 - UI Settings should be disabled when elasticsearch is not available
spalger added a commit that referenced this pull request Oct 20, 2016
[backport] PR #8764 to 5.x - UI Settings should be disabled when elasticsearch is not available
@kobelb kobelb deleted the ui-settings-disabled branch October 20, 2016 10:53
@epixa epixa added v5.1.1 and removed v5.1.0 labels Dec 8, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
---------

**Commit 1:**
UI Settings disabled when plugins.initialize is false

* Original sha: d462ebd049977d8a43b439dd2b9536f1d8b425a3 [formerly c6f90e2]
* Authored by = <brandon.kobel@elastic.co> on 2016-10-19T20:47:05Z

**Commit 2:**
Moving where we're disabling the ui settings

* Original sha: ae163ee4464bcf75f759ce97d95ebf6e22b77bb0 [formerly e66c7e7]
* Authored by = <brandon.kobel@elastic.co> on 2016-10-19T21:22:52Z

**Commit 3:**
[server/uiSettings] add enabled config

in response to matt's comment that relying on `plugins.initialize` is kinda dirty (with which we all agree) we're adding an undocumented config value that the dev cli can use to put prevent the optimizr server from logging meaningless warnings

* Original sha: 89d2448797fc0c9cde3050ef952bf76ac3267f59 [formerly 40ffd12]
* Authored by spalger <email@spalger.com> on 2016-10-19T23:24:55Z

**Commit 4:**
[server/uiSettings] react to missing elasticsearch plugin

* Original sha: 9782961657aacbe576788738bcdaa48e2fadde3b [formerly 7feacf6]
* Authored by spalger <email@spalger.com> on 2016-10-19T23:26:44Z

**Commit 5:**
[server/uiSettings] fix da tests

* Original sha: 54641b772af42d1c5bb57e3a7547a9fc28432987 [formerly c2d7d01]
* Authored by spalger <email@spalger.com> on 2016-10-19T23:36:11Z

**Commit 6:**
[server/uiSettings] document enabled config

* Original sha: 766a96cab2f35a51ba6c72c472b452cf50f8b027 [formerly f9bd154]
* Authored by Spencer <spalger@users.noreply.github.com> on 2016-10-19T23:52:28Z
* Committed by GitHub <noreply@github.com> on 2016-10-19T23:52:28Z


Former-commit-id: 533ac98
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
[backport] PR elastic#8764 to 5.x - UI Settings should be disabled when elasticsearch is not available

Former-commit-id: 07b6453
JasonStoltz added a commit that referenced this pull request Jun 17, 2025
`102.3.0` ⏩ `103.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)

## Changes

[#8736](elastic/eui#8736),
[#8732](elastic/eui#8732), and
[#8732](elastic/eui#8732) include a number of
small style tweaks `EuiResizableCollapseButton`, `EuiTitle`, and
`EuiListGroupItem`.

[#8756](elastic/eui#8756) and
[#8744](elastic/eui#8744) rename a couple of
icons:

`questionInCircle` -> `question`
`iInCircle` > `info`

In both cases, the old name is **backwards-compatible** (unless
importing directly from `assets` folder (see more in the release notes
regarding that). However, the old name will eventually be deprecated as
a part of a larger set of deprecations.

**No action is required at this time to handle this renaming. We will
issue a dedicated PR to Kibana to replace the old names with the new
names in the future**

[#8725](elastic/eui#8725) adds Sky Blue, Yellow,
and Orange palettes to EUI's [color
palettes](https://eui.elastic.co/docs/utilities/color-palettes/#recommended-quantitative-palettes),
as well as new tokens for Risk, Neutral, and Warning.

**[Breaking change]** Please note that as part of this change, the
following tokens have been renamed:
`euiColorVisNeutral0` -> `euiColorVisBase0`
`euiColorVisWarning0` -> `euiColorVisWarning1`

The original tokens still exist, but have been updated to use new colors
in a way that would be breaking. This PR updates the existing references
in 0b21d2d.

## Package updates

### `@elastic/eui`

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

- Replaced `question` icon glyph
([#8756](elastic/eui#8756))
- Updated `EuiResizableCollapseButton` to use an empty button
([#8736](elastic/eui#8736))
- Added `info` icon glyph
([#8744](elastic/eui#8744))
- Removed uppercase styling from `EuiText` `h6` headings to match
`EuiTitle` ([#8732](elastic/eui#8732))
- Removed heavier font weight from `xs` and `s` `EuiListGroupItem` sizes
for consistency ([#8732](elastic/eui#8732))
- Updated the `font-weight` of default `EuiFilterButton` and
`EuiButtonGroupButton` to `450`
([#8734](elastic/eui#8734))
- Added color pallete functions and related hooks:
([#8725](elastic/eui#8725))
  - `euiPaletteSkyBlue`, `useEuiPaletteSkyBlue`
  - `euiPaletteYellow`, `useEuiPaletteYellow`
  - `euiPaletteOrange`, `useEuiPaletteOrange`
- Added new tokens on `colors.vis`:
([#8725](elastic/eui#8725))
  -  `euiColorVisNeutral0`
  -  `euiColorVisNeutral1`
  -  `euiColorVisWarning1`
  -  `euiColorVisRisk0`
  -  `euiColorVisRisk1`
- Updated the value of token `colors.vis.euiColorVisWarning0`
([#8725](elastic/eui#8725))
- Updated EuiFilterButton's `numActiveFilters` prop to accept percentage
values ([#8705](elastic/eui#8705))

**Bug fixes**

- Fixed visual positioning issue for notifications in
`EuiHeaderSectionItemButton`
([#8736](elastic/eui#8736))
- Fixed a visual issue where `EuiCollabsibleNavItem` did not have a
visible selected state
([#8736](elastic/eui#8736))
- Fixed handling of unregistered code block languages in
`EuiMarkdownFormat` ([#8729](elastic/eui#8729))

**Breaking changes**

- Renamed `colors.vis.euiColorVisNeutral0` to `euiColorVisBase0`
([#8725](elastic/eui#8725))

### `@elastic/eui-theme-borealis`

##
[`v2.0.0`](https://github.com/elastic/eui/blob/main/packages/eui-theme-borealis/changelogs/CHANGELOG_2025.md#v200)

- Added new tokens on `colors.vis`:
([#8725](elastic/eui#8725))
  -  `euiColorVisNeutral0`
  -  `euiColorVisNeutral1`
  -  `euiColorVisWarning1`
  -  `euiColorVisRisk0`
  -  `euiColorVisRisk1`
- Updated the value of token `colors.vis.euiColorVisWarning0`
([#8725](elastic/eui#8725))

**Bug fixes**

- Fixed missing source map warnings emitted by some bundlers by
excluding source maps from being published
([#8764](elastic/eui#8764))
- To align with `@elastic/eui` and many other popular packages, we made
a call to not ship source maps anymore

**Breaking changes**

- Renamed `colors.vis.euiColorVisNeutral0` to `euiColorVisBase0`
([#8725](elastic/eui#8725))

<!--ONMERGE {"backportTargets":["8.19","9.0"]} ONMERGE-->

---------

Co-authored-by: Lene Gadewoll <lene.gadewoll@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
JasonStoltz added a commit that referenced this pull request Jun 18, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [Upgrade EUI to v103.0.0
(#223414)](#223414)

<!--- Backport version: 10.0.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Jason
Stoltzfus","email":"jason.stoltzfus@elastic.co"},"sourceCommit":{"committedDate":"2025-06-17T10:16:40Z","message":"Upgrade
EUI to v103.0.0 (#223414)\n\n`102.3.0` ⏩ `103.0.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Changes\n\n[#8736](https://github.com/elastic/eui/pull/8736),\n[#8732](https://github.com/elastic/eui/pull/8732),
and\n[#8732](elastic/eui#8732) include a number
of\nsmall style tweaks `EuiResizableCollapseButton`, `EuiTitle`,
and\n`EuiListGroupItem`.\n\n[#8756](elastic/eui#8756)
and\n[#8744](elastic/eui#8744) rename a couple
of\nicons:\n\n`questionInCircle` -> `question`\n`iInCircle` >
`info`\n\nIn both cases, the old name is **backwards-compatible**
(unless\nimporting directly from `assets` folder (see more in the
release notes\nregarding that). However, the old name will eventually be
deprecated as\na part of a larger set of deprecations.\n\n**No action is
required at this time to handle this renaming. We will\nissue a
dedicated PR to Kibana to replace the old names with the new\nnames in
the future**\n\n[#8725](elastic/eui#8725) adds
Sky Blue, Yellow,\nand Orange palettes to EUI's
[color\npalettes](https://eui.elastic.co/docs/utilities/color-palettes/#recommended-quantitative-palettes),\nas
well as new tokens for Risk, Neutral, and Warning.\n\n**[Breaking
change]** Please note that as part of this change, the\nfollowing tokens
have been renamed:\n`euiColorVisNeutral0` ->
`euiColorVisBase0`\n`euiColorVisWarning0` ->
`euiColorVisWarning1`\n\nThe original tokens still exist, but have been
updated to use new colors\nin a way that would be breaking. This PR
updates the existing references\nin
0b21d2d.\n\n## Package updates\n\n###
`@elastic/eui`\n\n##
[`v103.0.0`](https://github.com/elastic/eui/releases/v103.0.0)\n\n-
Replaced `question` icon
glyph\n([#8756](https://github.com/elastic/eui/pull/8756))\n- Updated
`EuiResizableCollapseButton` to use an empty
button\n([#8736](https://github.com/elastic/eui/pull/8736))\n- Added
`info` icon
glyph\n([#8744](https://github.com/elastic/eui/pull/8744))\n- Removed
uppercase styling from `EuiText` `h6` headings to match\n`EuiTitle`
([#8732](https://github.com/elastic/eui/pull/8732))\n- Removed heavier
font weight from `xs` and `s` `EuiListGroupItem` sizes\nfor consistency
([#8732](https://github.com/elastic/eui/pull/8732))\n- Updated the
`font-weight` of default `EuiFilterButton` and\n`EuiButtonGroupButton`
to `450`\n([#8734](https://github.com/elastic/eui/pull/8734))\n- Added
color pallete functions and related
hooks:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiPaletteSkyBlue`, `useEuiPaletteSkyBlue`\n - `euiPaletteYellow`,
`useEuiPaletteYellow`\n - `euiPaletteOrange`, `useEuiPaletteOrange`\n-
Added new tokens on
`colors.vis`:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiColorVisNeutral0`\n - `euiColorVisNeutral1`\n -
`euiColorVisWarning1`\n - `euiColorVisRisk0`\n - `euiColorVisRisk1`\n-
Updated the value of token
`colors.vis.euiColorVisWarning0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n-
Updated EuiFilterButton's `numActiveFilters` prop to accept
percentage\nvalues
([#8705](https://github.com/elastic/eui/pull/8705))\n\n**Bug
fixes**\n\n- Fixed visual positioning issue for notifications
in\n`EuiHeaderSectionItemButton`\n([#8736](https://github.com/elastic/eui/pull/8736))\n-
Fixed a visual issue where `EuiCollabsibleNavItem` did not have
a\nvisible selected
state\n([#8736](https://github.com/elastic/eui/pull/8736))\n- Fixed
handling of unregistered code block languages in\n`EuiMarkdownFormat`
([#8729](https://github.com/elastic/eui/pull/8729))\n\n**Breaking
changes**\n\n- Renamed `colors.vis.euiColorVisNeutral0` to
`euiColorVisBase0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n###
`@elastic/eui-theme-borealis`\n\n##\n[`v2.0.0`](https://github.com/elastic/eui/blob/main/packages/eui-theme-borealis/changelogs/CHANGELOG_2025.md#v200)\n\n-
Added new tokens on
`colors.vis`:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiColorVisNeutral0`\n - `euiColorVisNeutral1`\n -
`euiColorVisWarning1`\n - `euiColorVisRisk0`\n - `euiColorVisRisk1`\n-
Updated the value of token
`colors.vis.euiColorVisWarning0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n**Bug
fixes**\n\n- Fixed missing source map warnings emitted by some bundlers
by\nexcluding source maps from being
published\n([#8764](https://github.com/elastic/eui/pull/8764))\n- To
align with `@elastic/eui` and many other popular packages, we made\na
call to not ship source maps anymore\n\n**Breaking changes**\n\n-
Renamed `colors.vis.euiColorVisNeutral0` to
`euiColorVisBase0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n\n\n---------\n\nCo-authored-by:
Lene Gadewoll <lene.gadewoll@elastic.co>\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"61ea2f398f8f8e2dcac7f36719557f6999ef6e9b","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","release_note:skip","EUI","ci:cloud-deploy","Team:obs-ux-infra_services","backport:version","v9.1.0","v8.19.0"],"title":"Upgrade
EUI to
v103.0.0","number":223414,"url":"https://github.com/elastic/kibana/pull/223414","mergeCommit":{"message":"Upgrade
EUI to v103.0.0 (#223414)\n\n`102.3.0` ⏩ `103.0.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Changes\n\n[#8736](https://github.com/elastic/eui/pull/8736),\n[#8732](https://github.com/elastic/eui/pull/8732),
and\n[#8732](elastic/eui#8732) include a number
of\nsmall style tweaks `EuiResizableCollapseButton`, `EuiTitle`,
and\n`EuiListGroupItem`.\n\n[#8756](elastic/eui#8756)
and\n[#8744](elastic/eui#8744) rename a couple
of\nicons:\n\n`questionInCircle` -> `question`\n`iInCircle` >
`info`\n\nIn both cases, the old name is **backwards-compatible**
(unless\nimporting directly from `assets` folder (see more in the
release notes\nregarding that). However, the old name will eventually be
deprecated as\na part of a larger set of deprecations.\n\n**No action is
required at this time to handle this renaming. We will\nissue a
dedicated PR to Kibana to replace the old names with the new\nnames in
the future**\n\n[#8725](elastic/eui#8725) adds
Sky Blue, Yellow,\nand Orange palettes to EUI's
[color\npalettes](https://eui.elastic.co/docs/utilities/color-palettes/#recommended-quantitative-palettes),\nas
well as new tokens for Risk, Neutral, and Warning.\n\n**[Breaking
change]** Please note that as part of this change, the\nfollowing tokens
have been renamed:\n`euiColorVisNeutral0` ->
`euiColorVisBase0`\n`euiColorVisWarning0` ->
`euiColorVisWarning1`\n\nThe original tokens still exist, but have been
updated to use new colors\nin a way that would be breaking. This PR
updates the existing references\nin
0b21d2d.\n\n## Package updates\n\n###
`@elastic/eui`\n\n##
[`v103.0.0`](https://github.com/elastic/eui/releases/v103.0.0)\n\n-
Replaced `question` icon
glyph\n([#8756](https://github.com/elastic/eui/pull/8756))\n- Updated
`EuiResizableCollapseButton` to use an empty
button\n([#8736](https://github.com/elastic/eui/pull/8736))\n- Added
`info` icon
glyph\n([#8744](https://github.com/elastic/eui/pull/8744))\n- Removed
uppercase styling from `EuiText` `h6` headings to match\n`EuiTitle`
([#8732](https://github.com/elastic/eui/pull/8732))\n- Removed heavier
font weight from `xs` and `s` `EuiListGroupItem` sizes\nfor consistency
([#8732](https://github.com/elastic/eui/pull/8732))\n- Updated the
`font-weight` of default `EuiFilterButton` and\n`EuiButtonGroupButton`
to `450`\n([#8734](https://github.com/elastic/eui/pull/8734))\n- Added
color pallete functions and related
hooks:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiPaletteSkyBlue`, `useEuiPaletteSkyBlue`\n - `euiPaletteYellow`,
`useEuiPaletteYellow`\n - `euiPaletteOrange`, `useEuiPaletteOrange`\n-
Added new tokens on
`colors.vis`:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiColorVisNeutral0`\n - `euiColorVisNeutral1`\n -
`euiColorVisWarning1`\n - `euiColorVisRisk0`\n - `euiColorVisRisk1`\n-
Updated the value of token
`colors.vis.euiColorVisWarning0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n-
Updated EuiFilterButton's `numActiveFilters` prop to accept
percentage\nvalues
([#8705](https://github.com/elastic/eui/pull/8705))\n\n**Bug
fixes**\n\n- Fixed visual positioning issue for notifications
in\n`EuiHeaderSectionItemButton`\n([#8736](https://github.com/elastic/eui/pull/8736))\n-
Fixed a visual issue where `EuiCollabsibleNavItem` did not have
a\nvisible selected
state\n([#8736](https://github.com/elastic/eui/pull/8736))\n- Fixed
handling of unregistered code block languages in\n`EuiMarkdownFormat`
([#8729](https://github.com/elastic/eui/pull/8729))\n\n**Breaking
changes**\n\n- Renamed `colors.vis.euiColorVisNeutral0` to
`euiColorVisBase0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n###
`@elastic/eui-theme-borealis`\n\n##\n[`v2.0.0`](https://github.com/elastic/eui/blob/main/packages/eui-theme-borealis/changelogs/CHANGELOG_2025.md#v200)\n\n-
Added new tokens on
`colors.vis`:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiColorVisNeutral0`\n - `euiColorVisNeutral1`\n -
`euiColorVisWarning1`\n - `euiColorVisRisk0`\n - `euiColorVisRisk1`\n-
Updated the value of token
`colors.vis.euiColorVisWarning0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n**Bug
fixes**\n\n- Fixed missing source map warnings emitted by some bundlers
by\nexcluding source maps from being
published\n([#8764](https://github.com/elastic/eui/pull/8764))\n- To
align with `@elastic/eui` and many other popular packages, we made\na
call to not ship source maps anymore\n\n**Breaking changes**\n\n-
Renamed `colors.vis.euiColorVisNeutral0` to
`euiColorVisBase0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n\n\n---------\n\nCo-authored-by:
Lene Gadewoll <lene.gadewoll@elastic.co>\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"61ea2f398f8f8e2dcac7f36719557f6999ef6e9b"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/223414","number":223414,"mergeCommit":{"message":"Upgrade
EUI to v103.0.0 (#223414)\n\n`102.3.0` ⏩ `103.0.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Changes\n\n[#8736](https://github.com/elastic/eui/pull/8736),\n[#8732](https://github.com/elastic/eui/pull/8732),
and\n[#8732](elastic/eui#8732) include a number
of\nsmall style tweaks `EuiResizableCollapseButton`, `EuiTitle`,
and\n`EuiListGroupItem`.\n\n[#8756](elastic/eui#8756)
and\n[#8744](elastic/eui#8744) rename a couple
of\nicons:\n\n`questionInCircle` -> `question`\n`iInCircle` >
`info`\n\nIn both cases, the old name is **backwards-compatible**
(unless\nimporting directly from `assets` folder (see more in the
release notes\nregarding that). However, the old name will eventually be
deprecated as\na part of a larger set of deprecations.\n\n**No action is
required at this time to handle this renaming. We will\nissue a
dedicated PR to Kibana to replace the old names with the new\nnames in
the future**\n\n[#8725](elastic/eui#8725) adds
Sky Blue, Yellow,\nand Orange palettes to EUI's
[color\npalettes](https://eui.elastic.co/docs/utilities/color-palettes/#recommended-quantitative-palettes),\nas
well as new tokens for Risk, Neutral, and Warning.\n\n**[Breaking
change]** Please note that as part of this change, the\nfollowing tokens
have been renamed:\n`euiColorVisNeutral0` ->
`euiColorVisBase0`\n`euiColorVisWarning0` ->
`euiColorVisWarning1`\n\nThe original tokens still exist, but have been
updated to use new colors\nin a way that would be breaking. This PR
updates the existing references\nin
0b21d2d.\n\n## Package updates\n\n###
`@elastic/eui`\n\n##
[`v103.0.0`](https://github.com/elastic/eui/releases/v103.0.0)\n\n-
Replaced `question` icon
glyph\n([#8756](https://github.com/elastic/eui/pull/8756))\n- Updated
`EuiResizableCollapseButton` to use an empty
button\n([#8736](https://github.com/elastic/eui/pull/8736))\n- Added
`info` icon
glyph\n([#8744](https://github.com/elastic/eui/pull/8744))\n- Removed
uppercase styling from `EuiText` `h6` headings to match\n`EuiTitle`
([#8732](https://github.com/elastic/eui/pull/8732))\n- Removed heavier
font weight from `xs` and `s` `EuiListGroupItem` sizes\nfor consistency
([#8732](https://github.com/elastic/eui/pull/8732))\n- Updated the
`font-weight` of default `EuiFilterButton` and\n`EuiButtonGroupButton`
to `450`\n([#8734](https://github.com/elastic/eui/pull/8734))\n- Added
color pallete functions and related
hooks:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiPaletteSkyBlue`, `useEuiPaletteSkyBlue`\n - `euiPaletteYellow`,
`useEuiPaletteYellow`\n - `euiPaletteOrange`, `useEuiPaletteOrange`\n-
Added new tokens on
`colors.vis`:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiColorVisNeutral0`\n - `euiColorVisNeutral1`\n -
`euiColorVisWarning1`\n - `euiColorVisRisk0`\n - `euiColorVisRisk1`\n-
Updated the value of token
`colors.vis.euiColorVisWarning0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n-
Updated EuiFilterButton's `numActiveFilters` prop to accept
percentage\nvalues
([#8705](https://github.com/elastic/eui/pull/8705))\n\n**Bug
fixes**\n\n- Fixed visual positioning issue for notifications
in\n`EuiHeaderSectionItemButton`\n([#8736](https://github.com/elastic/eui/pull/8736))\n-
Fixed a visual issue where `EuiCollabsibleNavItem` did not have
a\nvisible selected
state\n([#8736](https://github.com/elastic/eui/pull/8736))\n- Fixed
handling of unregistered code block languages in\n`EuiMarkdownFormat`
([#8729](https://github.com/elastic/eui/pull/8729))\n\n**Breaking
changes**\n\n- Renamed `colors.vis.euiColorVisNeutral0` to
`euiColorVisBase0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n###
`@elastic/eui-theme-borealis`\n\n##\n[`v2.0.0`](https://github.com/elastic/eui/blob/main/packages/eui-theme-borealis/changelogs/CHANGELOG_2025.md#v200)\n\n-
Added new tokens on
`colors.vis`:\n([#8725](https://github.com/elastic/eui/pull/8725))\n -
`euiColorVisNeutral0`\n - `euiColorVisNeutral1`\n -
`euiColorVisWarning1`\n - `euiColorVisRisk0`\n - `euiColorVisRisk1`\n-
Updated the value of token
`colors.vis.euiColorVisWarning0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n**Bug
fixes**\n\n- Fixed missing source map warnings emitted by some bundlers
by\nexcluding source maps from being
published\n([#8764](https://github.com/elastic/eui/pull/8764))\n- To
align with `@elastic/eui` and many other popular packages, we made\na
call to not ship source maps anymore\n\n**Breaking changes**\n\n-
Renamed `colors.vis.euiColorVisNeutral0` to
`euiColorVisBase0`\n([#8725](https://github.com/elastic/eui/pull/8725))\n\n\n\n---------\n\nCo-authored-by:
Lene Gadewoll <lene.gadewoll@elastic.co>\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"61ea2f398f8f8e2dcac7f36719557f6999ef6e9b"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants