Add configuration types for widgets (#14717)
closes https://github.com/twentyhq/core-team-issues/issues/1532
This commit is contained in:
+1
-86
@@ -26,13 +26,6 @@ export const DASHBOARD_DATA_SEED_IDS = {
|
||||
SALES_OVERVIEW: '20202020-9e82-4342-91ef-c9e70f16a675',
|
||||
CUSTOMER_INSIGHTS: '20202020-d64e-4588-98cc-c56ba821247b',
|
||||
TEAM_PERFORMANCE: '20202020-b888-4c58-8975-76b4c2035d3a',
|
||||
REVENUE_ANALYTICS: '20202020-842e-4cd0-a205-a5bfb1efdb1c',
|
||||
MARKETING_METRICS: '20202020-7b87-4522-9fa8-7f97332c4fa7',
|
||||
SUPPORT_DASHBOARD: '20202020-5404-49ba-a10a-7941205e577f',
|
||||
PRODUCT_USAGE: '20202020-fce2-4c4c-b1dd-6db836141c11',
|
||||
OPERATIONS_KPI: '20202020-c1e4-444c-ab36-4fb42d493eb3',
|
||||
FINANCE_OVERVIEW: '20202020-b993-4601-945b-996ec668f9e9',
|
||||
EXECUTIVE_SUMMARY: '20202020-d2e3-4304-9c80-b3db67903974',
|
||||
};
|
||||
|
||||
export const getDashboardDataSeeds = (
|
||||
@@ -64,89 +57,11 @@ export const getDashboardDataSeeds = (
|
||||
},
|
||||
{
|
||||
id: DASHBOARD_DATA_SEED_IDS.TEAM_PERFORMANCE,
|
||||
title: 'Team Performance',
|
||||
title: 'Team & Activity',
|
||||
pageLayoutId: generateSeedId(workspaceId, PAGE_LAYOUT_SEEDS.TEAM_DASHBOARD),
|
||||
createdBySource: 'MANUAL',
|
||||
createdByWorkspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.PHIL,
|
||||
createdByName: 'Phil Schiller',
|
||||
position: 2,
|
||||
},
|
||||
{
|
||||
id: DASHBOARD_DATA_SEED_IDS.REVENUE_ANALYTICS,
|
||||
title: 'Revenue Analytics',
|
||||
pageLayoutId: generateSeedId(
|
||||
workspaceId,
|
||||
PAGE_LAYOUT_SEEDS.REVENUE_ANALYTICS,
|
||||
),
|
||||
createdBySource: 'MANUAL',
|
||||
createdByWorkspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.TIM,
|
||||
createdByName: 'Tim Apple',
|
||||
position: 3,
|
||||
},
|
||||
{
|
||||
id: DASHBOARD_DATA_SEED_IDS.MARKETING_METRICS,
|
||||
title: 'Marketing Metrics',
|
||||
pageLayoutId: generateSeedId(
|
||||
workspaceId,
|
||||
PAGE_LAYOUT_SEEDS.MARKETING_METRICS,
|
||||
),
|
||||
createdBySource: 'MANUAL',
|
||||
createdByWorkspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY,
|
||||
createdByName: 'Jony Ive',
|
||||
position: 4,
|
||||
},
|
||||
{
|
||||
id: DASHBOARD_DATA_SEED_IDS.SUPPORT_DASHBOARD,
|
||||
title: 'Support Dashboard',
|
||||
pageLayoutId: generateSeedId(
|
||||
workspaceId,
|
||||
PAGE_LAYOUT_SEEDS.SUPPORT_DASHBOARD,
|
||||
),
|
||||
createdBySource: 'MANUAL',
|
||||
createdByWorkspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.PHIL,
|
||||
createdByName: 'Phil Schiller',
|
||||
position: 5,
|
||||
},
|
||||
{
|
||||
id: DASHBOARD_DATA_SEED_IDS.PRODUCT_USAGE,
|
||||
title: 'Product Usage',
|
||||
pageLayoutId: generateSeedId(workspaceId, PAGE_LAYOUT_SEEDS.PRODUCT_USAGE),
|
||||
createdBySource: 'MANUAL',
|
||||
createdByWorkspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.TIM,
|
||||
createdByName: 'Tim Apple',
|
||||
position: 6,
|
||||
},
|
||||
{
|
||||
id: DASHBOARD_DATA_SEED_IDS.OPERATIONS_KPI,
|
||||
title: 'Operations KPI',
|
||||
pageLayoutId: generateSeedId(workspaceId, PAGE_LAYOUT_SEEDS.OPERATIONS_KPI),
|
||||
createdBySource: 'MANUAL',
|
||||
createdByWorkspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY,
|
||||
createdByName: 'Jony Ive',
|
||||
position: 7,
|
||||
},
|
||||
{
|
||||
id: DASHBOARD_DATA_SEED_IDS.FINANCE_OVERVIEW,
|
||||
title: 'Finance Overview',
|
||||
pageLayoutId: generateSeedId(
|
||||
workspaceId,
|
||||
PAGE_LAYOUT_SEEDS.FINANCE_OVERVIEW,
|
||||
),
|
||||
createdBySource: 'MANUAL',
|
||||
createdByWorkspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.PHIL,
|
||||
createdByName: 'Phil Schiller',
|
||||
position: 8,
|
||||
},
|
||||
{
|
||||
id: DASHBOARD_DATA_SEED_IDS.EXECUTIVE_SUMMARY,
|
||||
title: 'Executive Summary',
|
||||
pageLayoutId: generateSeedId(
|
||||
workspaceId,
|
||||
PAGE_LAYOUT_SEEDS.EXECUTIVE_SUMMARY,
|
||||
),
|
||||
createdBySource: 'MANUAL',
|
||||
createdByWorkspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.TIM,
|
||||
createdByName: 'Tim Apple',
|
||||
position: 9,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user