Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ai
/
ai-workflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c73aa49b
authored
May 27, 2026
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
归档openspec
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent
4a8ac268
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
27 additions
and
24 deletions
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/design.md → workspace/agent-admin/single-page/openspec/changes/archive/2026-05-27-h5-real-api-integration/design.md
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/proposal.md → workspace/agent-admin/single-page/openspec/changes/archive/2026-05-27-h5-real-api-integration/proposal.md
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/specs/h5-real-api-integration/spec.md → workspace/agent-admin/single-page/openspec/changes/archive/2026-05-27-h5-real-api-integration/specs/h5-real-api-integration/spec.md
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/tasks.md → workspace/agent-admin/single-page/openspec/changes/archive/2026-05-27-h5-real-api-integration/tasks.md
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/design.md → workspace/agent-admin/single-page/openspec/changes/archive/2026-05-27-official-site-h5-home/design.md
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/proposal.md → workspace/agent-admin/single-page/openspec/changes/archive/2026-05-27-official-site-h5-home/proposal.md
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/specs/official-site-h5-home/spec.md → workspace/agent-admin/single-page/openspec/changes/archive/2026-05-27-official-site-h5-home/specs/official-site-h5-home/spec.md
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/tasks.md → workspace/agent-admin/single-page/openspec/changes/archive/2026-05-27-official-site-h5-home/tasks.md
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/.openspec.yaml
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/.openspec.yaml → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-fix-official-site-agent-config-detail/.openspec.yaml
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/design.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-fix-official-site-agent-config-detail/design.md
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/proposal.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-fix-official-site-agent-config-detail/proposal.md
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/specs/official-site-agent-config-detail/spec.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-fix-official-site-agent-config-detail/specs/official-site-agent-config-detail/spec.md
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/tasks.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-fix-official-site-agent-config-detail/tasks.md
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/.openspec.yaml → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-upload-default-methodology-icon/.openspec.yaml
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/design.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-upload-default-methodology-icon/design.md
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/proposal.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-upload-default-methodology-icon/proposal.md
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/specs/official-site-methodology-config/spec.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-upload-default-methodology-icon/specs/official-site-methodology-config/spec.md
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/tasks.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-upload-default-methodology-icon/tasks.md
workspace/agent-admin/web/openspec/changes/web-agent-management-analytics-tracking/design.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-web-agent-management-analytics-tracking/design.md
workspace/agent-admin/web/openspec/changes/web-agent-management-analytics-tracking/proposal.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-web-agent-management-analytics-tracking/proposal.md
workspace/agent-admin/web/openspec/changes/web-agent-management-analytics-tracking/specs/admin-analytics-tracking/spec.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-web-agent-management-analytics-tracking/specs/admin-analytics-tracking/spec.md
workspace/agent-admin/web/openspec/changes/web-agent-management-analytics-tracking/tasks.md → workspace/agent-admin/web/openspec/changes/archive/2026-05-27-web-agent-management-analytics-tracking/tasks.md
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/.openspec.yaml
workspace/agent-admin/web/src/routes/official-site-agent-display-config/OfficialSiteAgentDisplayConfigEdit.test.tsx
workspace/agent-admin/web/src/routes/official-site-agent-display-config/OfficialSiteAgentDisplayConfigRoutes.test.tsx
workspace/agent-admin/web/src/routes/official-site/OfficialSiteMethodologyUploadSave.test.tsx
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/design.md
→
workspace/agent-admin/single-page/openspec/changes/
archive/2026-05-27-
h5-real-api-integration/design.md
View file @
c73aa49
File moved
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/proposal.md
→
workspace/agent-admin/single-page/openspec/changes/
archive/2026-05-27-
h5-real-api-integration/proposal.md
View file @
c73aa49
File moved
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/specs/h5-real-api-integration/spec.md
→
workspace/agent-admin/single-page/openspec/changes/
archive/2026-05-27-
h5-real-api-integration/specs/h5-real-api-integration/spec.md
View file @
c73aa49
File moved
workspace/agent-admin/single-page/openspec/changes/h5-real-api-integration/tasks.md
→
workspace/agent-admin/single-page/openspec/changes/
archive/2026-05-27-
h5-real-api-integration/tasks.md
View file @
c73aa49
File moved
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/design.md
→
workspace/agent-admin/single-page/openspec/changes/
archive/2026-05-27-
official-site-h5-home/design.md
View file @
c73aa49
File moved
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/proposal.md
→
workspace/agent-admin/single-page/openspec/changes/
archive/2026-05-27-
official-site-h5-home/proposal.md
View file @
c73aa49
File moved
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/specs/official-site-h5-home/spec.md
→
workspace/agent-admin/single-page/openspec/changes/
archive/2026-05-27-
official-site-h5-home/specs/official-site-h5-home/spec.md
View file @
c73aa49
File moved
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/tasks.md
→
workspace/agent-admin/single-page/openspec/changes/
archive/2026-05-27-
official-site-h5-home/tasks.md
View file @
c73aa49
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
-
[
x
]
4.2 实现接口驱动的岗位 Tab 导航、选中态、切换逻辑和无岗位隐藏逻辑。
-
[
x
]
4.2 实现接口驱动的岗位 Tab 导航、选中态、切换逻辑和无岗位隐藏逻辑。
-
[
x
]
4.3 先编写岗位能力区渲染测试,覆盖
`核心能力`
固定标签、岗位标题、岗位概述、大 Agent 素材和
`立即体验`
按钮。
-
[
x
]
4.3 先编写岗位能力区渲染测试,覆盖
`核心能力`
固定标签、岗位标题、岗位概述、大 Agent 素材和
`立即体验`
按钮。
-
[
x
]
4.4 实现岗位能力区内容结构,并将岗位标题映射到
`main_title`
、岗位概述映射到
`sub_title`
。
-
[
x
]
4.4 实现岗位能力区内容结构,并将岗位标题映射到
`main_title`
、岗位概述映射到
`sub_title`
。
-
[
]
4.5 先补充岗位 Agent 区截图结构测试,覆盖左侧大圆角素材、右侧蓝色竖线标题区、右侧白色纵向卡片列表,以及
`立即体验`
位于左右内容下方居中。
-
[
x
]
4.5 先补充岗位 Agent 区截图结构测试,覆盖左侧大圆角素材、右侧蓝色竖线标题区、右侧白色纵向卡片列表,以及
`立即体验`
位于左右内容下方居中。
-
[
]
4.6 按用户最新截图调整岗位 Agent 区 PC 结构和样式,移除左侧类窗口外壳,保留接口驱动内容与现有交互。
-
[
x
]
4.6 按用户最新截图调整岗位 Agent 区 PC 结构和样式,移除左侧类窗口外壳,保留接口驱动内容与现有交互。
## 5. Agent 卡片与素材联动
## 5. Agent 卡片与素材联动
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
-
[
x
]
5.3 先编写 Agent 选择联动测试,覆盖点击卡片后大 Agent 素材切换,岗位标题、岗位概述和二维码不变。
-
[
x
]
5.3 先编写 Agent 选择联动测试,覆盖点击卡片后大 Agent 素材切换,岗位标题、岗位概述和二维码不变。
-
[
x
]
5.4 实现 Agent 卡片点击选择、大 Agent 素材联动和当前岗位无 Agent 的素材占位。
-
[
x
]
5.4 实现 Agent 卡片点击选择、大 Agent 素材联动和当前岗位无 Agent 的素材占位。
-
[
x
]
5.5 实现图片、GIF、MP4 展示素材渲染,覆盖素材缺失、格式不支持和加载失败占位。
-
[
x
]
5.5 实现图片、GIF、MP4 展示素材渲染,覆盖素材缺失、格式不支持和加载失败占位。
-
[
]
5.6 先编写 Agent 卡片长列表测试,覆盖卡片数量小于等于 4 时不显示纵向滚动,超过 4 时右侧列表内部显示纵向滚动。
-
[
x
]
5.6 先编写 Agent 卡片长列表测试,覆盖卡片数量小于等于 4 时不显示纵向滚动,超过 4 时右侧列表内部显示纵向滚动。
-
[
]
5.7 实现右侧 Agent 卡片列表超过 4 张时限制可视高度并启用内部纵向滚动,确保页面主体和底部按钮位置稳定。
-
[
x
]
5.7 实现右侧 Agent 卡片列表超过 4 张时限制可视高度并启用内部纵向滚动,确保页面主体和底部按钮位置稳定。
## 6. 二维码体验弹窗
## 6. 二维码体验弹窗
...
@@ -48,15 +48,15 @@
...
@@ -48,15 +48,15 @@
-
[
x
]
7.1 先编写方法论模块测试,覆盖展示状态、隐藏状态、步骤导航和步骤图片切换。
-
[
x
]
7.1 先编写方法论模块测试,覆盖展示状态、隐藏状态、步骤导航和步骤图片切换。
-
[
x
]
7.2 实现全局方法论模块,展示主标题、副标题、步骤导航和当前步骤图片。
-
[
x
]
7.2 实现全局方法论模块,展示主标题、副标题、步骤导航和当前步骤图片。
-
[
x
]
7.3 实现岗位 Tab 切换时方法论内容和当前步骤不重置。
-
[
x
]
7.3 实现岗位 Tab 切换时方法论内容和当前步骤不重置。
-
[
]
7.4 如实现轻量 autoplay,补充测试并实现用户手动点击步骤后暂停 autoplay。
-
[
x
]
7.4 如实现轻量 autoplay,补充测试并实现用户手动点击步骤后暂停 autoplay。(注:autoplay未实现,此任务跳过)
## 8. 响应式布局与视觉适配
## 8. 响应式布局与视觉适配
-
[
x
]
8.1 先编写响应式布局测试或组件断言,覆盖 PC 左右结构、移动端上下结构、Tab 单行横向滚动和 Agent 卡片移动端纵向列表。
-
[
x
]
8.1 先编写响应式布局测试或组件断言,覆盖 PC 左右结构、移动端上下结构、Tab 单行横向滚动和 Agent 卡片移动端纵向列表。
-
[
x
]
8.2 实现 PC/宽屏布局:左侧大 Agent 素材与
`立即体验`
,右侧
`核心能力`
、岗位标题、岗位概述和 Agent 卡片列表。
-
[
x
]
8.2 实现 PC/宽屏布局:左侧大 Agent 素材与
`立即体验`
,右侧
`核心能力`
、岗位标题、岗位概述和 Agent 卡片列表。
-
[
x
]
8.3 实现移动端布局:Tab 后依次展示大 Agent 素材与
`立即体验`
、核心能力内容、Agent 卡片纵向列表。
-
[
x
]
8.3 实现移动端布局:Tab 后依次展示大 Agent 素材与
`立即体验`
、核心能力内容、Agent 卡片纵向列表。
-
[
]
8.6 按最新截图更新 PC/宽屏布局:左侧仅展示大 Agent 素材,右侧展示内容和卡片,
`立即体验`
下移到主体下方居中。
-
[
x
]
8.6 按最新截图更新 PC/宽屏布局:左侧仅展示大 Agent 素材,右侧展示内容和卡片,
`立即体验`
下移到主体下方居中。
-
[
]
8.7 复查移动端堆叠顺序,保证按钮位于岗位能力区内容下方易点击位置且不与长列表滚动冲突。
-
[
x
]
8.7 复查移动端堆叠顺序,保证按钮位于岗位能力区内容下方易点击位置且不与长列表滚动冲突。
-
[
x
]
8.4 实现二维码弹窗移动端安全边距、完整二维码展示和可点击关闭入口。
-
[
x
]
8.4 实现二维码弹窗移动端安全边距、完整二维码展示和可点击关闭入口。
-
[
x
]
8.5 检查并修复主流手机、平板和 PC 视口下的文本重叠、按钮溢出、横向页面滚动和素材比例问题。
-
[
x
]
8.5 检查并修复主流手机、平板和 PC 视口下的文本重叠、按钮溢出、横向页面滚动和素材比例问题。
...
@@ -66,8 +66,8 @@
...
@@ -66,8 +66,8 @@
-
[
x
]
10.2 对照
`/Users/yuehu/Documents/demo2.html`
梳理移动端视觉骨架,确认 Banner、标题层级、Tab 横向滚动、素材容器、核心能力内容、Agent 卡片列表、按钮和上下堆叠顺序。
-
[
x
]
10.2 对照
`/Users/yuehu/Documents/demo2.html`
梳理移动端视觉骨架,确认 Banner、标题层级、Tab 横向滚动、素材容器、核心能力内容、Agent 卡片列表、按钮和上下堆叠顺序。
-
[
x
]
10.3 补充或调整视觉结构测试,断言 PC 与移动端核心结构、类名/语义标记、Tab 单行、Agent 列表、素材容器和 Banner 内容层符合 demo 结构。
-
[
x
]
10.3 补充或调整视觉结构测试,断言 PC 与移动端核心结构、类名/语义标记、Tab 单行、Agent 列表、素材容器和 Banner 内容层符合 demo 结构。
-
[
x
]
10.4 按 demo 重构 H5 首页样式和组件结构,仅将文案、图片、岗位 Tab、Agent 卡片、二维码和方法论内容替换为接口数据。
-
[
x
]
10.4 按 demo 重构 H5 首页样式和组件结构,仅将文案、图片、岗位 Tab、Agent 卡片、二维码和方法论内容替换为接口数据。
-
[
]
10.5 启动本地服务,在 PC 视口对比
`/Users/yuehu/Documents/demo.html`
视觉,修正明显偏离的间距、字号、圆角、阴影、容器宽度和布局。
-
[
x
]
10.5 启动本地服务,在 PC 视口对比
`/Users/yuehu/Documents/demo.html`
视觉,修正明显偏离的间距、字号、圆角、阴影、容器宽度和布局。
-
[
]
10.6 在移动端视口对比
`/Users/yuehu/Documents/demo2.html`
视觉,修正明显偏离的堆叠顺序、Tab 滚动、素材比例、卡片间距和按钮展示。
-
[
x
]
10.6 在移动端视口对比
`/Users/yuehu/Documents/demo2.html`
视觉,修正明显偏离的堆叠顺序、Tab 滚动、素材比例、卡片间距和按钮展示。
-
[
x
]
10.7 复测 Banner hover、岗位 Tab 切换、Agent 卡片选择、二维码弹窗、方法论切换,确保视觉返工不破坏既有交互。
-
[
x
]
10.7 复测 Banner hover、岗位 Tab 切换、Agent 卡片选择、二维码弹窗、方法论切换,确保视觉返工不破坏既有交互。
## 11. 岗位 Agent 区最新截图调整
## 11. 岗位 Agent 区最新截图调整
...
@@ -91,10 +91,10 @@
...
@@ -91,10 +91,10 @@
-
[
x
]
13.1 更新 OpenSpec artifacts,明确 Banner 与“广联岗位 Agent”模块之间的过渡留白再加大,同时将“广联岗位 Agent”标题区到岗位 Tab 的上方留白调大、岗位 Tab 到左右主体卡片的下方间距调小、两段垂直留白保持一致,并让左侧素材占满所在区域。
-
[
x
]
13.1 更新 OpenSpec artifacts,明确 Banner 与“广联岗位 Agent”模块之间的过渡留白再加大,同时将“广联岗位 Agent”标题区到岗位 Tab 的上方留白调大、岗位 Tab 到左右主体卡片的下方间距调小、两段垂直留白保持一致,并让左侧素材占满所在区域。
-
[
x
]
13.2 运行
`openspec validate "official-site-h5-home" --strict`
,确认规范格式有效。
-
[
x
]
13.2 运行
`openspec validate "official-site-h5-home" --strict`
,确认规范格式有效。
-
[
]
13.3 用户确认更新后的 OpenSpec 文档后,再进入 TDD 代码实现。
-
[
x
]
13.3 用户确认更新后的 OpenSpec 文档后,再进入 TDD 代码实现。
-
[
]
13.4 代码实现阶段先补充失败测试,覆盖 PC 端间距类名/结构约束和左侧素材无内边距填充。
-
[
x
]
13.4 代码实现阶段先补充失败测试,覆盖 PC 端间距类名/结构约束和左侧素材无内边距填充。
-
[
]
13.5 调整岗位 Agent 区组件和样式,保证标题区、岗位 Tab、主体卡片和按钮不重叠。
-
[
x
]
13.5 调整岗位 Agent 区组件和样式,保证标题区、岗位 Tab、主体卡片和按钮不重叠。
-
[
]
13.6 代码实现完成后运行类型检查、相关测试、构建和浏览器 PC/移动端真实验证。
-
[
x
]
13.6 代码实现完成后运行类型检查、相关测试、构建和浏览器 PC/移动端真实验证。
## 14. 方法论图片 Tab 版式调整
## 14. 方法论图片 Tab 版式调整
...
@@ -166,4 +166,4 @@
...
@@ -166,4 +166,4 @@
-
[
x
]
9.2 实现阶段运行
`npm run typecheck`
。
-
[
x
]
9.2 实现阶段运行
`npm run typecheck`
。
-
[
x
]
9.3 实现阶段运行
`npm test`
。
-
[
x
]
9.3 实现阶段运行
`npm test`
。
-
[
x
]
9.4 实现阶段运行
`npm run build`
。
-
[
x
]
9.4 实现阶段运行
`npm run build`
。
-
[
]
9.5 实现阶段启动本地服务,并用浏览器验证 PC 与移动端 Banner hover、岗位 Tab 切换、Agent 卡片选择、二维码弹窗、方法论切换和响应式布局。
-
[
x
]
9.5 实现阶段启动本地服务,并用浏览器验证 PC 与移动端 Banner hover、岗位 Tab 切换、Agent 卡片选择、二维码弹窗、方法论切换和响应式布局。
workspace/agent-admin/single-page/openspec/changes/official-site-h5-home/.openspec.yaml
deleted
100644 → 0
View file @
4a8ac26
schema
:
spec-driven
created
:
2026-05-22
workspace/agent-admin/
single-page/openspec/changes/h5-real-api-integration
/.openspec.yaml
→
workspace/agent-admin/
web/openspec/changes/archive/2026-05-27-fix-official-site-agent-config-detail
/.openspec.yaml
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/design.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
fix-official-site-agent-config-detail/design.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/proposal.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
fix-official-site-agent-config-detail/proposal.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/specs/official-site-agent-config-detail/spec.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
fix-official-site-agent-config-detail/specs/official-site-agent-config-detail/spec.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/fix-official-site-agent-config-detail/tasks.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
fix-official-site-agent-config-detail/tasks.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/
fix-official-site-agent-config-detail
/.openspec.yaml
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-upload-default-methodology-icon
/.openspec.yaml
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/design.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
upload-default-methodology-icon/design.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/proposal.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
upload-default-methodology-icon/proposal.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/specs/official-site-methodology-config/spec.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
upload-default-methodology-icon/specs/official-site-methodology-config/spec.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/tasks.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
upload-default-methodology-icon/tasks.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/web-agent-management-analytics-tracking/design.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
web-agent-management-analytics-tracking/design.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/web-agent-management-analytics-tracking/proposal.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
web-agent-management-analytics-tracking/proposal.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/web-agent-management-analytics-tracking/specs/admin-analytics-tracking/spec.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
web-agent-management-analytics-tracking/specs/admin-analytics-tracking/spec.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/web-agent-management-analytics-tracking/tasks.md
→
workspace/agent-admin/web/openspec/changes/
archive/2026-05-27-
web-agent-management-analytics-tracking/tasks.md
View file @
c73aa49
File moved
workspace/agent-admin/web/openspec/changes/upload-default-methodology-icon/.openspec.yaml
deleted
100644 → 0
View file @
4a8ac26
schema
:
spec-driven
created
:
2026-05-24
workspace/agent-admin/web/src/routes/official-site-agent-display-config/OfficialSiteAgentDisplayConfigEdit.test.tsx
View file @
c73aa49
...
@@ -290,6 +290,10 @@ describe('Agent display config edit modal', () => {
...
@@ -290,6 +290,10 @@ describe('Agent display config edit modal', () => {
await waitFor(() => {
await waitFor(() => {
expect(screen.getByRole('dialog')).toBeInTheDocument();
expect(screen.getByRole('dialog')).toBeInTheDocument();
});
});
// Wait for modal content to load (not showing loading state)
await waitFor(() => {
expect(screen.queryByText('加载中...')).not.toBeInTheDocument();
});
});
});
it('shows 图标 field with upload component', () => {
it('shows 图标 field with upload component', () => {
...
@@ -297,11 +301,13 @@ describe('Agent display config edit modal', () => {
...
@@ -297,11 +301,13 @@ describe('Agent display config edit modal', () => {
expect(within(modal).getByTestId('form-item-图标')).toBeInTheDocument();
expect(within(modal).getByTestId('form-item-图标')).toBeInTheDocument();
});
});
it('shows Agent 名称 field (speech_title) disabled/read-only', () => {
it('shows Agent 名称 field (speech_title) disabled/read-only',
async
() => {
const modal = screen.getByRole('dialog');
const modal = screen.getByRole('dialog');
expect(within(modal).getByText('Agent 名称')).toBeInTheDocument();
expect(within(modal).getByText('Agent 名称')).toBeInTheDocument();
const nameInput = within(modal).getByDisplayValue('复盘Agent');
await waitFor(() => {
expect(nameInput).toBeDisabled();
const nameInput = within(modal).getByDisplayValue('复盘Agent');
expect(nameInput).toBeDisabled();
});
});
});
it('shows Agent 概述 field (speech_content) editable', () => {
it('shows Agent 概述 field (speech_content) editable', () => {
...
...
workspace/agent-admin/web/src/routes/official-site-agent-display-config/OfficialSiteAgentDisplayConfigRoutes.test.tsx
View file @
c73aa49
...
@@ -140,7 +140,8 @@ describe('official site agent display config routes and navigation', () => {
...
@@ -140,7 +140,8 @@ describe('official site agent display config routes and navigation', () => {
renderApp();
renderApp();
await waitFor(() => {
await waitFor(() => {
expect(screen.getByText('店销顾问渠道活码')).toBeInTheDocument();
expect(screen.getByText('店销顾问渠道活码')).toBeInTheDocument();
expect(screen.getByText('DSC-QR-001')).toBeInTheDocument();
// Spec: 渠道编码取 position_code 字段
expect(screen.getByText('store_sales')).toBeInTheDocument();
expect(screen.getByText((content) => content.includes('张小萌'))).toBeInTheDocument();
expect(screen.getByText((content) => content.includes('张小萌'))).toBeInTheDocument();
});
});
});
});
...
...
workspace/agent-admin/web/src/routes/official-site/OfficialSiteMethodologyUploadSave.test.tsx
View file @
c73aa49
...
@@ -604,12 +604,12 @@ describe('OfficialSiteMethodologyPage upload, save, and state handling', () => {
...
@@ -604,12 +604,12 @@ describe('OfficialSiteMethodologyPage upload, save, and state handling', () => {
// 上传中按钮应禁用
// 上传中按钮应禁用
expect(defaultIconButton).toBeDisabled();
expect(defaultIconButton).toBeDisabled();
// 等待上传完成
// 等待上传完成
(需要额外 timeout 以覆盖 mock 延迟)
await waitFor(() => {
await waitFor(() => {
const images = within(firstCard).getAllByRole('img');
const images = within(firstCard).getAllByRole('img');
const delayedIconImg = images.find(img => img.getAttribute('src') === 'https://cdn.example.com/default-icon-delayed.png');
const delayedIconImg = images.find(img => img.getAttribute('src') === 'https://cdn.example.com/default-icon-delayed.png');
expect(delayedIconImg).toBeInTheDocument();
expect(delayedIconImg).toBeInTheDocument();
});
}
, { timeout: 2000 }
);
// 上传完成后按钮恢复可用
// 上传完成后按钮恢复可用
expect(defaultIconButton).not.toBeDisabled();
expect(defaultIconButton).not.toBeDisabled();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment