@@ -17,7 +17,7 @@ export const ExecutiveDashboard = {
1717 object : 'opportunity' ,
1818 valueField : 'amount' ,
1919 aggregate : 'sum' as const ,
20- filter : [ ' stage' , '!=' , 'closed_lost' ] ,
20+ filter : { stage : { $ne : 'closed_lost' } } ,
2121 layout : { x : 0 , y : 0 , w : 3 , h : 2 }
2222 } ,
2323 {
@@ -27,7 +27,7 @@ export const ExecutiveDashboard = {
2727 object : 'opportunity' ,
2828 valueField : 'amount' ,
2929 aggregate : 'sum' as const ,
30- filter : [ ' stage' , '=' , ' closed_won'] ,
30+ filter : { stage : ' closed_won' } ,
3131 layout : { x : 3 , y : 0 , w : 3 , h : 2 }
3232 } ,
3333 {
@@ -36,7 +36,7 @@ export const ExecutiveDashboard = {
3636 type : 'metric' as const ,
3737 object : 'case' ,
3838 aggregate : 'count' as const ,
39- filter : [ ' status' , '!=' , 'closed' ] ,
39+ filter : { status : { $ne : 'closed' } } ,
4040 layout : { x : 6 , y : 0 , w : 3 , h : 2 }
4141 } ,
4242 {
@@ -45,7 +45,7 @@ export const ExecutiveDashboard = {
4545 type : 'metric' as const ,
4646 object : 'employee' ,
4747 aggregate : 'count' as const ,
48- filter : [ ' employment_status' , '=' , ' active'] ,
48+ filter : { employment_status : ' active' } ,
4949 layout : { x : 9 , y : 0 , w : 3 , h : 2 }
5050 } ,
5151 {
@@ -66,7 +66,7 @@ export const ExecutiveDashboard = {
6666 categoryField : 'close_date' ,
6767 valueField : 'amount' ,
6868 aggregate : 'sum' as const ,
69- filter : [ ' stage' , '=' , ' closed_won'] ,
69+ filter : { stage : ' closed_won' } ,
7070 layout : { x : 6 , y : 2 , w : 6 , h : 4 }
7171 } ,
7272 {
@@ -84,8 +84,11 @@ export const ExecutiveDashboard = {
8484 type : 'table' as const ,
8585 aggregate : 'count' as const ,
8686 object : 'opportunity' ,
87- filter : [ 'stage' , '!=' , 'closed_lost' ] ,
88- layout : { x : 6 , y : 6 , w : 6 , h : 4 }
87+ filter : { stage : { $ne : 'closed_lost' } } ,
88+ layout : { x : 6 , y : 6 , w : 6 , h : 4 } ,
89+ options : {
90+ columns : [ 'name' , 'amount' , 'stage' , 'close_date' ]
91+ }
8992 }
9093 ]
9194} satisfies Dashboard ;
0 commit comments