Skip to content

[ILM] Fix ilm icons and unify colors#240978

Merged
SoniaSanzV merged 7 commits intoelastic:mainfrom
SoniaSanzV:ilm/unify_phase_colors
Nov 11, 2025
Merged

[ILM] Fix ilm icons and unify colors#240978
SoniaSanzV merged 7 commits intoelastic:mainfrom
SoniaSanzV:ilm/unify_phase_colors

Conversation

@SoniaSanzV
Copy link
Contributor

@SoniaSanzV SoniaSanzV commented Oct 28, 2025

Reviewing #240888 I realized that there was some regression in the ILM policy icons with some previous EUI update. The checkInCircleFilled icon now works like the check. This PR updates the policy phase bullets so they look like before that change. Also, as agreed with @jovana-andjelkovic, it removes the gray border from the bullets.

I also took the chance of creating a shared util with the colors and unify the delete phase color that was different depending on the component.

Before the regression

Screenshot 2025-10-28 at 10 27 18

Before this change

before_icons before_flyout

After

after_flyout after_icons

@SoniaSanzV SoniaSanzV self-assigned this Oct 28, 2025
@SoniaSanzV SoniaSanzV requested a review from a team as a code owner October 28, 2025 12:46
@SoniaSanzV SoniaSanzV added Feature:ILM Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Oct 28, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

@SoniaSanzV SoniaSanzV marked this pull request as draft October 29, 2025 10:49
@SoniaSanzV SoniaSanzV marked this pull request as ready for review October 31, 2025 12:07
@ElenaStoeva ElenaStoeva self-requested a review November 3, 2025 10:22
Copy link
Contributor

@ElenaStoeva ElenaStoeva left a comment

Choose a reason for hiding this comment

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

Thanks for working on this fix @SoniaSanzV! Left a few comments.

@SoniaSanzV SoniaSanzV enabled auto-merge (squash) November 4, 2025 08:47
Copy link
Contributor

@ElenaStoeva ElenaStoeva left a comment

Choose a reason for hiding this comment

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

Thanks for addressing my feedback @SoniaSanzV! I tested again but it looks like the icons got back to how they were before?

Screenshot 2025-11-11 at 10 11 49

@SoniaSanzV
Copy link
Contributor Author

Thank you for taking another look @ElenaStoeva! It's odd that you see the old look, I just tested and I can see the changes
Screenshot 2025-11-11 at 12 18 26

@SoniaSanzV SoniaSanzV added the ci:cloud-deploy Create or update a Cloud deployment label Nov 11, 2025
Copy link
Contributor

@ElenaStoeva ElenaStoeva left a comment

Choose a reason for hiding this comment

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

Hmm I tested again and it's working now! Weird... Anyway, latest lgtm!

@SoniaSanzV
Copy link
Contributor Author

Hmm I tested again and it's working now! Weird... Anyway, latest lgtm!

Added the cloud-deploy label to double check before merging, just in case

@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 11, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #59 / serverless observability UI - Cases and Rules Serverless Observability Cases Cases list bulk actions status change the status of cases to in-progress correctly

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
indexLifecycleManagement 186 187 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
indexLifecycleManagement 147.0KB 145.9KB -1.1KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
indexLifecycleManagement 26.5KB 27.5KB +1.0KB

History

cc @SoniaSanzV

@SoniaSanzV
Copy link
Contributor Author

tested in cloud-deployment

Screenshot 2025-11-11 at 13 50 30

@SoniaSanzV SoniaSanzV merged commit b348a2c into elastic:main Nov 11, 2025
12 checks passed
@SoniaSanzV SoniaSanzV deleted the ilm/unify_phase_colors branch November 11, 2025 14:07
eokoneyo pushed a commit to eokoneyo/kibana that referenced this pull request Dec 2, 2025
Reviewing elastic#240888 I realized that
there was some regression in the ILM policy icons with some previous EUI
update. The `checkInCircleFilled` icon now works like the `check`. This
PR updates the policy phase bullets so they look like before that
change. Also, as agreed with @jovana-andjelkovic, it removes the gray
border from the bullets.

I also took the chance of creating a shared util with the colors and
unify the delete phase color that was different depending on the
component.

### Before the regression
<img width="854" height="1038" alt="Screenshot 2025-10-28 at 10 27 18"
src="https://github.com/user-attachments/assets/a4a86c29-6d25-4474-b08b-7a767fc2be85"
/>

### Before this change
<img width="781" height="1118" alt="before_icons"
src="https://github.com/user-attachments/assets/39490db4-037b-4f00-9b22-b9b1ed3e86d4"
/>
<img width="489" height="1069" alt="before_flyout"
src="https://github.com/user-attachments/assets/fed31bc0-8ae9-4fd8-a5b4-af75bb4ccb5b"
/>

