dev: implemented MobX in workspace settings and create workspace form (#2561)
* dev: implement mobx store for workspace settings * chore: workspace general settings mobx integration * chore: workspace members settings mobx integration
This commit is contained in:
parent
050406b8a4
commit
dcf81e28e4
30 changed files with 934 additions and 1658 deletions
1
web/types/users.d.ts
vendored
1
web/types/users.d.ts
vendored
|
|
@ -56,6 +56,7 @@ export interface IUserLite {
|
|||
avatar: string;
|
||||
created_at: Date;
|
||||
display_name: string;
|
||||
email?: string;
|
||||
first_name: string;
|
||||
readonly id: string;
|
||||
is_bot: boolean;
|
||||
|
|
|
|||
27
web/types/workspace.d.ts
vendored
27
web/types/workspace.d.ts
vendored
|
|
@ -1,4 +1,4 @@
|
|||
import type { IProjectMember, IUser, IUserMemberLite, IWorkspaceViewProps } from "types";
|
||||
import type { IProjectMember, IUser, IUserLite, IUserMemberLite, IWorkspaceViewProps } from "types";
|
||||
|
||||
export interface IWorkspace {
|
||||
readonly id: string;
|
||||
|
|
@ -56,16 +56,29 @@ export type Properties = {
|
|||
};
|
||||
|
||||
export interface IWorkspaceMember {
|
||||
readonly id: string;
|
||||
workspace: IWorkspace;
|
||||
member: IUserMemberLite;
|
||||
role: 5 | 10 | 15 | 20;
|
||||
company_role: string | null;
|
||||
view_props: IWorkspaceViewProps;
|
||||
created_at: Date;
|
||||
updated_at: Date;
|
||||
created_by: string;
|
||||
id: string;
|
||||
member: IUserLite;
|
||||
role: 5 | 10 | 15 | 20;
|
||||
updated_at: Date;
|
||||
updated_by: string;
|
||||
workspace: IWorkspaceLite;
|
||||
}
|
||||
|
||||
export interface IWorkspaceMemberMe {
|
||||
company_role: string | null;
|
||||
created_at: Date;
|
||||
created_by: string;
|
||||
default_props: IWorkspaceViewProps;
|
||||
id: string;
|
||||
member: string;
|
||||
role: 5 | 10 | 15 | 20;
|
||||
updated_at: Date;
|
||||
updated_by: string;
|
||||
view_props: IWorkspaceViewProps;
|
||||
workspace: string;
|
||||
}
|
||||
|
||||
export interface ILastActiveWorkspaceDetails {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue