fix: use folder project title in web rows

This commit is contained in:
kris
2026-04-05 13:38:09 +08:00
parent 447e9e0b62
commit c8156d5f40
2 changed files with 7 additions and 3 deletions

View File

@@ -424,9 +424,13 @@ test("folder archive homepage rows keep the project title, compact subtitle, and
const folder = getConversationHomeItems(state).find((item) => item.conversationType === "folder_archive");
assert.ok(folder, "expected grouped folder archive item");
const presentation = getConversationListItemPresentation(folder!);
const presentation = getConversationListItemPresentation({
...folder!,
projectTitle: "项目标题",
threadTitle: "线程标题",
});
assert.equal(presentation.title, "Boss");
assert.equal(presentation.title, "项目标题");
assert.equal(presentation.subtitle, "2 个线程 · 最近:发布回滚");
assert.equal(presentation.href, "/conversations/folders/mac-studio%3Aboss");
});