Skip to content

Convert security management pages to new layout#101660

Merged
legrego merged 24 commits intoelastic:masterfrom
legrego:chore/management-page-conversions
Jun 29, 2021
Merged

Convert security management pages to new layout#101660
legrego merged 24 commits intoelastic:masterfrom
legrego:chore/management-page-conversions

Conversation

@legrego
Copy link
Copy Markdown
Member

@legrego legrego commented Jun 8, 2021

Summary

Updates the security stack management apps to conform to the new layout as outlined in #101336

Users

image

image

Roles

image

image

Role mappings

image

image

API Keys

image

Spaces

image

image

@legrego legrego added release_note:skip Skip the PR/issue when compiling release notes Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v7.14.0 v8.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Jun 9, 2021
<FormattedMessage
id="xpack.security.management.roleMappings.noCompatibleRealmsErrorTitle"
defaultMessage="No compatible realms are enabled in Elasticsearch"
defaultMessage="No compatible realms appear to be enabled in Elasticsearch"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This wasn't necessary, but it softens the language because we aren't 100% sure that there aren't any compatible realms

@legrego legrego marked this pull request as ready for review June 9, 2021 14:05
@legrego legrego requested a review from a team as a code owner June 9, 2021 14:05
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@legrego legrego requested a review from cchaos June 9, 2021 14:05
Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

I'm seeing a flash of a loading screen that looks to still be rendering the EuiPage component. Specifically when I click the "Create role mapping" button.

Screen Shot 2021-06-10 at 14 25 24 PM

The others are mostly minor comments. But overall this looks great. Thank you!!!

@spalger spalger added v8.0.0 and removed v8.0 labels Jun 10, 2021
Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Updates look great to me. Thanks @legrego !!

@legrego
Copy link
Copy Markdown
Member Author

legrego commented Jun 16, 2021

@elasticmachine merge upstream

@legrego
Copy link
Copy Markdown
Member Author

legrego commented Jun 16, 2021

@elasticmachine merge upstream

@legrego
Copy link
Copy Markdown
Member Author

legrego commented Jun 17, 2021

@watson this is ready for review if you have a chance to take a look

@legrego
Copy link
Copy Markdown
Member Author

legrego commented Jun 17, 2021

@elasticmachine merge upstream

@legrego
Copy link
Copy Markdown
Member Author

legrego commented Jun 21, 2021

@elasticmachine merge upstream

if (!isLoadingTable && apiKeys && apiKeys.length === 0) {
return (
<EuiPageContent>
<EuiPageContent verticalPosition="center" horizontalPosition="center" color="subdued">
Copy link
Copy Markdown
Contributor

@thomheymann thomheymann Jun 21, 2021

Choose a reason for hiding this comment

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

@cchaos Should the create button in the empty prompt use the same "iconInCircleFilled" icon as the ones in the header on the index page? Seems a bit inconsistent but it's displayed that way in the meta issue too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah I pushed a commit for this before I realized you asked @cchaos for input. I updated this to be plusInCircleFilled as that's consistent with the other "Create" buttons, but I'm happy to adjust as necessary

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For fill style buttons, the Filled icon is best :) sorry for the late response

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@cchaos Sorry, I was talking about the empty prompts.

We show an icon in the CTA on the index pages:

Screenshot 2021-06-24 at 09 28 15

But we do not do that for the empty state:

Screenshot 2021-06-24 at 09 27 28

Seems inconsistent and I was wondering if that's intentional.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

THere's no real pattern for the empty state version of CTA's. You can add one if you'd like. I wouldn't hold up this PR for it though 😉

@legrego legrego requested a review from thomheymann June 23, 2021 11:13
@legrego
Copy link
Copy Markdown
Member Author

legrego commented Jun 23, 2021

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@thomheymann thomheymann left a comment

Choose a reason for hiding this comment

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

Looks great - so much nicer than before! 🙌

I noticed a couple small issues.

The panels at the bottom of the user form seem to be stretching out in height now which they didn't before and looks off:

Screenshot 2021-06-24 at 09 31 48

If I read @cchaos earlier comment correctly we should be using filled icon styles for filled buttons and outlined icons for the ones inside role management:

Screenshot 2021-06-24 at 09 39 35

If that's not the case then we should update role mappings form as well but I think outlined icon looks better for unfilled buttons:

Screenshot 2021-06-24 at 09 47 09

public render() {
return (
<EuiPanel>
<EuiPanel hasShadow={false} hasBorder={true}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: I think hasShadow defaults to false when hasBorder is enabled so you could simplify this to:

<EuiPanel hasBorder>

@legrego
Copy link
Copy Markdown
Member Author

legrego commented Jun 24, 2021

@thomheymann thanks for the review! I updated the edit role screen to use outlined icons in its buttons for consistency, as you suggested. As for the actions on the user management page, I wasn't able to reproduce the stretched layout that you experienced:

image

@legrego
Copy link
Copy Markdown
Member Author

legrego commented Jun 28, 2021

@elasticmachine merge upstream

@legrego legrego requested a review from thomheymann June 28, 2021 16:55
Copy link
Copy Markdown
Contributor

@thomheymann thomheymann left a comment

Choose a reason for hiding this comment

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

LGTM!

@legrego legrego enabled auto-merge (squash) June 29, 2021 16:36
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 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 783.3KB 781.5KB -1.7KB
spaces 279.8KB 279.1KB -640.0B
total -2.3KB

Page load bundle

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

id before after diff
spaces 42.3KB 42.9KB +545.0B

History

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

@legrego legrego merged commit 6c172ea into elastic:master Jun 29, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jun 29, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jun 30, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v7.14.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants