Skip to content

Commit 8dfdf99

Browse files
authored
Merge pull request #811 from objectstack-ai/copilot/fix-ci-build-and-test
2 parents d714425 + a16f5b2 commit 8dfdf99

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

examples/app-crm/src/dashboards/executive.dashboard.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const ExecutiveDashboard: Dashboard = {
1010
widgets: [
1111
// Row 1: Revenue Metrics
1212
{
13+
id: 'total_revenue_ytd',
1314
title: 'Total Revenue (YTD)',
1415
type: 'metric',
1516
object: 'opportunity',
@@ -20,6 +21,7 @@ export const ExecutiveDashboard: Dashboard = {
2021
options: { prefix: '$', color: '#00AA00' }
2122
},
2223
{
24+
id: 'total_accounts',
2325
title: 'Total Accounts',
2426
type: 'metric',
2527
object: 'account',
@@ -29,6 +31,7 @@ export const ExecutiveDashboard: Dashboard = {
2931
options: { color: '#4169E1' }
3032
},
3133
{
34+
id: 'total_contacts',
3235
title: 'Total Contacts',
3336
type: 'metric',
3437
object: 'contact',
@@ -37,6 +40,7 @@ export const ExecutiveDashboard: Dashboard = {
3740
options: { color: '#9370DB' }
3841
},
3942
{
43+
id: 'total_leads',
4044
title: 'Total Leads',
4145
type: 'metric',
4246
object: 'lead',
@@ -48,6 +52,7 @@ export const ExecutiveDashboard: Dashboard = {
4852

4953
// Row 2: Revenue Analysis
5054
{
55+
id: 'revenue_by_industry',
5156
title: 'Revenue by Industry',
5257
type: 'bar',
5358
object: 'opportunity',
@@ -58,6 +63,7 @@ export const ExecutiveDashboard: Dashboard = {
5863
layout: { x: 0, y: 2, w: 6, h: 4 },
5964
},
6065
{
66+
id: 'quarterly_revenue_trend',
6167
title: 'Quarterly Revenue Trend',
6268
type: 'line',
6369
object: 'opportunity',
@@ -71,6 +77,7 @@ export const ExecutiveDashboard: Dashboard = {
7177

7278
// Row 3: Customer & Activity Metrics
7379
{
80+
id: 'new_accounts_by_month',
7481
title: 'New Accounts by Month',
7582
type: 'bar',
7683
object: 'account',
@@ -81,6 +88,7 @@ export const ExecutiveDashboard: Dashboard = {
8188
options: { dateGranularity: 'month' }
8289
},
8390
{
91+
id: 'lead_conversion_rate',
8492
title: 'Lead Conversion Rate',
8593
type: 'metric',
8694
object: 'lead',
@@ -90,6 +98,7 @@ export const ExecutiveDashboard: Dashboard = {
9098
options: { suffix: '%', color: '#00AA00' }
9199
},
92100
{
101+
id: 'top_accounts_by_revenue',
93102
title: 'Top Accounts by Revenue',
94103
type: 'table',
95104
object: 'account',

examples/app-crm/src/dashboards/sales.dashboard.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const SalesDashboard: Dashboard = {
1010
widgets: [
1111
// Row 1: Key Metrics
1212
{
13+
id: 'total_pipeline_value',
1314
title: 'Total Pipeline Value',
1415
type: 'metric',
1516
object: 'opportunity',
@@ -20,6 +21,7 @@ export const SalesDashboard: Dashboard = {
2021
options: { prefix: '$', color: '#4169E1' }
2122
},
2223
{
24+
id: 'closed_won_this_quarter',
2325
title: 'Closed Won This Quarter',
2426
type: 'metric',
2527
object: 'opportunity',
@@ -30,6 +32,7 @@ export const SalesDashboard: Dashboard = {
3032
options: { prefix: '$', color: '#00AA00' }
3133
},
3234
{
35+
id: 'open_opportunities',
3336
title: 'Open Opportunities',
3437
type: 'metric',
3538
object: 'opportunity',
@@ -39,6 +42,7 @@ export const SalesDashboard: Dashboard = {
3942
options: { color: '#FFA500' }
4043
},
4144
{
45+
id: 'win_rate',
4246
title: 'Win Rate',
4347
type: 'metric',
4448
object: 'opportunity',
@@ -51,6 +55,7 @@ export const SalesDashboard: Dashboard = {
5155

5256
// Row 2: Pipeline Analysis
5357
{
58+
id: 'pipeline_by_stage',
5459
title: 'Pipeline by Stage',
5560
type: 'funnel',
5661
object: 'opportunity',
@@ -62,6 +67,7 @@ export const SalesDashboard: Dashboard = {
6267
options: { showValues: true }
6368
},
6469
{
70+
id: 'opportunities_by_owner',
6571
title: 'Opportunities by Owner',
6672
type: 'bar',
6773
object: 'opportunity',
@@ -75,6 +81,7 @@ export const SalesDashboard: Dashboard = {
7581

7682
// Row 3: Trends
7783
{
84+
id: 'monthly_revenue_trend',
7885
title: 'Monthly Revenue Trend',
7986
type: 'line',
8087
object: 'opportunity',
@@ -86,6 +93,7 @@ export const SalesDashboard: Dashboard = {
8693
options: { dateGranularity: 'month', showTrend: true }
8794
},
8895
{
96+
id: 'top_opportunities',
8997
title: 'Top Opportunities',
9098
type: 'table',
9199
object: 'opportunity',

examples/app-crm/src/dashboards/service.dashboard.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const ServiceDashboard: Dashboard = {
1010
widgets: [
1111
// Row 1: Key Metrics
1212
{
13+
id: 'open_cases',
1314
title: 'Open Cases',
1415
type: 'metric',
1516
object: 'case',
@@ -19,6 +20,7 @@ export const ServiceDashboard: Dashboard = {
1920
options: { color: '#FFA500' }
2021
},
2122
{
23+
id: 'critical_cases',
2224
title: 'Critical Cases',
2325
type: 'metric',
2426
object: 'case',
@@ -28,6 +30,7 @@ export const ServiceDashboard: Dashboard = {
2830
options: { color: '#FF0000' }
2931
},
3032
{
33+
id: 'avg_resolution_time',
3134
title: 'Avg Resolution Time (hrs)',
3235
type: 'metric',
3336
object: 'case',
@@ -38,6 +41,7 @@ export const ServiceDashboard: Dashboard = {
3841
options: { suffix: 'h', color: '#4169E1' }
3942
},
4043
{
44+
id: 'sla_violations',
4145
title: 'SLA Violations',
4246
type: 'metric',
4347
object: 'case',
@@ -49,6 +53,7 @@ export const ServiceDashboard: Dashboard = {
4953

5054
// Row 2: Case Distribution
5155
{
56+
id: 'cases_by_status',
5257
title: 'Cases by Status',
5358
type: 'pie',
5459
object: 'case',
@@ -59,6 +64,7 @@ export const ServiceDashboard: Dashboard = {
5964
options: { showLegend: true }
6065
},
6166
{
67+
id: 'cases_by_priority',
6268
title: 'Cases by Priority',
6369
type: 'pie',
6470
object: 'case',
@@ -69,6 +75,7 @@ export const ServiceDashboard: Dashboard = {
6975
options: { showLegend: true }
7076
},
7177
{
78+
id: 'cases_by_origin',
7279
title: 'Cases by Origin',
7380
type: 'bar',
7481
object: 'case',
@@ -79,6 +86,7 @@ export const ServiceDashboard: Dashboard = {
7986

8087
// Row 3: Trends and Lists
8188
{
89+
id: 'daily_case_volume',
8290
title: 'Daily Case Volume',
8391
type: 'line',
8492
object: 'case',
@@ -89,6 +97,7 @@ export const ServiceDashboard: Dashboard = {
8997
options: { dateGranularity: 'day' }
9098
},
9199
{
100+
id: 'my_open_cases',
92101
title: 'My Open Cases',
93102
type: 'table',
94103
object: 'case',

examples/app-todo/src/dashboards/task.dashboard.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const TaskDashboard: Dashboard = {
1010
widgets: [
1111
// Row 1: Key Metrics
1212
{
13+
id: 'total_tasks',
1314
title: 'Total Tasks',
1415
type: 'metric',
1516
object: 'task',
@@ -18,6 +19,7 @@ export const TaskDashboard: Dashboard = {
1819
options: { color: '#3B82F6' }
1920
},
2021
{
22+
id: 'completed_today',
2123
title: 'Completed Today',
2224
type: 'metric',
2325
object: 'task',
@@ -27,6 +29,7 @@ export const TaskDashboard: Dashboard = {
2729
options: { color: '#10B981' }
2830
},
2931
{
32+
id: 'overdue_tasks',
3033
title: 'Overdue Tasks',
3134
type: 'metric',
3235
object: 'task',
@@ -36,6 +39,7 @@ export const TaskDashboard: Dashboard = {
3639
options: { color: '#EF4444' }
3740
},
3841
{
42+
id: 'completion_rate',
3943
title: 'Completion Rate',
4044
type: 'metric',
4145
object: 'task',
@@ -48,6 +52,7 @@ export const TaskDashboard: Dashboard = {
4852

4953
// Row 2: Task Distribution
5054
{
55+
id: 'tasks_by_status',
5156
title: 'Tasks by Status',
5257
type: 'pie',
5358
object: 'task',
@@ -58,6 +63,7 @@ export const TaskDashboard: Dashboard = {
5863
options: { showLegend: true }
5964
},
6065
{
66+
id: 'tasks_by_priority',
6167
title: 'Tasks by Priority',
6268
type: 'bar',
6369
object: 'task',
@@ -70,6 +76,7 @@ export const TaskDashboard: Dashboard = {
7076

7177
// Row 3: Trends
7278
{
79+
id: 'weekly_task_completion',
7380
title: 'Weekly Task Completion',
7481
type: 'line',
7582
object: 'task',
@@ -80,6 +87,7 @@ export const TaskDashboard: Dashboard = {
8087
options: { showDataLabels: true }
8188
},
8289
{
90+
id: 'tasks_by_category',
8391
title: 'Tasks by Category',
8492
type: 'donut',
8593
object: 'task',
@@ -92,6 +100,7 @@ export const TaskDashboard: Dashboard = {
92100

93101
// Row 4: Tables
94102
{
103+
id: 'overdue_tasks_table',
95104
title: 'Overdue Tasks',
96105
type: 'table',
97106
object: 'task',
@@ -100,6 +109,7 @@ export const TaskDashboard: Dashboard = {
100109
layout: { x: 0, y: 10, w: 6, h: 4 },
101110
},
102111
{
112+
id: 'due_today',
103113
title: 'Due Today',
104114
type: 'table',
105115
object: 'task',

0 commit comments

Comments
 (0)