|
@@ -19,6 +19,7 @@ import {
|
|
|
House,
|
|
House,
|
|
|
InfoIcon,
|
|
InfoIcon,
|
|
|
ListTree,
|
|
ListTree,
|
|
|
|
|
+ ListTodo,
|
|
|
LoaderCircle,
|
|
LoaderCircle,
|
|
|
RefreshCwIcon,
|
|
RefreshCwIcon,
|
|
|
MessageCirclePlus,
|
|
MessageCirclePlus,
|
|
@@ -152,6 +153,7 @@ export const WorkspaceSidebarItem = memo(function WorkspaceSidebarItem({
|
|
|
reconnectingRemoteWorkspaceLogsByWorkspaceKey,
|
|
reconnectingRemoteWorkspaceLogsByWorkspaceKey,
|
|
|
onReconnectRemoteWorkspace,
|
|
onReconnectRemoteWorkspace,
|
|
|
onOpenFileTree,
|
|
onOpenFileTree,
|
|
|
|
|
+ onDispatchTasks,
|
|
|
itemRef,
|
|
itemRef,
|
|
|
itemStyle,
|
|
itemStyle,
|
|
|
sortableBindings,
|
|
sortableBindings,
|
|
@@ -188,6 +190,11 @@ export const WorkspaceSidebarItem = memo(function WorkspaceSidebarItem({
|
|
|
workspaceIdentity?: string;
|
|
workspaceIdentity?: string;
|
|
|
workspaceRemoteSessionId?: string;
|
|
workspaceRemoteSessionId?: string;
|
|
|
}) => void;
|
|
}) => void;
|
|
|
|
|
+ /** 项目级任务分收入口:在目标 workspace 打开预填规划提示词的新任务草稿。 */
|
|
|
|
|
+ onDispatchTasks?: (target: {
|
|
|
|
|
+ workspacePath: string;
|
|
|
|
|
+ workspaceIdentity?: string;
|
|
|
|
|
+ }) => void;
|
|
|
itemRef?: (node: HTMLLIElement | null) => void;
|
|
itemRef?: (node: HTMLLIElement | null) => void;
|
|
|
itemStyle?: CSSProperties;
|
|
itemStyle?: CSSProperties;
|
|
|
sortableBindings?: SortableBindings;
|
|
sortableBindings?: SortableBindings;
|
|
@@ -969,6 +976,23 @@ export const WorkspaceSidebarItem = memo(function WorkspaceSidebarItem({
|
|
|
onOpenMcpSync={() => setRemoteMcpSyncOpen(true)}
|
|
onOpenMcpSync={() => setRemoteMcpSyncOpen(true)}
|
|
|
onOpenPluginSync={() => setRemotePluginSyncOpen(true)}
|
|
onOpenPluginSync={() => setRemotePluginSyncOpen(true)}
|
|
|
/>
|
|
/>
|
|
|
|
|
+ {onDispatchTasks ? (
|
|
|
|
|
+ <DropdownMenuItem
|
|
|
|
|
+ onSelect={(event) => {
|
|
|
|
|
+ event.preventDefault();
|
|
|
|
|
+ setWorkspaceActionMenuOpen(false);
|
|
|
|
|
+ onDispatchTasks({
|
|
|
|
|
+ workspacePath: tab.workspacePath,
|
|
|
|
|
+ ...(tab.workspaceIdentity
|
|
|
|
|
+ ? { workspaceIdentity: tab.workspaceIdentity }
|
|
|
|
|
+ : {}),
|
|
|
|
|
+ });
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
|
|
+ <ListTodo className="h-3.5 w-3.5" />
|
|
|
|
|
+ {intl.formatMessage({ id: "workspaceSidebar.dispatchTasks" })}
|
|
|
|
|
+ </DropdownMenuItem>
|
|
|
|
|
+ ) : null}
|
|
|
<DropdownMenuItem
|
|
<DropdownMenuItem
|
|
|
onSelect={(event) => {
|
|
onSelect={(event) => {
|
|
|
event.preventDefault();
|
|
event.preventDefault();
|