Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .changeset/13308-add-record-retired-keys.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 0 additions & 3 deletions packages/types/src/__tests__/p1-spec-alignment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
4 changes: 1 addition & 3 deletions packages/types/src/__tests__/p2-spec-exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading