fix: remove folder intro panels across surfaces

This commit is contained in:
AI Bot
2026-06-05 14:50:13 +08:00
parent 4e2636ec8b
commit e4e6f6597a
4 changed files with 24 additions and 33 deletions

View File

@@ -101,6 +101,26 @@ test("folder conversation page wires folder thread ids into realtime refresh", a
assert.match(folderPage, /"conversation\.updated"/, "expected folder page to listen to conversation updates");
});
test("folder conversation page does not render a redundant intro card before the thread list", async () => {
const folderPage = await readWorkspaceFile("src/app/conversations/folders/[folderKey]/page.tsx");
assert.doesNotMatch(
folderPage,
/rounded-2xl border border-\[#E5E5EA\] bg-white px-4 py-4/,
"expected folder page to skip the standalone intro card",
);
assert.doesNotMatch(
folderPage,
/folder\.deviceName/,
"expected folder page to avoid repeating device info above the thread list",
);
assert.doesNotMatch(
folderPage,
/folder\.threadCount/,
"expected folder page to avoid repeating thread count above the thread list",
);
});
test("forward page wires realtime refresh for visible source and target projects", async () => {
const forwardPage = await readWorkspaceFile("src/app/conversations/[projectId]/forward/page.tsx");