[WEB-5594] feat: enhance authentication method handling in member columns and introduce new login labels (#8260)
This commit is contained in:
parent
316856a555
commit
7659997b53
10 changed files with 43 additions and 10 deletions
1
packages/types/src/instance/auth-ee.ts
Normal file
1
packages/types/src/instance/auth-ee.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type TExtendedLoginMediums = never;
|
||||
|
|
@ -43,3 +43,5 @@ export type TGetBaseAuthenticationModeProps = {
|
|||
updateConfig: (key: TInstanceAuthenticationMethodKeys, value: string) => void;
|
||||
resolvedTheme: string | undefined;
|
||||
};
|
||||
|
||||
export type TCoreLoginMediums = "email" | "magic-code" | "github" | "gitlab" | "google" | "gitea";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,9 @@ import type {
|
|||
TInstanceImageConfigurationKeys,
|
||||
TInstanceAuthenticationKeys,
|
||||
TInstanceWorkspaceConfigurationKeys,
|
||||
TCoreLoginMediums,
|
||||
} from "./";
|
||||
import type { TExtendedLoginMediums } from "./auth-ee";
|
||||
|
||||
export interface IInstanceInfo {
|
||||
instance: IInstance;
|
||||
|
|
@ -98,3 +100,5 @@ export interface IInstanceConfiguration {
|
|||
export type IFormattedInstanceConfiguration = {
|
||||
[key in TInstanceConfigurationKeys]: string;
|
||||
};
|
||||
|
||||
export type TLoginMediums = TCoreLoginMediums | TExtendedLoginMediums;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
export * from "./ai";
|
||||
export * from "./auth";
|
||||
export * from "./auth-ee";
|
||||
export * from "./base";
|
||||
export * from "./email";
|
||||
export * from "./image";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import type { TUserPermissions } from "./enums";
|
||||
import type { IIssueActivity, TIssuePriorities, TStateGroups } from ".";
|
||||
import type { TLoginMediums } from "./instance";
|
||||
|
||||
/**
|
||||
* @description The start of the week for the user
|
||||
|
|
@ -15,8 +16,6 @@ export enum EStartOfTheWeek {
|
|||
SATURDAY = 6,
|
||||
}
|
||||
|
||||
export type TLoginMediums = "email" | "magic-code" | "github" | "gitlab" | "google";
|
||||
|
||||
export interface IUserLite {
|
||||
avatar_url: string;
|
||||
display_name: string;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import type { ICycle } from "./cycle";
|
|||
import type { TUserPermissions } from "./enums";
|
||||
import type { TProjectMembership } from "./project";
|
||||
import type { IUser, IUserLite } from "./users";
|
||||
import type { TLoginMediums } from "./instance";
|
||||
import type { IWorkspaceViewProps } from "./view-props";
|
||||
|
||||
export enum EUserWorkspaceRoles {
|
||||
|
|
@ -82,7 +83,7 @@ export interface IWorkspaceMember {
|
|||
last_name?: string;
|
||||
joining_date?: string;
|
||||
display_name?: string;
|
||||
last_login_medium?: string;
|
||||
last_login_medium?: TLoginMediums;
|
||||
is_active?: boolean;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue