Archived
基线:鉴权会话+工作组+工作台三区修复+编排工作区+产品设计文档
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
This commit is contained in:
@@ -10,6 +10,7 @@ import { useState } from 'react';
|
||||
import type { TaskCard } from '@contracts';
|
||||
import { TERMINAL_STATE_LABEL } from '@contracts';
|
||||
import { Ico } from '@web-shared/Ico.tsx';
|
||||
import { ListEmpty } from '@web-shared/desk/module-kit.tsx';
|
||||
import ScrollArea from '@web-shared/ScrollArea.tsx';
|
||||
|
||||
const TASK_COLORS = ['#3370ff', '#ff8800', '#7f3bf5', '#0aa294', '#f14ba9'];
|
||||
@@ -83,12 +84,20 @@ export function TaskList({ tasks, selectedId, collapsed, onPick, onCollapse }: T
|
||||
</div>
|
||||
|
||||
<ScrollArea className="jc-sa--fill" vpClassName="task-list">
|
||||
{visible.length === 0 && (
|
||||
<div className="jc-list-empty">
|
||||
<Ico name="search" s={18} />
|
||||
无匹配任务
|
||||
</div>
|
||||
)}
|
||||
{visible.length === 0 &&
|
||||
(query !== '' ? (
|
||||
<ListEmpty icon="search" title="没找到">
|
||||
换个关键词试试 —— 可搜任务名、活动名、工作流主题。
|
||||
</ListEmpty>
|
||||
) : filter === 'done' ? (
|
||||
<ListEmpty icon="circle-check" title="还没有完成的任务">
|
||||
办结的任务会归到这里,随时回看它的成果与日志。
|
||||
</ListEmpty>
|
||||
) : (
|
||||
<ListEmpty icon="list-checks" title="手上没有任务">
|
||||
分派给你的任务会出现在这里 —— 到了会有角标提醒。
|
||||
</ListEmpty>
|
||||
))}
|
||||
{visible.map((task, i) => (
|
||||
<TaskCardView
|
||||
key={task.id}
|
||||
|
||||
Reference in New Issue
Block a user