Adds taskCount virtual field on Project entity, delete button in ProjectDrawer (visible only when taskCount === 0), and a reusable ConfirmDeleteProjectModal. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
723 B
TypeScript
31 lines
723 B
TypeScript
import type { Client } from './client'
|
|
|
|
export type Project = {
|
|
id: number
|
|
'@id'?: string
|
|
code: string
|
|
name: string
|
|
description: string | null
|
|
color: string
|
|
client: Client | null
|
|
giteaOwner: string | null
|
|
giteaRepo: string | null
|
|
bookstackShelfId: number | null
|
|
bookstackShelfName: string | null
|
|
archived: boolean
|
|
taskCount: number
|
|
}
|
|
|
|
export type ProjectWrite = {
|
|
code?: string
|
|
name: string
|
|
description: string | null
|
|
color: string
|
|
client: string | null // IRI : "/api/clients/1" ou null
|
|
giteaOwner?: string | null
|
|
giteaRepo?: string | null
|
|
bookstackShelfId?: number | null
|
|
bookstackShelfName?: string | null
|
|
archived?: boolean
|
|
}
|