feat(tickets): affiche le créateur d'un ticket et filtre la liste par créateur
createdBy était déjà présent dans le frontmatter des tickets mais ni exposé ni exploitable côté UI. Ajout du DTO (domain/ports/mock), affichage dans TicketDetail, colonne/filtre créateur dans TicketsPanel, et persistance du filtre. ticketActor.ts introduit pour porter la logique de filtrage côté frontend, sans changement backend nécessaire (lot frontend pur). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -998,6 +998,7 @@ export interface TicketListQuery {
|
||||
statuses?: TicketStatus[];
|
||||
priorities?: TicketPriority[];
|
||||
assignedAgentId?: string;
|
||||
createdBy?: TicketCreatorFilter;
|
||||
/** Free-text match over title/description. */
|
||||
text?: string;
|
||||
sort?: TicketListSort;
|
||||
@ -1005,6 +1006,10 @@ export interface TicketListQuery {
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export type TicketCreatorFilter =
|
||||
| { kind: "user" }
|
||||
| { kind: "agent"; agentId: string };
|
||||
|
||||
export type TicketListSortField = "number" | "priority" | "status" | "title";
|
||||
|
||||
export type TicketListSortDirection = "asc" | "desc";
|
||||
|
||||
Reference in New Issue
Block a user