refactor : rename TaskType to TaskTag across the stack

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-03-13 08:20:21 +01:00
parent dbae1f7536
commit 56275a9ebe
16 changed files with 216 additions and 117 deletions

View File

@@ -1,11 +1,11 @@
export type TaskType = {
export type TaskTag = {
id: number
'@id'?: string
label: string
color: string
}
export type TaskTypeWrite = {
export type TaskTagWrite = {
label: string
color: string
}

View File

@@ -1,7 +1,7 @@
import type { UserData } from './user-data'
import type { Project } from './project'
import type { Task } from './task'
import type { TaskType } from './task-type'
import type { TaskTag } from './task-tag'
export type TimeEntry = {
id: number
@@ -13,7 +13,7 @@ export type TimeEntry = {
user: UserData
project: Project | null
task: Task | null
types: TaskType[]
tags: TaskTag[]
}
export type TimeEntryWrite = {
@@ -24,5 +24,5 @@ export type TimeEntryWrite = {
user: string
project?: string | null
task?: string | null
types?: string[]
tags?: string[]
}