@@ -4,7 +4,7 @@ import { ObjectGrid } from '@object-ui/plugin-grid';
44import { ObjectKanban } from '@object-ui/plugin-kanban' ;
55import { ObjectCalendar } from '@object-ui/plugin-calendar' ;
66import { ObjectGantt } from '@object-ui/plugin-gantt' ;
7- import { Button , Tabs , TabsList , TabsTrigger } from '@object-ui/components' ;
7+ import { Button } from '@object-ui/components' ;
88import { Plus , Calendar as CalendarIcon , Kanban as KanbanIcon , Table as TableIcon , AlignLeft } from 'lucide-react' ;
99
1010export function ObjectView ( { dataSource, objects, onEdit } : any ) {
@@ -122,19 +122,19 @@ export function ObjectView({ dataSource, objects, onEdit }: any) {
122122 key = { key }
123123 { ...commonProps }
124124 schema = { {
125- type : 'gantt ' ,
125+ type : 'object-grid ' ,
126126 objectName : objectDef . name ,
127- filter : {
128- gantt : {
129- startDateField : activeView . startDateField || 'start_date' ,
130- endDateField : activeView . endDateField || 'end_date ' ,
131- titleField : activeView . titleField || 'name ' ,
132- progressField : activeView . progressField || 'progress ' ,
133- dependenciesField : activeView . dependenciesField ,
134- colorField : activeView . colorField ,
135- }
127+ // Gantt config is read by ObjectGantt via getGanttConfig helper
128+ // TypeScript workaround: gantt property not in ObjectGridSchema but supported by implementation
129+ gantt : {
130+ startDateField : activeView . startDateField || 'start_date ' ,
131+ endDateField : activeView . endDateField || 'end_date ' ,
132+ titleField : activeView . titleField || 'name ' ,
133+ progressField : activeView . progressField || 'progress' ,
134+ dependenciesField : activeView . dependenciesField ,
135+ colorField : activeView . colorField ,
136136 }
137- } }
137+ } as any }
138138 { ...interactionProps }
139139 />
140140 ) ;
0 commit comments