feat: implement drag-and-drop reordering for daily checkboxes

- Added DnD functionality to `DailySection` for reordering checkboxes using `@dnd-kit/core` and `@dnd-kit/sortable`.
- Introduced `onReorderCheckboxes` prop to handle server updates after reordering.
- Updated `useDaily` hook to streamline error handling during reordering.
- Cleaned up `Header` component by removing unnecessary syncing text.
- Adjusted `DailyPageClient` to pass reorder function to `DailySection`.
This commit is contained in:
Julien Froidefond
2025-09-18 14:56:05 +02:00
parent 2c262b06e7
commit 618b2e9e5c
5 changed files with 220 additions and 60 deletions

View File

@@ -51,7 +51,7 @@ export function Header({ title = "TowerControl", subtitle = "Task Management", s
{title}
</h1>
<p className="text-[var(--muted-foreground)] mt-1 font-mono text-sm">
{subtitle} {syncing && '• Synchronisation...'}
{subtitle}
</p>
</div>
</div>