### After
<img width="953" height="1290" alt="after_flyout"
src="https://github.com/user-attachments/assets/78fb1a3a-88af-4e9b-b197-c074b8790050"
/>
<img width="818" height="1188" alt="after_icons"
src="https://github.com/user-attachments/assets/7b74333a-174f-45ed-908a-2347f4b4f056"
/>
damian-polewski added a commit that referenced this pull request Dec 18, 2025
## Summary

Closes #246573

This PR fixes an issue where the IndexLifecycleSummary component was
passed directly to renderTabContent instead of being wrapped in an arrow
function.

When PR #240978 introduced the `usePhaseColors()` hook, this broke the
Index Lifecycle tab because `renderTabContent` is called as a plain
function in `details_page_tab.tsx`:

```
selectedTab.renderTabContent({ index, getUrlForApp, euiTheme })>
```

Because of this hook wasn't getting called during proper React rendering
causing "Invalid hook call" errors.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 18, 2025
…246606)

## Summary

Closes elastic#246573

This PR fixes an issue where the IndexLifecycleSummary component was
passed directly to renderTabContent instead of being wrapped in an arrow
function.

When PR elastic#240978 introduced the `usePhaseColors()` hook, this broke the
Index Lifecycle tab because `renderTabContent` is called as a plain
function in `details_page_tab.tsx`:

```
selectedTab.renderTabContent({ index, getUrlForApp, euiTheme })>
```

Because of this hook wasn't getting called during proper React rendering
causing "Invalid hook call" errors.

(cherry picked from commit df6ae8b)
kibanamachine added a commit that referenced this pull request Dec 18, 2025
…46606) (#246869)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[Index Management] Fix error on index lifecycle summary tab
(#246606)](#246606)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Damian
Polewski","email":"125268832+damian-polewski@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-12-18T12:19:51Z","message":"[Index
Management] Fix error on index lifecycle summary tab (#246606)\n\n##
Summary\n\nCloses #246573\n\nThis PR fixes an issue where the
IndexLifecycleSummary component was\npassed directly to renderTabContent
instead of being wrapped in an arrow\nfunction.\n\nWhen PR #240978
introduced the `usePhaseColors()` hook, this broke the\nIndex Lifecycle
tab because `renderTabContent` is called as a plain\nfunction in
`details_page_tab.tsx`:\n\n```\nselectedTab.renderTabContent({ index,
getUrlForApp, euiTheme })>\n```\n\nBecause of this hook wasn't getting
called during proper React rendering\ncausing \"Invalid hook call\"
errors.","sha":"df6ae8bdb176a8d3529f7437820edd4d0f50a07a","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index
Management","Team:Kibana
Management","release_note:skip","backport:all-open","ci:cloud-deploy","v9.4.0"],"title":"[Index
Management] Fix error on index lifecycle summary
tab","number":246606,"url":"https://github.com/elastic/kibana/pull/246606","mergeCommit":{"message":"[Index
Management] Fix error on index lifecycle summary tab (#246606)\n\n##
Summary\n\nCloses #246573\n\nThis PR fixes an issue where the
IndexLifecycleSummary component was\npassed directly to renderTabContent
instead of being wrapped in an arrow\nfunction.\n\nWhen PR #240978
introduced the `usePhaseColors()` hook, this broke the\nIndex Lifecycle
tab because `renderTabContent` is called as a plain\nfunction in
`details_page_tab.tsx`:\n\n```\nselectedTab.renderTabContent({ index,
getUrlForApp, euiTheme })>\n```\n\nBecause of this hook wasn't getting
called during proper React rendering\ncausing \"Invalid hook call\"
errors.","sha":"df6ae8bdb176a8d3529f7437820edd4d0f50a07a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/246606","number":246606,"mergeCommit":{"message":"[Index
Management] Fix error on index lifecycle summary tab (#246606)\n\n##
Summary\n\nCloses #246573\n\nThis PR fixes an issue where the
IndexLifecycleSummary component was\npassed directly to renderTabContent
instead of being wrapped in an arrow\nfunction.\n\nWhen PR #240978
introduced the `usePhaseColors()` hook, this broke the\nIndex Lifecycle
tab because `renderTabContent` is called as a plain\nfunction in
`details_page_tab.tsx`:\n\n```\nselectedTab.renderTabContent({ index,
getUrlForApp, euiTheme })>\n```\n\nBecause of this hook wasn't getting
called during proper React rendering\ncausing \"Invalid hook call\"
errors.","sha":"df6ae8bdb176a8d3529f7437820edd4d0f50a07a"}}]}]
BACKPORT-->

Co-authored-by: Damian Polewski <125268832+damian-polewski@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:cloud-deploy Create or update a Cloud deployment Feature:ILM release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants