Louis Knight-Webb
b35708e7b9
## ✅ Batch D Complete (#1313)
Successfully fixed all low-priority `any` types and catch blocks across 7 files:
### Changes Made:
**1. [lib/types.ts](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3da6-batch-d-fix-low/frontend/src/lib/types.ts)**
- Added imports: `NormalizedEntry`, `ExecutionProcessStatus`
- `entry: any` → `entry: NormalizedEntry`
- `process: any` → `process: ExecutionProcess`
- `processStatus: string` → `processStatus: ExecutionProcessStatus`
**2. [lib/modals.ts](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3da6-batch-d-fix-low/frontend/src/lib/modals.ts)**
- Removed `any[]` and `component as any`
- Properly typed function arguments with `ShowArgs<P>`
- Used `React.FC<ComponentProps<P>>` for NiceModal compatibility
**3. [EditBranchNameDialog.tsx](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3da6-batch-d-fix-low/frontend/src/components/dialogs/tasks/EditBranchNameDialog.tsx)**
- `catch (err: any)` → `catch (err: unknown)`
- Used `getErrorMessage(err)` helper
**4. [TagEditDialog.tsx](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3da6-batch-d-fix-low/frontend/src/components/dialogs/tasks/TagEditDialog.tsx)**
- `catch (err: any)` → `catch (err: unknown)`
- Used `getErrorMessage(err)` helper
**5. [GhCliSetupDialog.tsx](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3da6-batch-d-fix-low/frontend/src/components/dialogs/auth/GhCliSetupDialog.tsx)**
- `catch (err: any)` → `catch (err: unknown)`
- Added safe type narrowing with `isGhCliSetupError` guard
- Used `getErrorMessage(err)` helper
**6. [ImageUploadSection.tsx](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3da6-batch-d-fix-low/frontend/src/components/ui/ImageUploadSection.tsx)**
- `catch (error: any)` → `catch (error: unknown)`
- Used `instanceof Error` check
**7. [McpSettings.tsx](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/3da6-batch-d-fix-low/frontend/src/pages/settings/McpSettings.tsx)**
- `catch (err: any)` → `catch (err: unknown)`
- `Record<string, any>` → `Record<string, unknown>` for preconfigured/meta/servers
- Added safe narrowing for meta access
All type checks pass ✓
All formatting complete ✓
2025-11-17 22:54:11 +00:00
..
2025-11-17 22:19:44 +00:00
2025-11-17 15:21:36 +00:00
2025-09-25 14:48:12 +01:00
2025-09-10 10:39:45 +01:00
2025-11-17 22:54:11 +00:00
2025-11-17 18:23:23 +00:00
2025-10-22 10:43:32 +01:00
2025-11-17 22:54:11 +00:00
2025-08-08 13:53:27 +01:00