Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(showcase): 将展示标题字号统一为 24px
Dasha3f7ebf7572a
diff --git a/packages/maker-shared/src/__tests__/uiMockShowcase.test.ts b/packages/maker-shared/src/__tests__/uiMockShowcase.test.tsindex 27ef0d73e8..39424615bd 100644--- a/packages/maker-shared/src/__tests__/uiMockShowcase.test.ts+++ b/packages/maker-shared/src/__tests__/uiMockShowcase.test.ts@@ -68,10 +68,11 @@ describe("shared full-client showcase data", () => {expect(richLabel(report.nodes.get("improvement")!, values)).toBe("+24");const plan = documentFor(`ui-mock-showcase-plan-${locale}`);for (const doc of [report, plan]) {- // Both clients consume normalized styles; unsupported weights lose emphasis.- expect(richVisualStyle(doc.nodes.get("heading")!).fontWeight).toBe(- "600",- );+ // DESIGN §3: both clients render the same supported title size and weight.+ expect(richVisualStyle(doc.nodes.get("heading")!)).toMatchObject({+ fontSize: 24,+ fontWeight: "600",+ });}const defaults = richResolvedValues(plan);expect(defaults.hours).toBe(36);diff --git a/packages/maker-shared/src/uiMockShowcase.ts b/packages/maker-shared/src/uiMockShowcase.tsindex 7100e15735..ad2d3a15a5 100644--- a/packages/maker-shared/src/uiMockShowcase.ts+++ b/packages/maker-shared/src/uiMockShowcase.ts@@ -61,7 +61,7 @@ function feedbackAnswer(locale: Locale): string {parent: "report",props: {text: t("让开场十分钟,更好玩", "A better first ten minutes"),- style: { fontSize: 25, fontWeight: 600, lineHeight: 1.25 },+ style: { fontSize: 24, fontWeight: 600, lineHeight: 1.25 },},},{@@ -191,7 +191,7 @@ function planAnswer(locale: Locale): string {parent: "plan",props: {text: t("下一轮试玩,怎么排?", "Shape the next playtest"),- style: { fontSize: 25, fontWeight: 600 },+ style: { fontSize: 24, fontWeight: 600 },},},{