refactor: port collection tree rendered in the save request modal to the new implementation

This commit is contained in:
jamesgeorge007
2024-02-13 20:10:02 +05:30
parent b0c72fd295
commit 68795a5017
6 changed files with 413 additions and 268 deletions

View File

@@ -20,28 +20,29 @@ export type Picked =
pickedType: "my-collection"
collectionIndex: number
}
| {
pickedType: "teams-request"
requestID: string
}
| {
pickedType: "teams-folder"
folderID: string
}
| {
pickedType: "teams-collection"
collectionID: string
}
| {
pickedType: "gql-my-request"
folderPath: string
requestIndex: number
}
| {
pickedType: "gql-my-folder"
folderPath: string
}
| {
pickedType: "gql-my-collection"
collectionIndex: number
}
// TODO: Enable this when rest of the implementation is in place
// | {
// pickedType: "teams-request"
// requestID: string
// }
// | {
// pickedType: "teams-folder"
// folderID: string
// }
// | {
// pickedType: "teams-collection"
// collectionID: string
// }
// | {
// pickedType: "gql-my-request"
// folderPath: string
// requestIndex: number
// }
// | {
// pickedType: "gql-my-folder"
// folderPath: string
// }
// | {
// pickedType: "gql-my-collection"
// collectionIndex: number
// }