Convert task priority to enum so it is now sortable

This commit is contained in:
2025-01-15 15:50:50 +01:00
parent 31c309aecc
commit 464262d46d
2 changed files with 27 additions and 9 deletions

View File

@@ -6,6 +6,7 @@ export type Task = {
fullLabel: string;
tags: string[];
priority: TaskPriority;
priorityStr: string;
createdDate?: Dayjs;
startDate?: Dayjs;
scheduledDate?: Dayjs;
@@ -19,10 +20,11 @@ export type Task = {
reminder?: string;
}
export type TaskPriority =
| 'lowest'
| 'low'
| 'normal'
| 'medium'
| 'high'
| 'highest';
export enum TaskPriority {
LOWEST,
LOW,
NORMAL,
MEDIUM,
HIGH,
HIGHEST,
};