Skip to content

Commit 761a406

Browse files
committed
fix(tui): resolve lint errors in session dashboard — remove unused imports and prefix unused params
1 parent 3e20bb6 commit 761a406

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

apps/mcp-server/src/tui/components/session-dashboard.pure.spec.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ import {
1212
renderSessionDashboard,
1313
formatDurationMs,
1414
} from './session-dashboard.pure';
15-
import type {
16-
ToolCallRecord,
17-
TddStep,
18-
DashboardNode,
19-
FileChangeStats,
20-
ModeTransition,
21-
} from '../dashboard-types';
15+
import type { ToolCallRecord, TddStep, DashboardNode, ModeTransition } from '../dashboard-types';
2216

2317
function makeToolCall(name: string, timestamp = 1000): ToolCallRecord {
2418
return { agentId: 'a1', toolName: name, timestamp, status: 'completed' };

apps/mcp-server/src/tui/components/session-dashboard.pure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export function formatDurationMs(ms: number): string {
146146
/**
147147
* Render agent timeline as text lines.
148148
*/
149-
export function renderAgentTimeline(entries: AgentTimelineEntry[], width: number): string[] {
149+
export function renderAgentTimeline(entries: AgentTimelineEntry[], _width: number): string[] {
150150
if (entries.length === 0) return [' (no agents)'];
151151

152152
const nameWidth = Math.min(20, Math.max(...entries.map(e => e.name.length)));

apps/mcp-server/src/tui/hooks/use-dashboard-state.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type {
88
ToolCallRecord,
99
ActivitySample,
1010
ModeTransition,
11-
FileChangeStats,
1211
} from '../dashboard-types';
1312
import type { TuiEventBus } from '../events';
1413
import {

0 commit comments

Comments
 (0)