From e525fc1f6ea74ec35db289738a8ed136a5756943 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 21 Oct 2026 09:28:51 +0000 Subject: [PATCH 1/2] test(types): stop authoring addRecord.mode / formView in two spec-alignment tests objectstack retired both keys; the typed values no longer compile against a spec built from objectstack main. enabled and position stay. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB --- packages/types/src/__tests__/p1-spec-alignment.test.ts | 3 --- packages/types/src/__tests__/p2-spec-exports.test.ts | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/types/src/__tests__/p1-spec-alignment.test.ts b/packages/types/src/__tests__/p1-spec-alignment.test.ts index 2012fcf2f9..7241c8a5b8 100644 --- a/packages/types/src/__tests__/p1-spec-alignment.test.ts +++ b/packages/types/src/__tests__/p1-spec-alignment.test.ts @@ -181,12 +181,9 @@ describe('P1.1 ListView Spec Alignment', () => { addRecord: { enabled: true, position: 'top', - mode: 'inline', - formView: 'quick_create', }, }; expect(schema.addRecord?.enabled).toBe(true); - expect(schema.addRecord?.mode).toBe('inline'); }); it('should accept ObjectGridSchema with spec-aligned conditionalFormatting and emptyState', () => { diff --git a/packages/types/src/__tests__/p2-spec-exports.test.ts b/packages/types/src/__tests__/p2-spec-exports.test.ts index 68632c75da..b2f6d20060 100644 --- a/packages/types/src/__tests__/p2-spec-exports.test.ts +++ b/packages/types/src/__tests__/p2-spec-exports.test.ts @@ -136,12 +136,10 @@ describe('P2.4 Spec Protocol Type Re-exports — View Configuration', () => { expect(result.success).toBe(true); }); - it('should validate a full AddRecordConfig', () => { + it('should validate an AddRecordConfig with enabled and position', () => { const config: AddRecordConfig = { enabled: true, position: 'top', - mode: 'inline', - formView: 'new-contact-form', }; const result = AddRecordConfigZod.safeParse(config); expect(result.success).toBe(true); From 562f56cc00111252bcba46d5c77a3d82045c8b2d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 21 Oct 2026 09:39:10 +0000 Subject: [PATCH 2/2] chore(changeset): declare the addRecord test cleanup as releasing nothing Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB --- .changeset/13308-add-record-retired-keys.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .changeset/13308-add-record-retired-keys.md diff --git a/.changeset/13308-add-record-retired-keys.md b/.changeset/13308-add-record-retired-keys.md new file mode 100644 index 0000000000..0d9cd3f6df --- /dev/null +++ b/.changeset/13308-add-record-retired-keys.md @@ -0,0 +1,4 @@ +--- +--- + +Test-only change to two `@object-ui/types` spec-alignment tests: they stop authoring `addRecord.mode` / `addRecord.formView`, which `@objectstack/spec` retired. No published behaviour changes.