feat(shipping-notice): 落地字段资产治理与唯一 Schema,自动建单随版本冻结

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-07-29 16:23:15 +08:00
1 parent b7307fc573
commit 3a1dbf7ce5
144 files changed
+15167 -4480

No files matched your search

@@ -1,7 +1,8 @@
/**
* features/shipping-notice/shippingI18nParity.spec.ts
* 用途:验证货代发货通知业务域在四种语言中的文案键保持一致。
* 依赖:admin/chat/workspace 四语言 JSON;只检查货代业务子树,不受其他历史业务域影响。
* 逻辑:递归收集叶子键并比较集合,防止只在单一语言新增或删除货代文案。
* 逻辑:递归收集叶子键并比较集合;覆盖 Schema/库存/聊天通知/会话摘要/工作台待办。
*/
import { describe, expect, it } from 'vitest';
@@ -61,6 +62,15 @@ describe('shipping notice i18n parity', () => {
]);
});
it('keeps chat shipping session summary keys aligned', () => {
expectSameKeys([
chatZhCn.shippingSessionSummary as LocaleTree,
chatZhTw.shippingSessionSummary as LocaleTree,
chatEn.shippingSessionSummary as LocaleTree,
chatTh.shippingSessionSummary as LocaleTree,
]);
});
it('keeps workspace shipping notice keys aligned', () => {
expectSameKeys([
workspaceZhCn.shippingNotice as LocaleTree,