+
+
)
}
@@ -103,8 +124,10 @@ export function ChangePasswordGate({ owner, onDone, onCancel }: { owner: string;
return (
)
}
diff --git a/src/components/TaskSidebar.tsx b/src/components/TaskSidebar.tsx
index df74292..bc61809 100644
--- a/src/components/TaskSidebar.tsx
+++ b/src/components/TaskSidebar.tsx
@@ -5,6 +5,7 @@ import { useEffect, useRef, useState } from 'react'
import { store, useStore } from '../store'
import { auth } from '../auth'
import { api } from '../api'
+import { Icon, BrandMark, workspaceIcon } from '../icons'
import type { Conversation } from '../contracts'
import { workspaceEntries } from './Workspaces'
import { groupByProject, groupByTimeline, relativeTime, filterTasks, type TaskOrg } from '../tasklist'
@@ -35,8 +36,10 @@ function Menu({ anchor, onClose, children }: { anchor: HTMLElement | null; onClo
return
e.stopPropagation()}>{children}
}
-function MenuItem({ onClick, danger, children }: { onClick: () => void; danger?: boolean; children: React.ReactNode }) {
- return
+function MenuItem({ onClick, danger, icon, children }: { onClick: () => void; danger?: boolean; icon?: Parameters
[0]['name']; children: React.ReactNode }) {
+ return
}
export function TaskSidebar() {
@@ -86,9 +89,9 @@ export function TaskSidebar() {
const rowActions = (t: Conversation) => (
-
+
)
@@ -107,22 +110,25 @@ export function TaskSidebar() {
return (
<>
- A
+
Agent-System
-
+
{/* 单一主创建入口(P6):新建任务 + 次级菜单(新建项目/指定项目新建) */}
{/* 组织视图切换(P8)+ 过滤 */}
@@ -132,7 +138,7 @@ export function TaskSidebar() {