add card thumbnails with label dots, due dates, and checklist progress bar

This commit is contained in:
2026-02-15 18:49:20 +02:00
parent cdc1b7e2c1
commit cc2a72b999
3 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import type { ChecklistItem } from "@/types/board";
interface ChecklistBarProps {
checklist: ChecklistItem[];
}
export function ChecklistBar({ checklist }: ChecklistBarProps) {
if (checklist.length === 0) return null;
return (
<div className="flex items-center gap-px">
{checklist.map((item) => (
<span
key={item.id}
className={`inline-block h-1 w-1.5 rounded-[1px] ${
item.checked ? "bg-pylon-accent" : "bg-pylon-column"
}`}
/>
))}
</div>
);
}