forked from github/plane
c9ffc9465f
* fix: Labels reordering inconsistency * fix: Delete child labels * feat: multi-select while grouping labels * refactor: label sorting in mobx computed function * feat: drag & drop label grouping, un-grouping * chore: removed label select modal * fix: moving labels from project store to project label store * fix: typo changes and build tree function added * labels feature * disable dropping group into a group * fix build errors * fix more issues * chore: added combining state UI, fixed scroll issue for label groups * chore: group icon for label groups * fix: group cannot be dropped in another group --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: rahulramesha <rahulramesham@gmail.com> Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
// types
|
|
import { IIssue, IIssueLabel, IWorkspaceLite, IProjectLite } from "types";
|
|
|
|
export interface IPage {
|
|
access: number;
|
|
blocks: IPageBlock[];
|
|
color: string;
|
|
created_at: Date;
|
|
created_by: string;
|
|
description: string;
|
|
description_html: string;
|
|
description_stripped: string | null;
|
|
id: string;
|
|
is_favorite: boolean;
|
|
label_details: IIssueLabel[];
|
|
labels: string[];
|
|
name: string;
|
|
owned_by: string;
|
|
project: string;
|
|
project_detail: IProjectLite;
|
|
updated_at: Date;
|
|
updated_by: string;
|
|
workspace: string;
|
|
workspace_detail: IWorkspaceLite;
|
|
}
|
|
|
|
export interface RecentPagesResponse {
|
|
[key: string]: IPage[];
|
|
}
|
|
|
|
export interface IPageBlock {
|
|
completed_at: Date | null;
|
|
created_at: Date;
|
|
created_by: string;
|
|
description: any;
|
|
description_html: any;
|
|
description_stripped: any;
|
|
id: string;
|
|
issue: string | null;
|
|
issue_detail: IIssue | null;
|
|
name: string;
|
|
page: string;
|
|
project: string;
|
|
project_detail: IProjectLite;
|
|
sort_order: number;
|
|
sync: boolean;
|
|
updated_at: Date;
|
|
updated_by: string;
|
|
workspace: string;
|
|
workspace_detail: IWorkspaceLite;
|
|
}
|
|
|
|
export type TPageViewProps = "list" | "detailed" | "masonry";
|