fix(studio): the rename note says to update the listed files by hand (#8763)

This commit is contained in:
Miguel Ángel
2026-11-24 20:35:21 +00:00
committed by GitHub
parent 2b1fe6f313
commit 3576301eb0
2 changed files with 3 additions and 3 deletions
@@ -308,7 +308,7 @@ describe("useFileManager renames", () => {
it("names the files a rename left pointing at the old path", async () => {
const showToast = await rename({ unchangedReferences: ["reference.js", "lib/load.mjs"] });
expect(showToast).toHaveBeenCalledWith(
"Still pointing at clip.mp4: reference.js, lib/load.mjs",
"Renamed. These files still use the old name, so update them by hand: reference.js, lib/load.mjs",
"info",
);
});
@@ -318,7 +318,7 @@ describe("useFileManager renames", () => {
unchangedReferences: ["a.js", "b.js", "c.js", "d.js", "e.js", "f.js", "g.js"],
});
expect(showToast).toHaveBeenCalledWith(
"Still pointing at clip.mp4: a.js, b.js, c.js, d.js, e.js and 2 more",
"Renamed. These files still use the old name, so update them by hand: a.js, b.js, c.js, d.js, e.js and 2 more",
"info",
);
});
+1 -1
View File
@@ -339,7 +339,7 @@ export function useFileManager({
if (Array.isArray(unchanged) && unchanged.length > 0) {
const more = unchanged.length > 5 ? ` and ${unchanged.length - 5} more` : "";
showToast(
`Still pointing at ${oldPath}: ${unchanged.slice(0, 5).join(", ")}${more}`,
`Renamed. These files still use the old name, so update them by hand: ${unchanged.slice(0, 5).join(", ")}${more}`,
"info",
);
}