MAESTRO: fix 73+ type errors in renderer hooks and components

Major type fixes:
- useSettings.ts: Add type assertions for settings.get() return values
- global.d.ts: Fix playbooks API types (maxLoops, branchNameTemplate, etc.)
- global.d.ts: Fix logger API to use proper log level union type
- useAgentExecution.ts: Simplify ref type definitions
- useExpandedSet.ts: Fix Set iteration type issues
- useTemplateAutocomplete.ts: Cast refs array properly

Component fixes:
- Fix ringColor CSS property -> use --tw-ring-color CSS variable (11 files)
- Fix Lucide icon title prop -> wrap icons in span with title
- Fix confetti shapes type in FirstRunCelebration and StandingOvation
- Fix nullable costUsd checks in AgentSessionsBrowser, SessionListItem
- Fix isDuplicate boolean coercion in AutoRunDocumentSelector
- Add lastAcknowledgedBadgeLevel to PlaygroundPanel mock stats
- Make GitLogEntry additions/deletions optional to match IPC
- Fix listDocuments -> listDocs API call in DirectorySelectionScreen

Reduces lint errors from 102 to 29.
This commit is contained in:
Pedram Amini
2025-12-20 09:24:48 -06:00
parent e2347a52d1
commit 263eebf09c
23 changed files with 110 additions and 104 deletions

View File

@@ -204,8 +204,8 @@ function Tab({
marginBottom: isActive ? '-1px' : '0',
// Slight z-index for active tab to cover border properly
zIndex: isActive ? 1 : 0,
ringColor: isDragOver ? theme.colors.accent : 'transparent'
}}
'--tw-ring-color': isDragOver ? theme.colors.accent : 'transparent'
} as React.CSSProperties}
onClick={onSelect}
onMouseDown={handleMouseDown}
onMouseEnter={handleMouseEnter}
@@ -244,11 +244,12 @@ function Tab({
{/* Draft indicator - pencil icon for tabs with unsent input or staged images */}
{hasDraft && (
<Pencil
className="w-3 h-3 shrink-0"
style={{ color: theme.colors.warning }}
title="Has draft message"
/>
<span title="Has draft message">
<Pencil
className="w-3 h-3 shrink-0"
style={{ color: theme.colors.warning }}
/>
</span>
)}
{/* Shortcut hint badge - shows tab number for Cmd+1-9 navigation */}