diff --git a/web/src/SystemSettings.test.tsx b/web/src/SystemSettings.test.tsx index 9e4244d..c8384af 100644 --- a/web/src/SystemSettings.test.tsx +++ b/web/src/SystemSettings.test.tsx @@ -147,7 +147,7 @@ describe('SystemSettingsView service configuration', () => { for (const text of [ '测试地址', '生产地址', - '生产 ID', + '生产租户 ID', '知识库 ID', '保存并启用服务配置', 'https://weknora.test.example', @@ -423,7 +423,7 @@ describe('SystemSettingsView', () => { ) const on = view(true, true) expect(on).toContain('测试 WeKnora') - expect(on).toContain('可达 · 可接单') + expect(on).toContain('接口可达 · 执行器未验证') expect(on).toContain('延迟 86ms') expect(on).toContain('已启用 · 可提交生产请求') expect(on).toContain('生产写入:开启') diff --git a/web/src/SystemSettings.tsx b/web/src/SystemSettings.tsx index 7f95506..12194ad 100644 --- a/web/src/SystemSettings.tsx +++ b/web/src/SystemSettings.tsx @@ -92,6 +92,14 @@ export const healthStateLabel = (health: ServiceHealthView | undefined, service: if (health.readiness === 'not_applicable') return '未部署' return health.liveness === 'up' ? '可达 · 不可接单' : '不可达 · 不可接单' } + +// 测试 WeKnora 卡片只证明“接口就绪”:readiness 不覆盖上传/解析执行器, +// 所以不能沿用“可接单”这种承诺式措辞。 +export const testWeKnoraLabel = (health: ServiceHealthView | undefined, service: ServiceView | undefined): string => { + const label = healthStateLabel(health, service) + return label === '可达 · 可接单' ? '接口可达 · 执行器未验证' : label +} + export const healthStateDetail = (health: ServiceHealthView | undefined, service: ServiceView | undefined): string => { if (!health) return service?.detail || '真实 Provider 未接入' const success = health.last_success_at @@ -292,7 +300,7 @@ export function SystemSettingsView({
格式不合法:地址需 http:// 或 https:// 开头的纯地址,不能带用户名密码、? 查询串或 # 片段;生产