diff --git a/.oxlintrc.json b/.oxlintrc.json index 3b9014537..37684f939 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -90,7 +90,8 @@ "expectVisible", "expectRowVisible", "expectOptions", - "expectRowMenuStaysOpen" + "expectRowMenuStaysOpen", + "expectCanAddUserAcrossTabs" ] } ], diff --git a/app/api/roles.ts b/app/api/roles.ts index 9c3ff07da..4870e2236 100644 --- a/app/api/roles.ts +++ b/app/api/roles.ts @@ -14,6 +14,8 @@ import { useMemo } from 'react' import * as R from 'remeda' +import type { IdentityFilter } from '~/util/access' + import type { FleetRole, IdentityType, ProjectRole, SiloRole } from './__generated__/Api' import { api, q, usePrefetchedQuery } from './client' @@ -23,6 +25,11 @@ import { api, q, usePrefetchedQuery } from './client' */ export type RoleKey = FleetRole | SiloRole | ProjectRole +/** + * The source of a role assignment (silo-level or project-level). + */ +export type RoleSource = 'silo' | 'project' + /** Turn a role order record into a sorted array of strings. */ // used for displaying lists of roles, like in a