Skip to content

[9.3] [Index Management] Fix error on index lifecycle summary tab (#246606)#246869

Merged
kibanamachine merged 1 commit intoelastic:9.3from
kibanamachine:backport/9.3/pr-246606
Dec 18, 2025
Merged

[9.3] [Index Management] Fix error on index lifecycle summary tab (#246606)#246869
kibanamachine merged 1 commit intoelastic:9.3from
kibanamachine:backport/9.3/pr-246606

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…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 kibanamachine requested a review from a team as a code owner December 18, 2025 12:28
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Dec 18, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) December 18, 2025 12:28
@kibanamachine kibanamachine merged commit dfc2c56 into elastic:9.3 Dec 18, 2025
17 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/index-management-shared-types 180 179 -1

Page load bundle

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

id before after diff
indexLifecycleManagement 27.5KB 27.6KB +68.0B

cc @damian-polewski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants