Repository navigation
Conversation
Server consumers of @kbn/user-profile-components import the pure user_profile module instead of the React barrel, and VISUALIZATION_COLORS is rebuilt from @elastic/eui-theme-borealis colorVis (verified byte-identical) in the package and in security's common model, removing the @elastic/eui value imports. Pure import-path refactor, no behavior change; every target subpath module already exists on main. Part of removing the browser UI stack from the Kibana server startup module graph (context and measurements in elastic#300920; enforced at runtime by elastic#302010 once every part lands). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
This was referenced Oct 30, 2026
…g VISUALIZATION_COLORS getUserAvatarColor is the only user-profile helper that needs EUI's VISUALIZATION_COLORS, and it is only called from browser code. Moving it to src/user_avatar_color.ts keeps src/user_profile.ts free of @elastic/eui without hand-rolling the palette from @elastic/eui-theme-borealis. The security plugin's common/model/user_profile.ts duplicated these helpers; it now only carries the GetUserProfileResponse type, and the account management page imports the helpers from @kbn/user-profile-components instead.
sphilipse
marked this pull request as ready for review
October 30, 2026 14:37
Contributor
⏳ Build in-progress, with failures
Failed CI Steps
Test Failures
|
PhilippeOberti
approved these changes
Oct 30, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Server consumers of @kbn/user-profile-components import the pure
user_profilemodule instead of the React barrel, removing the@elastic/euivalue imports from the server's module graph.