feat: enhance KanbanPageClient and KeyboardShortcuts with new functionality

- Added `toggleFontSize` and `handleToggleDueDateFilter` to `KanbanPageClient` for improved user control over font size and due date visibility.
- Replaced `useKeyboardShortcuts` with `useGlobalKeyboardShortcuts` for better shortcut management across components.
- Updated keyboard shortcuts in `KeyboardShortcutsContext` to include new actions for toggling objectives, due date filters, and font size.
- Refined `KeyboardShortcutsModal` layout for better usability and consistency.
- Removed deprecated `useKeyboardShortcuts` hook to streamline codebase.
This commit is contained in:
Julien Froidefond
2025-09-29 20:57:00 +02:00
parent 749f69680b
commit 32f9d1d5de
6 changed files with 127 additions and 97 deletions

View File

@@ -23,13 +23,13 @@ const PAGE_SHORTCUTS: PageShortcuts = {
category: 'Navigation'
},
{
keys: ['Cmd', 'Ctrl', 'D'],
keys: ['Shift', 'Q'],
description: 'Basculer le thème',
category: 'Apparence'
},
{
keys: ['Cmd', 'Ctrl', 'T'],
description: 'Changer de thème sombre',
keys: ['Shift', 'W'],
description: 'Faire tourner les thèmes dark',
category: 'Apparence'
},
{
@@ -42,7 +42,7 @@ const PAGE_SHORTCUTS: PageShortcuts = {
// Dashboard
'/': [
{
keys: ['Cmd', 'Ctrl', 'K'],
keys: ['Shift', 'K'],
description: 'Vers Kanban',
category: 'Navigation'
}
@@ -51,7 +51,7 @@ const PAGE_SHORTCUTS: PageShortcuts = {
// Kanban
'/kanban': [
{
keys: ['Cmd', 'Ctrl', 'N'],
keys: ['Shift', 'N'],
description: 'Créer une nouvelle tâche',
category: 'Actions'
},
@@ -61,15 +61,30 @@ const PAGE_SHORTCUTS: PageShortcuts = {
category: 'Vue'
},
{
keys: ['Cmd', 'Ctrl', 'F'],
keys: ['Shift', 'F'],
description: 'Ouvrir les filtres',
category: 'Filtres'
},
{
keys: ['Cmd', 'Ctrl', 'S'],
keys: ['Shift', 'S'],
description: 'Basculer les swimlanes',
category: 'Vue'
},
{
keys: ['Shift', 'O'],
description: 'Basculer les objectifs',
category: 'Vue'
},
{
keys: ['Shift', 'D'],
description: 'Filtrer par date de fin',
category: 'Filtres'
},
{
keys: ['Shift', 'Z'],
description: 'Basculer la taille de police',
category: 'Vue'
},
{
keys: ['Tab'],
description: 'Navigation entre colonnes',
@@ -95,7 +110,7 @@ const PAGE_SHORTCUTS: PageShortcuts = {
category: 'Navigation'
},
{
keys: ['Cmd', 'Ctrl', 'T'],
keys: ['Shift', 'H'],
description: 'Aller à aujourd\'hui',
category: 'Navigation'
},