From 536d8be7c84f59682259f25f7bcc8687ae9e94fb Mon Sep 17 00:00:00 2001 From: os-zhuang Date: Fri, 3 Jul 2026 00:19:09 +0800 Subject: [PATCH] fix: drop removed ObjectSchema detail block (ADR-0085) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit framework ADR-0085 removed the per-surface `detail` UI-hints block from ObjectSchema — presentation intent now lives in cross-surface semantic roles (nameField / compactLayout→highlightFields / stageField / fieldGroups). `detail.hideReferenceRail` was a no-op here anyway: the Reference Rail is OFF by default and the only key that could enable it was never spec-typed, so these pages were already single-column without the flag. Removing the block changes no rendered behavior; it only restores typecheck against the new spec. Co-Authored-By: Claude Fable 5 --- src/objects/product.object.ts | 7 ------- src/objects/task.object.ts | 7 ------- 2 files changed, 14 deletions(-) diff --git a/src/objects/product.object.ts b/src/objects/product.object.ts index f1cc8677..fc4acd3f 100644 --- a/src/objects/product.object.ts +++ b/src/objects/product.object.ts @@ -19,13 +19,6 @@ export const Product = ObjectSchema.create({ nameField: 'display_title', compactLayout: ['product_code', 'name', 'category', 'is_active'], - // Product detail pages are catalog-style — users edit attributes in - // place, they don't browse lateral relationships. Suppress the - // Reference Rail so the single-column form gets full width. - detail: { - hideReferenceRail: true, - }, - fieldGroups: [ { key: 'basic', label: 'Product Information', icon: 'info' }, { key: 'pricing', label: 'Pricing & Billing', icon: 'dollar-sign' }, diff --git a/src/objects/task.object.ts b/src/objects/task.object.ts index 4d0ac9c8..160e334d 100644 --- a/src/objects/task.object.ts +++ b/src/objects/task.object.ts @@ -10,13 +10,6 @@ export const Task = ObjectSchema.create({ icon: 'check-square', description: 'Activities and to-do items', - // Tasks are atomic action items, not Hub objects. Keep the detail - // page single-column so the assignment + due-date + completion flow - // dominates instead of being shoulder-bumped by a related-list rail. - detail: { - hideReferenceRail: true, - }, - fields: { // Task Information subject: Field.text({