Some checks failed
CI / verify (push) Has been cancelled
- lock profile task tracking scope to user - add analytics date dimension module support and tests - regenerate SpacetimeDB Rust bindings with private APIs
1.1 KiB
1.1 KiB
AdminTaskConfigPage 埋点范围收口记录(2026-05-04)
变更目标
- 前端隐藏「埋点范围」选择项。
- 保存任务配置时固定传递
scopeKind=user,避免运营在后台选择其他范围。
落地结果
apps/admin-web/src/pages/AdminTaskConfigPage.tsx- 移除了「埋点范围」下拉选择 UI。
- 保存时改为固定提交
scopeKind: 'user'。 - 回填表单时不再读取或维护
scopeKind的可编辑状态。
验证结果
- 已检查页面源码,确认不再存在「埋点范围」字段与可编辑逻辑。
- 已执行
npm run admin-web:typecheck。 - 当前验证失败原因为环境缺少
node_modules/typescript/bin/tsc,属于依赖安装状态问题,不是本次前端改动引入的代码错误。
遗留说明
apps/admin-web/src/api/adminApiTypes.ts中仍保留TrackingScopeKind类型,供接口契约与其他前端模块兼容使用。apps/admin-web/src/config/trackingEventDefinitions.ts仍保留事件定义中的scopeKind元数据,但页面不再允许运营修改。