[WEB-5594] feat: enhance authentication method handling in member columns and introduce new login labels (#8260)

This commit is contained in:
Prateek Shourya 2025-12-08 18:25:48 +05:30 committed by GitHub
parent 316856a555
commit 7659997b53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 43 additions and 10 deletions

View file

@ -0,0 +1 @@
export type TExtendedLoginMediums = never;

View file

@ -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";

View file

@ -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;

View file

@ -1,5 +1,6 @@
export * from "./ai";
export * from "./auth";
export * from "./auth-ee";
export * from "./base";
export * from "./email";
export * from "./image";

View file

@ -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;

View file

@ -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;
}