feat(modal): add rollout telemetry foundation

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-08-04 21:23:04 +08:00
1 parent 8b728295a9
commit 113a6bcab0
14 files changed
+320 -1

No files matched your search

@@ -25,6 +25,16 @@ export const toolsSection = {
canonicalDomain: 'tools',
section: 'backup',
}),
schemaPage({
key: 'tools-modal-rollout',
name: 'ToolsModalRollout',
label: '前台弹窗灰度',
route: '/tools/modal-rollout',
title: '前台弹窗灰度',
desc: '按领域控制前台弹窗新流程的分阶段发布。',
canonicalDomain: 'tools',
section: 'modal-rollout',
}),
customPage({
key: 'tools-health',
name: 'ToolsHealth',
@@ -7,10 +7,12 @@ import { importExportSchema } from './import-export.js'
import { healthSchema } from './health.js'
import { emailRollbackSchema } from './email-rollback.js'
import { backupSchema } from './backup.js'
import { modalRolloutSchema } from './modal-rollout.js'
export const toolsSchemas = {
'import-export': importExportSchema,
health: healthSchema,
'email-rollback': emailRollbackSchema,
backup: backupSchema,
'modal-rollout': modalRolloutSchema,
}
@@ -0,0 +1,45 @@
export const modalRolloutSchema = {
key: 'tools.modal-rollout',
title: '前台弹窗灰度',
icon: 'fas fa-bolt',
description: '按领域控制前台弹窗新流程的分阶段发布。',
defaults: {
frontend_modal_rollout_identity: false,
frontend_modal_rollout_badges: false,
frontend_modal_rollout_orders: false,
frontend_modal_rollout_vip: false,
},
groups: [
{
key: 'modal-rollout',
title: '弹窗新流程开关',
icon: 'fas fa-toggle-on',
fields: [
{
key: 'frontend_modal_rollout_identity',
label: '官方认证新流程',
type: 'switch',
help: '启用统一弹窗运行时与认证快照流程。',
},
{
key: 'frontend_modal_rollout_badges',
label: '徽章新流程',
type: 'switch',
help: '启用统一 JSON 徽章流程和短缓存。',
},
{
key: 'frontend_modal_rollout_orders',
label: '订单新流程',
type: 'switch',
help: '启用订单详情快速开壳与状态同步流程。',
},
{
key: 'frontend_modal_rollout_vip',
label: '会员支付新流程',
type: 'switch',
help: '启用统一会员购买、支付和结果同步流程。',
},
],
},
],
}