feat(dashboard): 专业出海运营官视角重构工作台,支持实时雷达客商流、出海转化漏斗与运营工具箱
这个提交包含在:
@@ -81,3 +81,40 @@ test('5. 工作台 i18n 必须覆盖 KPI、雷达动态与快捷入口,且含
|
||||
assert.ok(localeContent.includes('workplace.shortcut.exportLeads'));
|
||||
assert.ok(!EMOJI_RE.test(localeContent), '语言包严禁 emoji');
|
||||
});
|
||||
|
||||
test('6. 专业出海运营官视角:包含全球雷达监控、渠道漏斗与效率工具,全屏仅 1 个主 CTA', () => {
|
||||
const content = fs.readFileSync(pagePath, 'utf-8');
|
||||
const localeContent = fs.readFileSync(localePath, 'utf-8');
|
||||
|
||||
// 1. 全球雷达大屏导航
|
||||
assert.ok(
|
||||
content.includes('/dashboard/radar-map'),
|
||||
'必须包含全球雷达热力图入口'
|
||||
);
|
||||
|
||||
// 2. 运营词条在中英阿三语完整定义
|
||||
const requiredKeys = [
|
||||
'workplace.radar.liveBadge',
|
||||
'workplace.funnel.title',
|
||||
'workplace.channel.title',
|
||||
'workplace.shortcut.radarMap',
|
||||
'workplace.shortcut.aiConfig',
|
||||
];
|
||||
for (const key of requiredKeys) {
|
||||
assert.ok(
|
||||
localeContent.includes(key),
|
||||
`语言包必须包含运营官核心词条: ${key}`
|
||||
);
|
||||
}
|
||||
|
||||
// 3. 铁律:无论如何扩展,全屏主 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');
|
||||
});
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户