feat(editor): Combine 'Move to Folder' and 'Change owner' modals (#15756)

This new modal also allows transferring entire folders to other projects and users.
This commit is contained in:
Jaakko Husso
2025-05-28 23:41:07 +03:00
committed by GitHub
parent ba70cab9d5
commit e860dd6d2e
27 changed files with 1989 additions and 292 deletions

View File

@@ -373,7 +373,6 @@ export type BaseFolderItem = BaseResource & {
subFolderCount: number;
parentFolder?: ResourceParentFolder;
homeProject?: ProjectSharingData;
sharedWithProjects?: ProjectSharingData[];
tags?: ITag[];
};
@@ -387,12 +386,16 @@ export interface FolderListItem extends BaseFolderItem {
resource: 'folder';
}
export interface ChangeLocationSearchResult extends BaseFolderItem {
resource: 'folder' | 'project';
export interface ChangeLocationSearchResponseItem extends BaseFolderItem {
path: string[];
}
export type FolderPathItem = PathItem & { parentFolder?: string };
export interface ChangeLocationSearchResult extends ChangeLocationSearchResponseItem {
resource: 'folder' | 'project';
}
export type WorkflowListResource = WorkflowListItem | FolderListItem;
export type FolderCreateResponse = Omit<