forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Here are the design edits (I felt comfortable making). I also had to add some `// TODO`’s for TS and/or EUI fixes. There are still some issues with the UI that I'll document in here. ---- ## 1. I cleaned up the "No access" screen but should get a review from writers <img src="https://d.pr/free/i/tc7Xqj+" /> ## 2. The feature list needs to be updated to use button groups. It should only display the buttons on "Custom" and each feature should always show all privileges, disabling the ones that aren't available. Only remove the button group if the feature's privilege cannot be changed at all and show a lock icon with a tooltip. _Forget about the bolding of **All** for now__ <img width="2036" alt="screen shot 2019-01-08 at 14 39 14 pm" src="https://user-images.githubusercontent.com/549577/50920616-d90db880-1413-11e9-93cf-5575887f7024.png"> ## 3. The "base" privilege selection should also allow a "None" option which behaves similar to the "Read" and "All". <img src="https://d.pr/free/i/0fLOpU+" /> **Bug:** <img src="https://d.pr/free/i/WR9QW9+" /> ## 4. I don't understand the ML tooltip This could use more information or better instruction. <img src="https://d.pr/free/i/fT8xng+" /> ## 5. Anywhere a permission is superceded by the Global permissions, it should show a lock with a tooltip <img src="https://d.pr/free/i/0f8z04+" /> <img src="https://d.pr/free/i/Cv5fV8+" /> <img src="https://d.pr/free/i/lXoDvg+" /> *Question* <img src="https://d.pr/free/i/mAjYlc+" /> ## 6. Let's lock the privilege select select dropdown if super-ceded by global <img src="https://d.pr/free/i/Q6HgYm+" /> ## 7. Functionality around the`+7 more` text **In the regular table**, lets just allow the row to expand to show the entire list. <img src="https://d.pr/free/i/mD3Nh2+" /> **In the Matrix**, let's make the text a popover link to show the full list (including those visible in the header) <img src="https://d.pr/free/i/bGJvag+" /> **For Global (in matrix and regular table)**, let's do the same thing as above but make the `(all spaces)` a popover link that lists all spaces available in the whole Kibana instance. <img src="https://d.pr/free/i/mQ6icn+" /> ---- 😌 Sorry, that was probably long-winded, but I think should cover it. Feel free, if you want, to commit directly to my forked branch before you merge in.
- Loading branch information
Showing
27 changed files
with
289 additions
and
217 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './management/users/index'; |
1 change: 1 addition & 0 deletions
1
x-pack/plugins/security/public/components/management/users/_index.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './users'; |
16 changes: 16 additions & 0 deletions
16
x-pack/plugins/security/public/components/management/users/_users.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// HACK -- Fix for background color full-height of browser | ||
.secUsersEditPage, | ||
.secUsersListingPage { | ||
min-height: calc(100vh - 70px); | ||
} | ||
|
||
.secUsersListingPage__content { | ||
flex-grow: 0; | ||
} | ||
|
||
.secUsersEditPage__content { | ||
max-width: $secFormWidth; | ||
margin-left: auto; | ||
margin-right: auto; | ||
flex-grow: 0; | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
@import 'ui/public/styles/styling_constants'; | ||
|
||
// Logged out styles | ||
@import './views/logged_out/index'; | ||
// Prefix all styles with "kbn" to avoid conflicts. | ||
// Examples | ||
// secChart | ||
// secChart__legend | ||
// secChart__legend--small | ||
// secChart__legend-isLoading | ||
|
||
// Login styles | ||
@import './views/login/index'; | ||
$secFormWidth: 460px; | ||
|
||
// Public components | ||
@import './components/index'; | ||
|
||
// Public views | ||
@import './views/index'; | ||
|
||
// Management styles | ||
@import './views/management/index'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Public views | ||
@import './logged_out/index'; | ||
|
||
// Login styles | ||
@import './login/index'; | ||
|
||
// Management styles | ||
@import './management/index'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './change_password_form/index'; | ||
@import './edit_role/index'; |
17 changes: 17 additions & 0 deletions
17
.../plugins/security/public/views/management/change_password_form/_change_password_form.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.secChangePasswordForm__panel { | ||
max-width: $secFormWidth; | ||
} | ||
|
||
.secChangePasswordForm__subLabel { | ||
margin-bottom: $euiSizeS; | ||
} | ||
|
||
.secChangePasswordForm__footer { | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: center; | ||
|
||
.kuiButton + .kuiButton { | ||
margin-left: $euiSizeS; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
x-pack/plugins/security/public/views/management/change_password_form/_index.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './change_password_form'; |
This file contains 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
1 change: 1 addition & 0 deletions
1
x-pack/plugins/security/public/views/management/edit_role/_index.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './components/index'; |
7 changes: 7 additions & 0 deletions
7
x-pack/plugins/security/public/views/management/edit_role/components/_index.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import './collapsible_panel/collapsible_panel'; | ||
@import './privileges/kibana/space_aware_privilege_section/index'; | ||
|
||
.secPrivilegeFeatureIcon { | ||
flex-shrink: 0; | ||
margin-right: $euiSizeS; | ||
} |
This file contains 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
This file contains 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
1 change: 1 addition & 0 deletions
1
...nagement/edit_role/components/privileges/kibana/space_aware_privilege_section/_index.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './privilege_matrix'; |
5 changes: 5 additions & 0 deletions
5
...it_role/components/privileges/kibana/space_aware_privilege_section/_privilege_matrix.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.secPrivilegeMatrix__row--isBasePrivilege, | ||
.secPrivilegeMatrix__cell--isGlobalPrivilege, | ||
.secPrivilegeTable__row--isGlobalSpace, { | ||
background-color: $euiColorLightestShade; | ||
} |
This file contains 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
Oops, something went wrong.