feat: add sorting functionality to KanbanFilters

- Enhanced `KanbanFilters` to include sorting options, allowing users to sort tasks dynamically.
- Implemented dropdown for sorting with options rendered via portal to manage z-index issues.
- Updated `TasksContext` to handle sorting preferences and apply sorting logic to both pinned and regular tasks.
- Added `sortBy` property to `KanbanFilters` and user preferences for persistent sorting settings.
This commit is contained in:
Julien Froidefond
2025-09-15 08:32:01 +02:00
parent d681a6c127
commit c8cacf1714
4 changed files with 357 additions and 17 deletions

View File

@@ -6,6 +6,7 @@ export interface KanbanFilters {
tags?: string[];
priorities?: TaskPriority[];
showCompleted?: boolean;
sortBy?: string;
}
export interface ViewPreferences {