The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Type PageLayout manifest type prop with PageLayoutType (#23375)
Paul Rastoin68b26f00ba23
diff --git a/packages/twenty-docs/developers/extend/apps/layout/page-layouts.mdx b/packages/twenty-docs/developers/extend/apps/layout/page-layouts.mdxindex aa04200c984..76f494e5170 100644--- a/packages/twenty-docs/developers/extend/apps/layout/page-layouts.mdx+++ b/packages/twenty-docs/developers/extend/apps/layout/page-layouts.mdx@@ -51,7 +51,7 @@ export default definePageLayout({### Key points-- `type` is typically `'RECORD_PAGE'` to customize the detail view of a specific object.+- `type` is one of `'RECORD_INDEX'`, `'RECORD_PAGE'`, `'DASHBOARD'` or `'STANDALONE_PAGE'`. Use `'RECORD_PAGE'` to customize the detail view of a specific object.- `objectUniversalIdentifier` specifies which object this layout applies to.- Each `tab` defines a section of the page with a `title`, `position`, and `layoutMode` (`VERTICAL_LIST` for record pages, `GRID` for dashboards). A tab holding a single widget renders it full-bleed automatically; with several widgets they stack as cards.- Each `widget` inside a tab can render a [front component](/developers/extend/apps/layout/front-components), a relation list, or other built-in widget types.diff --git a/packages/twenty-shared/src/application/pageLayoutManifestType.ts b/packages/twenty-shared/src/application/pageLayoutManifestType.tsindex 5597b5bf0f2..687c130e1d3 100644--- a/packages/twenty-shared/src/application/pageLayoutManifestType.ts+++ b/packages/twenty-shared/src/application/pageLayoutManifestType.ts@@ -2,6 +2,7 @@ import { type SyncableEntityOptions } from '@/application/syncableEntityOptionsTimport {type GridPosition,type PageLayoutTabLayoutMode,+ type PageLayoutType,type PageLayoutWidgetConditionalDisplay,type PageLayoutWidgetUniversalConfiguration,} from '@/types';@@ -26,7 +27,7 @@ export type PageLayoutTabManifest = SyncableEntityOptions & {export type PageLayoutManifest = SyncableEntityOptions & {name: string;- type: string;+ type: `${PageLayoutType}`;objectUniversalIdentifier?: string;defaultTabToFocusOnMobileAndSidePanelUniversalIdentifier?: string;tabs?: PageLayoutTabManifest[];