feat(files): add safe connector space removal

This commit is contained in:
2026-08-19 23:25:43 +02:00
parent e1361427b8
commit a9c7a7a40c
7 changed files with 149 additions and 1 deletions
@@ -0,0 +1,12 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
const source = readFileSync(new URL("../src/features/files/FilesPage.tsx", import.meta.url), "utf8");
assert.match(source, /deleteFileConnectorSpace\(settings, target\.connector_space_id\)/);
assert.match(source, /activeSpaceIsConnector &&[\s\S]*setConnectorSpaceRemovalTarget\(activeSpace\)/);
assert.match(source, /Remote files and folders remain at the provider/);
assert.match(source, /Imported GovOPlaN files, metadata and shares remain managed/);
assert.match(source, /connector profile, credentials and remote references are not deleted/);
console.log("Connector-space removal structure checks passed.");