feat(FN-3061): align remaining compact icon actions with shared sizing

Fixes FN-3061 aligning compact icon action sizing across Column, PiExtensionsManager, and ScheduleStepsEditor components for consistent UI dimensions.

Fusion-Task-Id: FN-3061
This commit is contained in:
Fusion
2026-05-01 13:00:37 -07:00
committed by gsxdsm
parent a34c819514
commit 1c0a5dfd6d
25 changed files with 182 additions and 75 deletions

View File

@@ -10,8 +10,26 @@ const hiddenDistRoot = join(workspaceRoot, `.tmp-fn-vitest-workspace-resolution-
const internalPackages = ["core", "engine", "dashboard"] as const;
const movedDistDirs: Array<{ from: string; to: string }> = [];
function rmSyncWithRetry(path: string) {
for (let attempt = 0; attempt < 5; attempt++) {
try {
rmSync(path, { recursive: true, force: true });
return;
} catch (error) {
const code = (error as NodeJS.ErrnoException).code;
if (code !== "ENOTEMPTY" && code !== "EPERM" && code !== "EEXIST") {
throw error;
}
if (attempt === 4) {
throw error;
}
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 20 * (attempt + 1));
}
}
}
function hideInternalPackageDistDirs() {
rmSync(hiddenDistRoot, { recursive: true, force: true });
rmSyncWithRetry(hiddenDistRoot);
mkdirSync(hiddenDistRoot, { recursive: true });
for (const pkg of internalPackages) {
@@ -22,7 +40,7 @@ function hideInternalPackageDistDirs() {
const hiddenPath = join(hiddenDistRoot, `${pkg}-dist`);
if (existsSync(hiddenPath)) {
rmSync(hiddenPath, { recursive: true, force: true });
rmSyncWithRetry(hiddenPath);
}
renameSync(distPath, hiddenPath);
movedDistDirs.push({ from: distPath, to: hiddenPath });
@@ -37,13 +55,13 @@ function restoreInternalPackageDistDirs() {
}
if (existsSync(from)) {
rmSync(from, { recursive: true, force: true });
rmSyncWithRetry(from);
}
renameSync(to, from);
}
movedDistDirs.length = 0;
rmSync(hiddenDistRoot, { recursive: true, force: true });
rmSyncWithRetry(hiddenDistRoot);
}
describe("CLI Vitest workspace resolution", () => {