hide completed tasks in projects, and add individual deadline tasks to front page.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-01-07 20:55:43 +01:00
parent c6fa75d1a3
commit 48ba7c8693
13 changed files with 116 additions and 22 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
import type { IconName } from "../external/icons";
import type Item from "./item";
export default interface Group {
id: string
name: string
icon: string
icon: IconName
description: string
}
+2 -1
View File
@@ -1,10 +1,11 @@
import type { IconName } from "../external/icons";
import type Group from "./group";
export default interface Item {
id: string
groupId: string
groupWeight: number
icon: string
icon: IconName
name: string
description: string
}
+3 -2
View File
@@ -1,10 +1,11 @@
import type { IconName } from "../external/icons";
import type { TaskResult } from "./task";
export default interface Project {
id: string
name: string
description: string
icon: string
icon: IconName
active: boolean
createdTime: string
endTime?: string
@@ -22,7 +23,7 @@ export interface ProjectFilter {
export interface ProjectInput {
name: string
description: string
icon: string
icon: IconName
active: boolean
endTime?: string | Date
}
+7 -2
View File
@@ -1,3 +1,4 @@
import type { IconName } from "../external/icons";
import type Item from "./item";
import type Log from "./log";
@@ -8,18 +9,22 @@ export default interface Task {
itemAmount: number
name: string
description: string
icon: string
icon: IconName
active: boolean
createdTime: string
endTime?: string
}
export interface TaskResult extends Task {
item: Item
logs: Log[]
completedAmount: number
}
export interface TaskFilter {
active?: boolean
expiring?: boolean
}
export interface TaskInput {
itemId: string
projectId: string