-
Notifications
You must be signed in to change notification settings - Fork 2
Fix TypeScript build errors in console app and CRM example #378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,47 +85,43 @@ export default defineStack({ | |
| // --- KPI Row --- | ||
| { | ||
| type: 'metric', | ||
| component: { | ||
| type: 'metric', | ||
| layout: { x: 0, y: 0, w: 1, h: 1 }, | ||
| options: { | ||
| label: 'Total Revenue', | ||
| value: '$1,245,000', | ||
| trend: { value: 12.5, direction: 'up', label: 'vs last month' }, | ||
| icon: 'DollarSign' | ||
| }, | ||
| layout: { x: 0, y: 0, w: 1, h: 1 } | ||
| } | ||
|
Comment on lines
86
to
+94
|
||
| }, | ||
| { | ||
| type: 'metric', | ||
| component: { | ||
| type: 'metric', | ||
| layout: { x: 1, y: 0, w: 1, h: 1 }, | ||
| options: { | ||
| label: 'Active Deals', | ||
| value: '45', | ||
| trend: { value: 2.1, direction: 'down', label: 'vs last month' }, | ||
| icon: 'Briefcase' | ||
| }, | ||
| layout: { x: 1, y: 0, w: 1, h: 1 } | ||
| } | ||
|
Comment on lines
96
to
+104
|
||
| }, | ||
| { | ||
| type: 'metric', | ||
| component: { | ||
| type: 'metric', | ||
| layout: { x: 2, y: 0, w: 1, h: 1 }, | ||
| options: { | ||
| label: 'Win Rate', | ||
| value: '68%', | ||
| trend: { value: 4.3, direction: 'up', label: 'vs last month' }, | ||
| icon: 'Trophy' | ||
| }, | ||
| layout: { x: 2, y: 0, w: 1, h: 1 } | ||
| } | ||
|
Comment on lines
106
to
+114
|
||
| }, | ||
| { | ||
| type: 'metric', | ||
| component: { | ||
| type: 'metric', | ||
| layout: { x: 3, y: 0, w: 1, h: 1 }, | ||
| options: { | ||
| label: 'Avg Deal Size', | ||
| value: '$24,000', | ||
| trend: { value: 1.2, direction: 'up', label: 'vs last month' }, | ||
| icon: 'BarChart3' | ||
| }, | ||
| layout: { x: 3, y: 0, w: 1, h: 1 } | ||
| } | ||
|
Comment on lines
116
to
+124
|
||
| }, | ||
|
|
||
| // --- Row 2: Charts --- | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The schema should use the ObjectGanttSchema type instead of ObjectGridSchema with a gantt config. According to packages/types/src/objectql.ts:722-736, there's a dedicated ObjectGanttSchema interface with type: 'object-gantt' that accepts gantt-specific fields (startDateField, endDateField, titleField, progressField, dependencyField) directly on the schema, not in a nested 'gantt' object. The use of 'as any' is masking this type mismatch and violates Rule #6 (Type Safety over Magic). Change the type to 'object-gantt' and move the gantt config properties to the root level of the schema object.