Allow projects to be archived/unarchived from the ProjectDrawer, with a toggle filter on the projects page to show/hide archived projects. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
551 B
TypeScript
26 lines
551 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
|
|
archived: boolean
|
|
}
|
|
|
|
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
|
|
archived?: boolean
|
|
}
|