fix: Show detailing indicator by including detail tasks in listInitiativeTasks
listInitiativeTasks was filtering out detail tasks server-side, so the detailAgentByPhase mapping could never resolve agent.taskId to a phaseId. Move the filter to client-side (displayTasks) so detail tasks are available for agent mapping but excluded from counts and display grouping.
This commit is contained in:
@@ -132,7 +132,7 @@ export function taskProcedures(publicProcedure: ProcedureBuilder) {
|
||||
.query(async ({ ctx, input }) => {
|
||||
const taskRepository = requireTaskRepository(ctx);
|
||||
const tasks = await taskRepository.findByInitiativeId(input.initiativeId);
|
||||
return tasks.filter((t) => t.category !== 'detail');
|
||||
return tasks;
|
||||
}),
|
||||
|
||||
listPhaseTasks: publicProcedure
|
||||
|
||||
Reference in New Issue
Block a user