Files
one-pipe-system/openspec/changes/update-asset-sync-status-trail/tasks.md
luo eddfd157ad
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m43s
feat: 资产同步状态与同步轨迹入口
2026-07-21 09:57:14 +08:00

25 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 1. API Contract
- [x] 1.1 更新资产解析响应类型,支持 `polling.enabled``activity_level``last_activity_at``last_activity_scene``next_poll_at`
- [x] 1.2 保持现有资产手动刷新接口与调用方式不变,不新增同步接口或按钮。
- [x] 1.3 定义同步轨迹跳转参数,复用 `resource_type``resource_key``correlation_id` 查询契约。
## 2. Asset Sync Status UI
- [x] 2.1 在卡和设备资产信息页新增同步状态区域,展示轮询是否启用、活跃级别、最后活跃时间、最后活跃场景和下次轮询时间。
- [x] 2.2 为空的 `last_activity_at``last_activity_scene``next_poll_at` 提供稳定占位;无下次轮询时间显示 `-`
- [x] 2.3 保留现有手动刷新按钮;`rate_limited` 时仅展示本次失败结果,不显示自动退避倒计时。
## 3. Sync Trail Navigation
- [x] 3.1 增加受 `asset_info:view_sync_trail` 按钮权限控制的“查看同步轨迹”入口,跳转全局审计外部集成页并带入当前资产筛选。
- [ ] 3.2 确保跳转筛选可支持立即、3分钟、5分钟连续同步结果的轨迹查询当前仓库未提供全局审计外部集成页待目标页接入后联调
- [ ] 3.3 不改造全局审计外部集成页面本身。
## 4. Verification
- [ ] 4.1 验证卡和设备均可展示完整、部分为空和全部为空的同步状态。
- [x] 4.2 验证保留单一手动刷新入口,且 `rate_limited` 不展示倒计时。
- [ ] 4.3 验证“查看同步轨迹”跳转携带当前资产筛选并能查看连续同步结果(待全局审计外部集成页提供后联调)。
- [x] 4.4 运行相关前端校验,并执行 `openspec validate update-asset-sync-status-trail --strict`