24 lines
774 B
TypeScript
24 lines
774 B
TypeScript
/**
|
|
* One group's worth of data, flattened for feeding to the AI as context --
|
|
* used by the global chat feature, which needs every group across every
|
|
* board (Home + all owned Projects) rather than one board's scoped tree
|
|
* (see CategoryDTO/GroupDTO in types/board.ts). Unlike the board DTOs,
|
|
* this deliberately includes archived groups, so historical questions
|
|
* ("what did we do about X") are answerable.
|
|
*/
|
|
export interface AiGroupContext {
|
|
groupId: string;
|
|
groupTitle: string;
|
|
// "Home" for the personal board, or the owning Project's title.
|
|
scopeLabel: string;
|
|
categoryName: string;
|
|
archived: boolean;
|
|
noteContent: string;
|
|
todos: {
|
|
title: string;
|
|
details: string | null;
|
|
completed: boolean;
|
|
completedAt: string | null;
|
|
}[];
|
|
}
|