Hide pinned controls on Web conversations

This commit is contained in:
kris
2026-04-11 02:44:01 +08:00
parent 164a7568a7
commit 5bf745f45f
2 changed files with 38 additions and 10 deletions

View File

@@ -410,13 +410,17 @@ export function getConversationListItemPresentation(conversation: ConversationIt
}
export function getConversationActionAvailability(conversation: ConversationItem) {
const canTogglePin = conversation.projectId !== "master-agent";
return {
canTogglePin,
canTogglePin: false,
togglePinLabel: conversation.topPinnedLabel || conversation.manualPinned ? "取消置顶" : "置顶",
};
}
export function getConversationPinnedBadgeLabel(conversation: ConversationItem) {
void conversation;
return "";
}
export function getConversationActionsPath(projectId: string) {
return `/api/v1/conversations/${encodeURIComponent(projectId)}/actions`;
}
@@ -526,11 +530,7 @@ export function ConversationList({
</div>
<div className="flex min-w-[98px] flex-col items-end gap-1">
<div className="min-h-[18px] text-[11px] text-[#07C160]">
{conversation.projectId === "master-agent"
? "置顶"
: conversation.topPinnedLabel
? "置顶"
: ""}
{getConversationPinnedBadgeLabel(conversation)}
</div>
<div className="text-[12px] text-[#8C8C8C]">{conversation.latestReplyLabel}</div>
{conversation.contextBudgetIndicator.visible &&