'use client' import { useDebugStore } from './debug-store' export function StorePanel() { const tasks = useDebugStore((s) => s.tasks) const applyCount = useDebugStore((s) => s.applyCount) const skipCount = useDebugStore((s) => s.skipCount) const reset = useDebugStore((s) => s.reset) const taskList = Object.values(tasks) return (
Store layer: applyCount: {applyCount} skipCount: {skipCount} taskCount: {taskList.length}
{taskList.length === 0 ? ( ) : ( taskList.map((t) => ( )) )}
id status title updated_at (lokaal)
Store is leeg. Trigger een event en kijk of de tabel hier vult.
{t.id} {t.status} {t.title} {t.updated_at}
) } function statusColor(status: string) { switch (status) { case 'TO_DO': return '#888' case 'IN_PROGRESS': return '#0070cc' case 'REVIEW': return '#cc7a00' case 'DONE': return 'green' default: return 'inherit' } }