Skip to content

Commit 420c896

Browse files
Copilothotlong
andcommitted
fix(ui): rename homePageId to homePageName for consistency with PageSchema.name
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 11b0157 commit 420c896

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/spec/src/ui/interface.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ describe('InterfaceSchema', () => {
301301
regions: [],
302302
},
303303
],
304-
homePageId: 'page_dashboard',
304+
homePageName: 'page_dashboard',
305305
branding: {
306306
primaryColor: '#1A73E8',
307307
logo: '/logos/sales.png',
@@ -311,7 +311,7 @@ describe('InterfaceSchema', () => {
311311
});
312312

313313
expect(iface.pages).toHaveLength(2);
314-
expect(iface.homePageId).toBe('page_dashboard');
314+
expect(iface.homePageName).toBe('page_dashboard');
315315
expect(iface.assignedRoles).toHaveLength(2);
316316
expect(iface.isDefault).toBe(true);
317317
});
@@ -734,7 +734,7 @@ describe('Interface end-to-end', () => {
734734
regions: [],
735735
},
736736
],
737-
homePageId: 'page_overview',
737+
homePageName: 'page_overview',
738738
branding: { primaryColor: '#2563EB', logo: '/logos/orders.png' },
739739
assignedRoles: ['order_manager', 'admin'],
740740
isDefault: true,

packages/spec/src/ui/interface.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const InterfaceSchema = z.object({
6868
pages: z.array(PageSchema).describe('Ordered list of pages in this interface'),
6969

7070
/** Default landing page */
71-
homePageId: z.string().optional().describe('Default landing page name'),
71+
homePageName: z.string().optional().describe('Default landing page name'),
7272

7373
/** Visual branding */
7474
branding: InterfaceBrandingSchema.optional().describe('Visual branding overrides'),

0 commit comments

Comments
 (0)