Skip to content

Commit b155d9c

Browse files
committed
fix(gui): resolve TypeScript errors in testing and debug components
- TestExplorer.tsx: Remove unused batch import, export getStatusColor/StatusFilterButton, add collapseAll button, fix Set<string> typing - CoverageBars.tsx: Remove unused onCleanup, fix SVG stroke-dasharray/dashoffset string types, prefix unused variables with underscore - CoverageView.tsx: Remove unused imports (batch, onMount, onCleanup, CoverageStats, CoverageChange), prefix tree-related variables for future use, fix Badge variant/size props - TestDecorations.tsx: Remove unused For/Show/Icon imports, fix glyphClass type annotation - TestCoverageOverlay.tsx: Remove unused LineCoverageStatus import, use void expression - TestOutputPanel.tsx: Remove unused onCleanup/tokens imports, fix testId duplicate property - DebugHoverWidget.tsx: Remove unused JSX/batch/isExpandable imports, prefix debug variable - ExceptionWidget.tsx: Remove unused ExceptionWidgetPosition import - BreakpointsView.tsx: Remove unused createMemo import These changes address TypeScript compilation warnings (TS6133/TS6196) and type errors in the testing panel and debug widget components.
1 parent ef585f5 commit b155d9c

File tree

9 files changed

+3409
-3402
lines changed

9 files changed

+3409
-3402
lines changed

cortex-gui/src/components/debug/DebugHoverWidget.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,17 @@ import {
2020
createSignal,
2121
createEffect,
2222
onCleanup,
23-
JSX,
2423
createMemo,
25-
batch,
2624
} from "solid-js";
2725
import { Portal } from "solid-js/web";
2826
import { useDebug, Variable } from "@/context/DebugContext";
2927
import { Icon } from "../ui/Icon";
3028
import {
31-
DebugHoverResult,
3229
DebugHoverState,
3330
SafeTriangle,
3431
calculateSafeTriangle,
3532
isPointInTriangle,
3633
formatDebugValue,
37-
isExpandable,
3834
getVariableIcon,
3935
getValueForCopy,
4036
calculateHoverPosition,
@@ -340,7 +336,8 @@ function TreeNode(props: TreeNodeProps) {
340336
// ============================================================================
341337

342338
export function DebugHoverWidget(props: DebugHoverWidgetProps) {
343-
const debug = useDebug();
339+
// Debug context available for future features
340+
const _debug = useDebug();
344341
let containerRef: HTMLDivElement | undefined;
345342
let safeTriangle: SafeTriangle | null = null;
346343
let closeTimeout: ReturnType<typeof setTimeout> | null = null;

cortex-gui/src/components/debug/ExceptionWidget.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { useDebug } from "../../context/DebugContext";
2222
import type {
2323
ExceptionInfo,
2424
ExceptionDetails,
25-
ExceptionWidgetPosition,
2625
} from "../../types/debug";
2726

2827
// ============================================================================

cortex-gui/src/components/debugger/BreakpointsView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Show, For, createSignal, createMemo } from "solid-js";
1+
import { Show, For, createSignal } from "solid-js";
22
import { useDebug, Breakpoint, DataBreakpoint, DataBreakpointAccessType, ExceptionBreakpoint, BreakpointGroup, createBreakpointId } from "@/context/DebugContext";
33
import { useEditor } from "@/context/EditorContext";
44
import { Icon } from "../ui/Icon";

0 commit comments

Comments
 (0)