The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Use canvas layout for all advanced RPL widgets (#17028)
Baptiste Devessier8fc0bb3ed74c
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultCompanyRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultCompanyRecordPageLayout.tsindex b7baa8d9872..e81eb340e25 100644--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultCompanyRecordPageLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultCompanyRecordPageLayout.ts@@ -322,7 +322,7 @@ export const DEFAULT_COMPANY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Timeline',icon: 'IconTimelineEvent',position: 200,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_COMPANY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -359,7 +359,7 @@ export const DEFAULT_COMPANY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Tasks',icon: 'IconCheckbox',position: 300,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_COMPANY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -396,7 +396,7 @@ export const DEFAULT_COMPANY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Notes',icon: 'IconNotes',position: 400,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_COMPANY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -433,7 +433,7 @@ export const DEFAULT_COMPANY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Files',icon: 'IconPaperclip',position: 500,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_COMPANY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -470,7 +470,7 @@ export const DEFAULT_COMPANY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Emails',icon: 'IconMail',position: 600,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_COMPANY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -507,7 +507,7 @@ export const DEFAULT_COMPANY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Calendar',icon: 'IconCalendarEvent',position: 700,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_COMPANY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.tsindex ee74f4ee1bb..6088760b5e1 100644--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts@@ -131,7 +131,7 @@ export const DEFAULT_NOTE_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Timeline',icon: 'IconTimelineEvent',position: 200,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_NOTE_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -168,7 +168,7 @@ export const DEFAULT_NOTE_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Files',icon: 'IconPaperclip',position: 300,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_NOTE_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.tsindex 21839d9b003..b1a861b7afc 100644--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts@@ -59,7 +59,7 @@ export const DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Timeline',icon: 'IconTimelineEvent',position: 200,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -96,7 +96,7 @@ export const DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Tasks',icon: 'IconCheckbox',position: 300,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -133,7 +133,7 @@ export const DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Notes',icon: 'IconNotes',position: 400,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -170,7 +170,7 @@ export const DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Files',icon: 'IconPaperclip',position: 500,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -207,7 +207,7 @@ export const DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Emails',icon: 'IconMail',position: 600,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -244,7 +244,7 @@ export const DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Calendar',icon: 'IconCalendarEvent',position: 700,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.tsindex a98fba91f5c..eae962217fb 100644--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts@@ -55,7 +55,7 @@ export const DEFAULT_PERSON_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Timeline',icon: 'IconTimelineEvent',position: 200,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_PERSON_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -92,7 +92,7 @@ export const DEFAULT_PERSON_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Tasks',icon: 'IconCheckbox',position: 300,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_PERSON_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -129,7 +129,7 @@ export const DEFAULT_PERSON_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Notes',icon: 'IconNotes',position: 400,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_PERSON_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -166,7 +166,7 @@ export const DEFAULT_PERSON_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Files',icon: 'IconPaperclip',position: 500,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_PERSON_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -203,7 +203,7 @@ export const DEFAULT_PERSON_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Emails',icon: 'IconMail',position: 600,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_PERSON_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -240,7 +240,7 @@ export const DEFAULT_PERSON_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Calendar',icon: 'IconCalendarEvent',position: 700,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_PERSON_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.tsindex b4b3cc97a79..23b686112d3 100644--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts@@ -55,7 +55,7 @@ export const DEFAULT_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Timeline',icon: 'IconTimelineEvent',position: 200,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -92,7 +92,7 @@ export const DEFAULT_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Tasks',icon: 'IconCheckbox',position: 300,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -129,7 +129,7 @@ export const DEFAULT_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Notes',icon: 'IconNotes',position: 400,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -166,7 +166,7 @@ export const DEFAULT_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Files',icon: 'IconPaperclip',position: 500,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.tsindex 27713f9cab9..2bc0dcda17f 100644--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts@@ -128,7 +128,7 @@ export const DEFAULT_TASK_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Timeline',icon: 'IconTimelineEvent',position: 200,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_TASK_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),@@ -165,7 +165,7 @@ export const DEFAULT_TASK_RECORD_PAGE_LAYOUT: PageLayout = {title: 'Files',icon: 'IconPaperclip',position: 300,- layoutMode: 'vertical-list',+ layoutMode: 'canvas',pageLayoutId: DEFAULT_TASK_RECORD_PAGE_LAYOUT_ID,createdAt: new Date().toISOString(),updatedAt: new Date().toISOString(),