feat: extend type definitions for KanbanFilters, ViewPreferences, and ColumnVisibility

- Added index signatures to allow for dynamic keys in KanbanFilters, ViewPreferences, and ColumnVisibility interfaces, enhancing flexibility in handling additional properties.
- Updated layout metadata to reflect new application title and description for better branding.
- Updated binary database file.
This commit is contained in:
Julien Froidefond
2025-09-17 08:39:46 +02:00
parent 14d300c682
commit fdaf47c1e5
2 changed files with 5 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ export interface KanbanFilters {
priorities?: TaskPriority[]; priorities?: TaskPriority[];
showCompleted?: boolean; showCompleted?: boolean;
sortBy?: string; sortBy?: string;
[key: string]: string | string[] | TaskPriority[] | boolean | undefined;
} }
export interface ViewPreferences { export interface ViewPreferences {
@@ -63,10 +64,12 @@ export interface ViewPreferences {
showFilters: boolean; showFilters: boolean;
objectivesCollapsed: boolean; objectivesCollapsed: boolean;
theme: 'light' | 'dark'; theme: 'light' | 'dark';
[key: string]: boolean | 'tags' | 'priority' | 'light' | 'dark' | undefined;
} }
export interface ColumnVisibility { export interface ColumnVisibility {
hiddenStatuses: TaskStatus[]; hiddenStatuses: TaskStatus[];
[key: string]: TaskStatus[] | undefined;
} }
export interface UserPreferences { export interface UserPreferences {

View File

@@ -14,8 +14,8 @@ const geistMono = Geist_Mono({
}); });
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Create Next App", title: "Tower control",
description: "Generated by create next app", description: "Tour de controle (Kanban, tache, daily, ...)",
}; };
export default function RootLayout({ export default function RootLayout({