From f0c3acf139e112ae4c3fda78dbc1b38f4c91ade7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 15:48:45 +0000 Subject: [PATCH 1/4] Initial plan From 6d47722e1f507d249c607d4701caf19a6df4b91a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 15:59:56 +0000 Subject: [PATCH 2/4] Fix lint errors and test failures Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- packages/plugin-kanban/src/ObjectKanban.tsx | 2 +- packages/plugin-kanban/vitest.config.ts | 1 - packages/plugin-timeline/src/ObjectTimeline.test.tsx | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/plugin-kanban/src/ObjectKanban.tsx b/packages/plugin-kanban/src/ObjectKanban.tsx index a89c4867..2e451336 100644 --- a/packages/plugin-kanban/src/ObjectKanban.tsx +++ b/packages/plugin-kanban/src/ObjectKanban.tsx @@ -101,7 +101,7 @@ export const ObjectKanban: React.FC = ({ if (!Array.isArray(rawData)) return []; // Support cardTitle property from schema (passed by ObjectView) - // @ts-ignore - cardTitle might not be in KanbanSchema type definition yet + // @ts-expect-error - cardTitle might not be in KanbanSchema type definition yet let titleField = schema.cardTitle || (schema as any).titleField; // Fallback: Try to infer from object definition diff --git a/packages/plugin-kanban/vitest.config.ts b/packages/plugin-kanban/vitest.config.ts index 9da57d02..622c8a27 100644 --- a/packages/plugin-kanban/vitest.config.ts +++ b/packages/plugin-kanban/vitest.config.ts @@ -1,7 +1,6 @@ /// import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; -import path from 'path'; export default defineConfig({ plugins: [react()], diff --git a/packages/plugin-timeline/src/ObjectTimeline.test.tsx b/packages/plugin-timeline/src/ObjectTimeline.test.tsx index dcbcc32b..27d853d0 100644 --- a/packages/plugin-timeline/src/ObjectTimeline.test.tsx +++ b/packages/plugin-timeline/src/ObjectTimeline.test.tsx @@ -62,6 +62,8 @@ describe('ObjectTimeline', () => { expect(mockDataSource.find).toHaveBeenCalled(); }); - expect(screen.getByText('Event 1')).toBeDefined(); + await waitFor(() => { + expect(screen.getByText('Event 1')).toBeDefined(); + }); }); }); From 796b8582f02028c3188a2008719e775a13075e03 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 16:02:41 +0000 Subject: [PATCH 3/4] Fix remaining @ts-ignore lint errors in plugin-calendar and components Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- packages/components/src/renderers/complex/data-table.tsx | 6 +++--- packages/plugin-calendar/src/CalendarView.test.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/components/src/renderers/complex/data-table.tsx b/packages/components/src/renderers/complex/data-table.tsx index 85435362..037df217 100644 --- a/packages/components/src/renderers/complex/data-table.tsx +++ b/packages/components/src/renderers/complex/data-table.tsx @@ -491,18 +491,18 @@ const DataTableRenderer = ({ schema }: { schema: DataTableSchema }) => { key={rowId} data-state={isSelected ? 'selected' : undefined} className={cn( - // @ts-ignore + // @ts-expect-error - onRowClick might not be in schema type definition schema.onRowClick && "cursor-pointer" )} onClick={(e) => { - // @ts-ignore + // @ts-expect-error - onRowClick might not be in schema type definition if (schema.onRowClick && !e.defaultPrevented) { // Simple heuristic to avoid triggering on interactive elements if they didn't stop propagation const target = e.target as HTMLElement; if (target.closest('button') || target.closest('[role="checkbox"]') || target.closest('a')) { return; } - // @ts-ignore + // @ts-expect-error - onRowClick might not be in schema type definition schema.onRowClick(row); } }} diff --git a/packages/plugin-calendar/src/CalendarView.test.tsx b/packages/plugin-calendar/src/CalendarView.test.tsx index e2fc4ebd..a554b189 100644 --- a/packages/plugin-calendar/src/CalendarView.test.tsx +++ b/packages/plugin-calendar/src/CalendarView.test.tsx @@ -26,7 +26,7 @@ if (!global.PointerEvent) { this.shiftKey = props.shiftKey || false; } } - // @ts-ignore + // @ts-expect-error - PointerEvent polyfill for testing global.PointerEvent = PointerEvent as any; } From 067c175c55de0619e22059ae110a994f6a11a283 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 16:37:38 +0000 Subject: [PATCH 4/4] Remove incorrect @ts-expect-error directive from ObjectKanban.tsx The @ts-expect-error directive was unnecessary since KanbanSchema already defines cardTitle property. This was causing a TypeScript compile error for unused directive. Updated comment to clarify this is a backwards compatibility fallback. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- packages/plugin-kanban/src/ObjectKanban.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-kanban/src/ObjectKanban.tsx b/packages/plugin-kanban/src/ObjectKanban.tsx index 2e451336..6fb6f595 100644 --- a/packages/plugin-kanban/src/ObjectKanban.tsx +++ b/packages/plugin-kanban/src/ObjectKanban.tsx @@ -101,7 +101,7 @@ export const ObjectKanban: React.FC = ({ if (!Array.isArray(rawData)) return []; // Support cardTitle property from schema (passed by ObjectView) - // @ts-expect-error - cardTitle might not be in KanbanSchema type definition yet + // Fallback to legacy titleField for backwards compatibility let titleField = schema.cardTitle || (schema as any).titleField; // Fallback: Try to infer from object definition