normalize cursor todo items (#1473)

This commit is contained in:
Solomon
2025-12-09 10:54:21 +00:00
committed by GitHub
parent e83e0ee169
commit 1ee05ea862
2 changed files with 18 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ function getStatusIcon(status?: string) {
return <Check aria-hidden className="h-4 w-4 text-success" />;
if (s === 'in_progress' || s === 'in-progress')
return <CircleDot aria-hidden className="h-4 w-4 text-blue-500" />;
if (s === 'cancelled')
return <Circle aria-hidden className="h-4 w-4 text-gray-400" />;
return <Circle aria-hidden className="h-4 w-4 text-muted-foreground" />;
}
@@ -57,7 +59,11 @@ function TodoPanel() {
{getStatusIcon(todo.status)}
</span>
<span className="text-sm leading-5 break-words">
{todo.content}
{todo.status?.toLowerCase() === 'cancelled' ? (
<s className="text-gray-400">{todo.content}</s>
) : (
todo.content
)}
</span>
</li>
))}