grafana/public/app/features
Alexander Zobnin 757463bd27
Add new role picker to admin/users page (#40631)
* Very simple role picker

* Style radio button

* Separate component for the built-in roles selector

* Custom component instead of Select

* refactor

* Custom input for role picker

* Refactor

* Able to select built-in role

* Add checkboxes for role selector

* Filter out fixed and internal roles

* Add action buttons

* Implement role search

* Fix selecting roles

* Pass custom roles to update

* User role picker

* Some UX work on role picker

* Clear search query on close

* Blur input when closed

* Add roles counter

* Refactor

* Add disabled state for picker

* Adjust disabled styles

* Replace ChangeOrgButton with role picker on admin/users page

* Remove unused code

* Apply suggestions from code review

Suggestions from the @Clarity-89

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Refactor: fix some errors after applying review suggestions

* Show fixed roles in the picker

* Show applied fixed roles

* Fix role counter

* Fix checkbox selection

* Use specific Role type for menu options

* Fix menu when roles list is empty

* Fix radio button name

* Make fixed roles from built-in role disabled

* Make whole menu scrollable

* Add BuiltInRole type

* Simplify appliedRoles

* Simplify options and props

* Do not select and disable inherited fixed roles

* Enable selecting fixed role

* Add description tooltip

* Fix role param name

* Export common input styles from grafana/ui

* Add ValueContainer

* Use value container

* Refactor appliedRoles logic

* Optimise role rendering

* Display selected roles

* Fix tooltip position

* Use OrgRole type

* Optimise role rendering

* Use radio button from grafana UI

* Submenu WIP

* Role picker submenu WIP

* Hide role description

* Tweak styles

* Implement submenu selection

* Disable role selection if it's inherited

* Show new role picker only in Enterprise

* Fix types

* Use orgid when fetching/updating roles

* Use orgId in all access control requests

* Styles for partially checked checkbox

* Tweak group option styles

* Role picker menu: refactor

* Reorganize roles in menu

* Fix input behaviour

* Hide groups on search

* Remove unused components

* Refactor

* Fix group selection

* Remove icons from role tags

* Add spacing for menu sections

* Rename clear all to clear in submenu

* Tweak menu width

* Show changes in the input when selecting roles

* Exclude inherited roles from selection

* Increase menu height

* Change built-in role in input on select

* Include inherited roles to the built-in role selection

* refcator import

* Refactor role picker to be able to pass roles and builtin roles getters

* Add role picker to the org users page

* Show inherited builtin roles in the popup

* Filter out managed roles

* Fix displaying initial builtin roles

* Show tooltip only for non-builtin roles

* Set min width for focused input

* Do not disable inherited roles (by design)

* Only show picker if access control enabled

* Fix tests

* Only close menu on click outside or on indicator click

* Open submenu on hover

* Don't search on empty query

* Do not open/close menu on click

* Refactor

* Apply suggestions from code review

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Fix formatting

* Apply suggestions

* Add more space for close menu sign

* Tune tooltip styles

* Move tooltip to the right side of option

* Use info sign instead of question

Co-authored-by: Clarity-89 <homes89@ukr.net>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-11-17 18:22:40 +03:00
..
admin Add new role picker to admin/users page (#40631) 2021-11-17 18:22:40 +03:00
alerting Alerting: Fixing threshold handle color (#41813) 2021-11-17 16:15:41 +01:00
annotations Angular: Isolate angular more (#41440) 2021-11-10 11:05:36 +01:00
api-keys Chore: Reduce pa11y-ci errors (#41787) 2021-11-17 14:45:45 +01:00
canvas Canvas: show layer elements above element details (#41447) 2021-11-16 10:10:09 -08:00
dashboard Chore: Reduce pa11y-ci errors (#41787) 2021-11-17 14:45:45 +01:00
datasources add support for conditionally rendering extraRenderActions (#41783) 2021-11-17 06:05:39 -05:00
dimensions Geomap: improve resourcepicker modal UX (#41516) 2021-11-10 08:06:38 -08:00
explore Chore: Reduce pa11y-ci errors (#41787) 2021-11-17 14:45:45 +01:00
expressions api/ds/query: simplify data sources lookup for queries and expressions (#41172) 2021-11-05 08:12:55 -07:00
folders Angular: More isolation and removing of unused components (#41630) 2021-11-15 15:12:45 +01:00
inspector A11y: Fix misc. fastpass issues (#41088) 2021-11-01 14:45:23 +00:00
library-panels LibraryPanels: Ensure the list can be fully scrolled when adding a library panel (#41196) 2021-11-02 15:21:11 +00:00
live Live: generate ts definitions for pipeline configs (#41544) 2021-11-15 22:45:35 +03:00
manage-dashboards Import: Load gcom dashboards from URL (#41799) 2021-11-17 12:26:44 +00:00
org AngularJS: Move angular stuff into app/angular (#41415) 2021-11-08 18:41:04 +01:00
panel MarketTrend: rename to candlestick panel (#41582) 2021-11-15 23:09:59 +01:00
playlist Chore: Reduces strict errors in DashboardPickerByID (#40431) 2021-10-14 10:20:04 +02:00
plugins DatasourceRef: keep uid/type ref when using template variables (#41785) 2021-11-17 07:55:12 +01:00
profile Chore: Reduce pa11y-ci errors (#41787) 2021-11-17 14:45:45 +01:00
query add support for conditionally rendering extraRenderActions (#41783) 2021-11-17 06:05:39 -05:00
sandbox Dashboard: replace datasource name with a reference object (#33817) 2021-10-29 10:57:24 -07:00
search Chore: Reduce pa11y-ci errors (#41787) 2021-11-17 14:45:45 +01:00
teams A11y: Fix fastpass issues for /org/teams pages (#39848) 2021-09-30 15:46:10 +01:00
templating Dashboard: replace datasource name with a reference object (#33817) 2021-10-29 10:57:24 -07:00
users Add new role picker to admin/users page (#40631) 2021-11-17 18:22:40 +03:00
variables Variables: Exclude adhoc variables from the impacted by logic (#41717) 2021-11-16 13:48:07 +01:00
all.ts Angular: More isolation and removing of unused components (#41630) 2021-11-15 15:12:45 +01:00