Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrates all security and spaces usage of deprecated Eui Page components #167078

Merged
merged 9 commits into from
Sep 29, 2023

Conversation

jeramysoucy
Copy link
Contributor

@jeramysoucy jeramysoucy commented Sep 22, 2023

Closes #161419

Summary

Replaces deprecated EuiPage*_Deprecated components with the suggested replacement components (see issue).

Visual Difference

The only UI that is noticeably affected is the User Profile page. The spacing and header font size are slightly different from the previous implementation, however, it is consistent with other Eui/KibanaPageTemplate pages.

Previous render:
Screenshot 2023-09-22 at 1 27 27 PM

New render:
Screenshot 2023-09-22 at 2 56 44 PM

Applicable Tests

  • x-pack/plugins/security/public/account_management/user_profile/user_profile.test.tsx
  • x-pack/plugins/security/public/management/users/users_grid/users_grid_page.test.tsx
  • x-pack/plugins/spaces/public/management/edit_space/manage_space_page.test.tsx
  • x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.test.tsx
  • x-pack/plugins/security/public/management/roles/roles_grid/roles_grid_page.test.tsx (for permission denied)

@jeramysoucy jeramysoucy added Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! Feature:Users/Roles/API Keys Feature:Security/Spaces Platform Security - Spaces feature release_note:skip Skip the PR/issue when compiling release notes Feature:Security/User Profile backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.11.0 v8.10.2 labels Sep 22, 2023
@jeramysoucy jeramysoucy force-pushed the migrate-eui-page-components branch from 2585389 to fd7e63f Compare September 22, 2023 19:53
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
security 571.5KB 571.4KB -43.0B
spaces 173.9KB 173.7KB -153.0B
total -196.0B

Page load bundle

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

id before after diff
security 70.0KB 70.0KB +7.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -21,7 +21,7 @@ interface CreateRoleMappingButtonProps {
export const CreateRoleMappingButton = ({ history }: CreateRoleMappingButtonProps) => {
return (
<EuiButton
iconType="plusInCircle"
iconType="plusInCircleFilled"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just to make this page consistent with our other pages. It is unrelated to the main changes of the PR.

@jeramysoucy jeramysoucy marked this pull request as ready for review September 25, 2023 17:59
@jeramysoucy jeramysoucy requested a review from a team as a code owner September 25, 2023 17:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@jeramysoucy jeramysoucy added backport:skip This commit does not require backporting and removed backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.10.2 labels Sep 25, 2023
@kc13greiner kc13greiner self-requested a review September 25, 2023 18:58
Copy link
Contributor

@kc13greiner kc13greiner left a comment

Choose a reason for hiding this comment

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

LGTM!

@jeramysoucy
Copy link
Contributor Author

jeramysoucy commented Sep 26, 2023

@MichaelMarcialis Could you review the updated UI layout?

Copy link
Contributor

@MichaelMarcialis MichaelMarcialis left a comment

Choose a reason for hiding this comment

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

LGTM!

@jeramysoucy jeramysoucy merged commit 90faf2b into elastic:main Sep 29, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Security/Spaces Platform Security - Spaces feature Feature:Security/User Profile Feature:Users/Roles/API Keys release_note:skip Skip the PR/issue when compiling release notes Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security][Spaces] Migrate all usages of EuiPage*_Deprecated
6 participants