feat(dashboard): 在工作台右侧扩展出海运营快捷中枢,新增8大高频业务入口、渠道矩阵与待办预警

这个提交包含在:
wikiboss
2026-09-21 10:27:20 +08:00
父节点 4843c6d713
当前提交 088a5f05e1
共有 4 个文件被更改,包括 582 次插入 和 232 次删除

查看文件

@@ -118,3 +118,38 @@ test('6. 专业出海运营官视角:包含全球雷达监控、渠道漏斗
assert.ok(!EMOJI_RE.test(content), '页面代码严禁 emoji');
});
test('7. 出海运营快捷中枢:覆盖8大核心业务快捷入口与运营预警,全屏仅1个主CTA', () => {
const content = fs.readFileSync(pagePath, 'utf-8');
const localeContent = fs.readFileSync(localePath, 'utf-8');
// 必须覆盖的8大核心业务快捷路由
const requiredRoutes = [
'/card/builder',
'/crm/leads',
'/crm/pipeline',
'/nfc/batch',
'/nfc/devices',
'/dashboard/radar-map',
'/ai/concierge',
'/dashboard/financial',
];
for (const route of requiredRoutes) {
assert.ok(content.includes(route), `工作台必须包含快捷业务路由入口: ${route}`);
}
// 必须包含待办预警词条
assert.ok(localeContent.includes('workplace.alerts.title'), '必须包含待办预警标题');
assert.ok(localeContent.includes('workplace.quickHub.title'), '必须包含快捷中枢标题');
// 铁律:全屏主 CTA 依然严格为 1
const primaryButtons = content.match(/type=["']primary["']/g) || [];
assert.equal(
primaryButtons.length,
1,
'无论增加多少快捷入口,全屏依然必须严格保持唯 1 一个主 CTA (type="primary")'
);
assert.ok(!EMOJI_RE.test(localeContent), '语言包严禁 emoji');
assert.ok(!EMOJI_RE.test(content), '页面代码严禁 emoji');
});