feat(channel-monitor): apply template via subset picker; CC 2.1.114 baseline doc
Apply flow: - POST /admin/channel-monitor-templates/:id/apply now requires monitor_ids (non-empty array). Service applies the template only to the selected subset, gated by AND template_id = :id (so users can't sneak in unrelated monitor IDs). - New GET /admin/channel-monitor-templates/:id/monitors returns the associated monitor briefs (id/name/provider/enabled) for the picker. - ApplyToMonitors signature gains monitorIDs []int64; empty list returns ErrChannelMonitorTemplateApplyEmpty. Frontend: - New MonitorTemplateApplyPickerDialog.vue: list of associated monitors with checkboxes (default all checked), 全选 / 全不选 shortcuts, live selected/total count. Submit calls apply(id, ids). - MonitorTemplateManagerDialog replaces the old ConfirmDialog flow with the picker; onApplied refetches the list to refresh associated counts. i18n: applyPicker* + common.selectAll keys. chore: bump version to 0.1.114.33 The CC 2.1.114 (sdk-cli) UA / APIKeyBetaHeader / JSON metadata.user_id baseline (already verified working via the in-process apply on prod template id=1) is documented in internal/pkg/claude/constants.go and is what the seed template in the manager UI should follow.
This commit is contained in:
@@ -273,6 +273,7 @@ export default {
|
||||
no: '否',
|
||||
all: '全部',
|
||||
none: '无',
|
||||
selectAll: '全选',
|
||||
noData: '暂无数据',
|
||||
expand: '展开',
|
||||
collapse: '收起',
|
||||
@@ -2276,6 +2277,12 @@ export default {
|
||||
applyConfirm: '确认应用',
|
||||
applyConfirmMessage: '将把模板「{name}」的当前配置覆盖到 {n} 个关联监控。监控本地已编辑的自定义修改会被丢弃,是否继续?',
|
||||
applySuccess: '已应用到 {n} 个监控',
|
||||
applyPickerTitle: '应用模板「{name}」',
|
||||
applyPickerHint: '勾选要覆盖请求头/请求体的监控(默认全选)。监控本地已编辑的自定义修改会被丢弃。',
|
||||
applyPickerEmpty: '当前模板没有关联监控',
|
||||
applyPickerConfirm: '应用到 {n} 个监控',
|
||||
selectNone: '全不选',
|
||||
selectedCount: '已选 {n} / {total}',
|
||||
deleteConfirm: '确定要删除模板「{name}」吗?{n} 个关联监控会解除关联但保留自己的快照继续工作。',
|
||||
associatedCount: '{n} 个关联监控',
|
||||
headersSummary: '{n} 个自定义请求头',
|
||||
|
||||
Reference in New Issue
Block a user