Commit Graph

21 Commits

Author SHA1 Message Date
6fcabebfe8 feat: 分配视频源后设备卡片显示临时标签,源卡片半透明标记 2026-07-24 15:02:45 +08:00
c6c8978ea3 fix: 设备选择器弹窗可点击、可滚动、显示IP 2026-07-24 15:00:19 +08:00
dd40d3d93e fix: 设备视图添加视频源弹窗可点击、可滚动 2026-07-24 14:58:04 +08:00
27ce2dd4d8 feat: 看板视频视图显示设备IP,分配弹窗可选设备 2026-07-24 14:55:08 +08:00
3d109b4b11 chore: 同步之前未提交的改动 (auto_config, ui, console) 2026-07-22 11:16:25 +08:00
e284048435 feat: default integrations, inject into config, console live sync, task sort 2026-07-21 18:08:07 +08:00
fe7ff6719d rename: /v1/media-server/* -> /v1/edge-server/* 2026-07-21 10:06:48 +08:00
b7757c7387 fix: normalize percent-encoding case in serveFacePhoto via PathUnescape; remove /ui prefix globally 2026-07-20 15:25:29 +08:00
65eb988905 fix: move form inside device panel, use display:contents to preserve tab layout 2026-05-12 16:50:17 +08:00
700b2246c7 fix: confirmation dialog fires only once (remove duplicate listener), remove debug log 2026-05-12 15:38:32 +08:00
1a15ab80d6 fix: clear URL params after showing status, so refresh doesn't repeat stale messages 2026-05-12 15:26:42 +08:00
49ab6ae688 fix: form element now wraps device panel so checkboxes are submitted
之前 <form> 只包裹按钮,checkbox/hidden input 在表单外,
导致 submit() 提交空数据。
2026-05-12 15:21:29 +08:00
418bf3c80b fix: persist features only after pipeline success, not before
actionConsoleSave: 先跑流水线,成功后再存 DB。
空功能提交不再清空 DB,改为提示用户。
2026-05-12 15:16:49 +08:00
67e8c3617a fix: console status display — task info overridden by msg 2026-05-12 15:10:34 +08:00
f2b3941e4a fix: console stays after deploy, auto-refresh, config retry
- 下发后留在控制台,显示状态提示,6秒自动刷新
- 任务页 SSE 自动连接(无需手动点击)
- 总览页有执行中任务时自动刷新
- config_apply 增加 3 次重试(agent 500 时)
2026-05-12 14:51:59 +08:00
15f6f91fb6 feat: task timestamps, dirty state, confirmation dialog
- Task 模型增加 CreatedAt/CompletedAt,DB 读取和快照同步
- 总览页最近任务显示时间,限制5条,增加"更多 →"链接
- 任务中心增加创建时间/完成时间列
- 管控台"保存并下发"按钮:修改功能或视频源后才激活
- 下发前弹出变更摘要确认对话框
- 下发后回到管控台并显示任务ID
2026-05-12 14:26:10 +08:00
7eca9454b0 feat: DB-agent feature sync with conflict detection
- ConsoleFeature 增加 Available/Conflict 字段
- pageConsole 显示 agent 全部能力(含不可用的),不可用项 disabled
- DB 已启用但 agent 不可用时标记为冲突 ⚠
- 不可用功能 hover 显示原因
2026-05-12 13:57:03 +08:00
700d964524 feat: device capabilities from agent /v1/capabilities
Agent 新增 /v1/capabilities 接口,返回设备检测能力列表。
Managerd 控制台查询此接口,仅显示设备真实支持的功能。

- Agent: capabilities.go — 根据插件节点类型映射能力
- Managerd: pageConsole 查询 /v1/capabilities 过滤可选功能
- ConsoleFeature 增加 Description 字段,hover 显示说明
- 旧 agent 无此接口时回退为显示已持久化的功能
2026-05-12 13:52:53 +08:00
25cf456047 feat: console one-click auto-config pipeline
管控台一键自动配置:勾选检测功能 + 分配视频源 → 自动生成配置并下发

新增:
- FeatureRegistry: 功能→模板映射与选择算法
- template_composer: 多模板 DAG 浅合并
- AutoConfigService: 完整流水线
- console.html: 视频源分配交互

修改:
- actionConsoleSave: stub → 完整自动配置编排
- pageConsole: 修复功能勾选回显 + 内存指标解析
- main.go: 注入 AutoConfigService
- .gitignore: /managerd 只匹配根目录二进制
2026-05-12 13:26:49 +08:00
59de94bfae 把设备性能移到管控台 2026-05-12 11:26:36 +08:00
57b9ec3523 增加管控台 2026-05-12 10:13:20 +08:00