feat(modal): add rollout telemetry foundation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b728295a9
commit
113a6bcab0
14 files changed
+320
-1
No files matched your search
@@ -18,6 +18,7 @@ class SchemaTools {
|
||||
'health' => SchemaToolsHealth::build(),
|
||||
'backup' => SchemaToolsBackup::build(),
|
||||
'email-rollback' => SchemaToolsEmailRollback::build(),
|
||||
'modal-rollout' => SchemaToolsModalRollout::build(),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @package AKSRT
|
||||
*/
|
||||
|
||||
namespace AKSRT\Admin\Schema;
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
class SchemaToolsModalRollout {
|
||||
|
||||
public static function build(): array {
|
||||
return [
|
||||
'key' => 'modal-rollout',
|
||||
'title' => '前台弹窗灰度',
|
||||
'version' => '1.0.0',
|
||||
'option_key' => 'aksrt_settings',
|
||||
'groups' => [
|
||||
[
|
||||
'key' => 'modal-rollout',
|
||||
'title' => '弹窗新流程开关',
|
||||
'fields' => [
|
||||
[
|
||||
'key' => 'frontend_modal_rollout_identity',
|
||||
'label' => '官方认证新流程',
|
||||
'type' => 'switch',
|
||||
'default' => false,
|
||||
'help' => '启用统一弹窗运行时与认证快照流程。',
|
||||
],
|
||||
[
|
||||
'key' => 'frontend_modal_rollout_badges',
|
||||
'label' => '徽章新流程',
|
||||
'type' => 'switch',
|
||||
'default' => false,
|
||||
'help' => '启用统一 JSON 徽章流程和短缓存。',
|
||||
],
|
||||
[
|
||||
'key' => 'frontend_modal_rollout_orders',
|
||||
'label' => '订单新流程',
|
||||
'type' => 'switch',
|
||||
'default' => false,
|
||||
'help' => '启用订单详情快速开壳与状态同步流程。',
|
||||
],
|
||||
[
|
||||
'key' => 'frontend_modal_rollout_vip',
|
||||
'label' => '会员支付新流程',
|
||||
'type' => 'switch',
|
||||
'default' => false,
|
||||
'help' => '启用统一会员购买、支付和结果同步流程。',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,8 @@ class ToolsController extends ControllerBase {
|
||||
}
|
||||
|
||||
public function register_routes(): void {
|
||||
$this->register_section_routes('tools', 'tools');
|
||||
|
||||
// Health: email verification status
|
||||
register_rest_route(self::API_NAMESPACE, '/health/email-verification', [
|
||||
'methods' => 'GET',
|
||||
|
||||
Reference in new issue
Block a user