component-task-list
Skill233 starsChanged 7 months agoMITView on GitHub
任务/步骤列表展示,支持展开折叠、状态图标与思维链等。 修改任务列表时,参考 src/TaskList/、docs/components/task-list.md 与 AGENTS.md。
Files
TaskList 组件开发
任务/步骤列表展示,支持展开折叠、状态图标与思维链等。
源码位置
- 导出:
src/TaskList/index.tsx - 主组件:
src/TaskList/TaskList.tsx - 子组件:
TaskListItem、StatusIcon等见src/TaskList/components/ - 类型:
src/TaskList/types.ts(TaskItem、TaskListProps、TaskStatus、TaskListVariant、ThoughtChainProps)
主要能力
items、expandedKeys、onExpandedKeysChange控制列表与展开variant、open/onOpenChange等variant="simple":收起时visibleItems仅为最后一项;摘要状态见TaskList.tsxuseMemoloading:外部流式标记;全部 item 为success时摘要为完成态pending与loadingUI 合并:isTaskInProgress/getTaskStatusStyleKey(constants.ts),摘要与图标统一按进行中处理- 与 ActionIconBox、I18nContext 配合
内容规范化
src/TaskList/normalizeTaskContent.ts:normalizeTaskContent(content, fallbackTitle?)提取字符串/序列化 React 描述;空正文回退titleTaskListItem渲染前规范化;hasNormalizedTaskContent控制展开箭头- Markdown 嵌入:
normalizeTaskListPropsFromJson(agenticUiEmbedUtils.ts)对每项content调用同一工具
开发规范
- 样式使用 token 与
useStyle(prefixCls),BEM 类名。 - 新增状态或变体时在 types 中补充,保持向后兼容。
- 勿改 simple 收起时
visibleItems = [lastItem]逻辑;展开时展示全部items(含error项,不因工具失败只保留最后一项)。
修改任务列表时,参考 src/TaskList/、docs/components/task-list.md 与 AGENTS.md。
Other versions1 project uses a version of this.
Word for word · 1
- antdigital-ai/agentic-ui★ 233100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/AGENTS.mdcCursor rule
- .cursor/rules/clean-code.mdcCursor rule
- .cursor/rules/codequality.mdcCursor rule
- .cursor/rules/playwright.mdcCursor rule
- .cursor/rules/react.mdcCursor rule
- .cursor/rules/test.mdcCursor rule
- llms.txtllms.txt
- agentic-ui-developmentSkill
- agentic-ui-usageSkill
- component-agentic-layoutSkill
- component-agent-run-barSkill
- component-ai-labelSkill
- component-answer-alertSkill
- component-bubbleSkill
- component-chat-boot-pageSkill
- component-chat-layoutSkill
- component-historySkill
- component-markdown-editorSkill
- component-markdown-input-fieldSkill
- component-pluginsSkill
- component-quote-backtoSkill
- component-schemaSkill
- component-sharedSkill
- component-thought-chainSkill
- component-tool-useSkill
- component-welcome-messageSkill
- component-workspaceSkill
- gh-create-prSkill
- markdown-syntax-guideSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

