Access control: Team role picker (#43418)

* Refactor: move fetching from role picker to parent component

* Make built in role props optional

* Initial team role picker

* Add role picker to the teams list

* Optimize fetching roles

* Add pagination for the teams page

* Fix tests

* Hide roles if access control not enabled

* Fix test snapshots

* Refactor: use useAsync() hook

* Refactor: simplify input component

* Move api calls to separate file

* Refactor: use useAsync() hook for user role picker

* Tweak role picker input width

* Fix pagination

* Update test snapshots

* Use loading state from useAsync() hook

* Fix roles label if no roles assigned
This commit is contained in:
Alexander Zobnin
2022-01-17 18:04:54 +03:00
committed by GitHub
parent e888a40531
commit 867ca5b59e
16 changed files with 806 additions and 582 deletions

View File

@@ -28,6 +28,7 @@ export interface TeamGroup {
export interface TeamsState {
teams: Team[];
searchQuery: string;
searchPage: number;
hasFetched: boolean;
}