fix: cross-collection drag and drop tab and format issues (#7584)

Close the open tab when a request is moved to a different collection
via drag and drop, preventing the "Request no longer exists" error.

Add format conversion when dragging requests between collections with
different formats (.bru vs .yml). A new IPC handler parses the source
file and re-serializes it in the target collection's format. Folder
cross-format moves are blocked with a toast error.

Co-authored-by: Chirag Chandrashekhar <cchirag85@gmail.com>
This commit is contained in:
Chirag Chandrashekhar
2026-03-26 20:32:29 +05:30
committed by GitHub
parent 03dcb6b7b9
commit ff975c44f2
9 changed files with 206 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
{
"collections": [
{
"path": "{{collectionPath}}/bru-collection",
"securityConfig": {
"jsSandboxMode": "safe"
}
},
{
"path": "{{collectionPath}}/yml-collection",
"securityConfig": {
"jsSandboxMode": "safe"
}
}
]
}

View File

@@ -0,0 +1,12 @@
{
"lastOpenedCollections": [
"{{collectionPath}}/bru-collection",
"{{collectionPath}}/yml-collection"
],
"preferences": {
"onboarding": {
"hasLaunchedBefore": true,
"hasSeenWelcomeModal": true
}
}
}