Implement ticket types priorities and custom fields

This commit is contained in:
2026-03-25 01:28:25 +01:00
parent 3f9b83ec16
commit 35aacff318
32 changed files with 1832 additions and 1 deletions
@@ -0,0 +1,10 @@
export type TicketFieldDefinitionModel = {
id: number;
field_type: string;
label: string;
position: number;
project_id: number;
created_at: string;
updated_at: string;
[key: string]: unknown;
};
@@ -0,0 +1,9 @@
export type TicketPriorityModel = {
id: number;
name: string;
position: number;
project_id: number;
created_at: string;
updated_at: string;
[key: string]: unknown;
};
@@ -0,0 +1,11 @@
export type TicketTypeModel = {
id: number;
is_builtin: boolean;
name: string;
position: number;
project_id: number;
system_key: string | null;
created_at: string;
updated_at: string;
[key: string]: unknown;
};
+17
View File
@@ -1,6 +1,9 @@
import type { BoardColumnModel } from '@/types/models/board-column-model';
import type { ProjectModel } from '@/types/models/project-model';
import type { TeamModel } from '@/types/models/team-model';
import type { TicketFieldDefinitionModel } from '@/types/models/ticket-field-definition-model';
import type { TicketPriorityModel } from '@/types/models/ticket-priority-model';
import type { TicketTypeModel } from '@/types/models/ticket-type-model';
import type { UserModel } from '@/types/models/user-model';
export type AdminUsersPageProps = {
@@ -43,3 +46,17 @@ export type ProjectBoardSettingsPageProps = {
project: ProjectModel;
status?: string | null;
};
export type TicketFieldTypeOption = {
label: string;
value: string;
};
export type ProjectTicketMetadataSettingsPageProps = {
fieldTypeOptions: TicketFieldTypeOption[];
project: ProjectModel;
status?: string | null;
ticketFieldDefinitions: TicketFieldDefinitionModel[];
ticketPriorities: TicketPriorityModel[];
ticketTypes: TicketTypeModel[];
};