feat(client): add parent_project_id and position to Project wire type

The init project picker needs the parent/child relationship and sibling ordering to render projects hierarchically like the web sidebar.
This commit is contained in:
kolaente 2026-06-09 14:21:29 +02:00
parent a1621fec37
commit a221a15ec3
1 changed files with 7 additions and 5 deletions

View File

@ -46,11 +46,13 @@ type BotUserCreate struct {
// Project mirrors pkg/models/project.Project.
type Project struct {
ID int64 `json:"id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
Identifier string `json:"identifier,omitempty"`
IsArchived bool `json:"is_archived,omitempty"`
ID int64 `json:"id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
Identifier string `json:"identifier,omitempty"`
IsArchived bool `json:"is_archived,omitempty"`
ParentProjectID int64 `json:"parent_project_id,omitempty"`
Position float64 `json:"position,omitempty"`
}
// ProjectView is a saved view (Kanban/List/Gantt/Table) on a project.