Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/35431-order-to-cash-title.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@objectstack/scenarios': patch
---

fix(scenarios): the order_to_cash card's English title is 126 characters, under the 128-character displayName cap

Clause-②: no
Metadata-protocol: none
2 changes: 1 addition & 1 deletion docs/qa/scenarios/order_to_cash.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"code": "order",
"tier": "starter",
"origin": "generic",
"title": { "zh": "订单到收款:客户、跟进活动、销售订单及明细、折扣审批、发票、收款和应收账龄", "en": "Order to cash: accounts, an activity stream, sales orders with lines, a discount approval, invoices, payments and receivables aging" },
"title": { "zh": "订单到收款:客户、跟进活动、销售订单及明细、折扣审批、发票、收款和应收账龄", "en": "Order to cash: accounts, activity stream, sales orders with lines, discount approval, invoices, payments and receivables aging" },
"provenance": "Mid-tier scenario 订单到收款 (order to cash) of the open library, written for this card from general business knowledge alone: generic account names, cities, products and amounts, no customer-derived content. The seed follows the arithmetic rule in `$comment`, so each truth can be worked out by hand.",
"prompt": {
"short": {
Expand Down
2 changes: 2 additions & 0 deletions packages/qa/scenarios/test/library.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ describe('the open scenario library (docs/qa/scenarios)', () => {
// A Chinese title is Chinese: at least one CJK ideograph, not the English one copied over.
expect(card.title.zh, card.id).toMatch(/[\u4e00-\u9fff]/);
expect(card.title.zh, card.id).not.toBe(card.title.en);
// The exporter writes title.en as the manifest displayName, which package.zod caps at 128.
expect(card.title.en.length, card.id).toBeLessThanOrEqual(128);
}
});

Expand Down
Loading