feat(FN-4076): tighten mobile agents header and popup, add compact planning
Merges FN-4076: tightens the mobile Agents header and aligns the controls popup on smaller screens, while also introducing compact planning breakdown task creation with preserved payload coverage — tests for scoped and empty-generated planning payloads were added alongside fixes to the legacy API an Fusion-Task-Id: FN-4076
This commit is contained in:
@@ -2712,6 +2712,15 @@ export interface SubtaskItem {
|
||||
dependsOn: string[];
|
||||
}
|
||||
|
||||
export interface PlanningSubtaskDraft {
|
||||
id: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
suggestedSize?: "S" | "M" | "L";
|
||||
priority?: TaskPriority;
|
||||
dependsOn?: string[];
|
||||
}
|
||||
|
||||
/** SSE event types for planning session streaming */
|
||||
export type PlanningStreamEvent =
|
||||
| { type: "thinking"; data: string }
|
||||
@@ -2975,14 +2984,7 @@ export function startPlanningBreakdown(
|
||||
/** Create multiple tasks from a completed planning session */
|
||||
export function createTasksFromPlanning(
|
||||
planningSessionId: string,
|
||||
subtasks: Array<{
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
suggestedSize: "S" | "M" | "L";
|
||||
priority?: TaskPriority;
|
||||
dependsOn: string[];
|
||||
}>,
|
||||
subtasks: PlanningSubtaskDraft[],
|
||||
projectId?: string,
|
||||
): Promise<{ tasks: Task[] }> {
|
||||
return api<{ tasks: Task[] }>(withProjectId("/planning/create-tasks", projectId), {
|
||||
|
||||
Reference in New Issue
Block a user