Admin: Enable extending filters (#39825)

* Setup extensible filters

* Fix test

* Handle filter as array

* Add className

* Abstract getFilters

* Make docs link external

* Use underline for links in tooltips instead of link color

Co-authored-by: Selene <selenepinillos@gmail.com>
This commit is contained in:
Alex Khomenko
2021-10-07 17:41:52 +03:00
committed by GitHub
parent 722c414fef
commit b5f39637d4
5 changed files with 61 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
import { OrgRole } from '.';
import { SelectableValue } from '@grafana/data';
export interface OrgUser {
avatarUrl: string;
@@ -106,6 +107,7 @@ export interface UserAdminError {
body: string;
}
export type UserFilter = Record<string, string | boolean | SelectableValue[]>;
export interface UserListAdminState {
users: UserDTO[];
query: string;
@@ -113,6 +115,6 @@ export interface UserListAdminState {
page: number;
totalPages: number;
showPaging: boolean;
filter: string;
filters: UserFilter[];
isLoading: boolean;
}