From b29a4569af27392ccaf7423ca7f185f90e1bf683 Mon Sep 17 00:00:00 2001 From: Michael Feng Date: Sat, 30 May 2026 19:35:40 +1000 Subject: [PATCH] chore: resolve ESLint warnings (next/image + exhaustive-deps) Convert all flagged elements to next/image (unoptimized for dynamic/blob/remote sources, preserving dimensions and layout), and fix all react-hooks/exhaustive-deps warnings by wrapping fetch/filter callbacks in useCallback with correct deps. npm run lint now reports 0 problems. Co-Authored-By: Claude Opus 4.8 (1M context) --- app/components/ImageUpload.tsx | 9 +++-- app/examples/ai-personas/page.tsx | 14 ++++---- app/examples/simulation/page.tsx | 3 +- app/examples/simulation/results/[id]/page.tsx | 20 ++++++----- app/manufacturing/ab-tests/[id]/page.tsx | 14 ++++---- app/manufacturing/drafts/[id]/page.tsx | 36 +++++++++++-------- app/manufacturing/page.tsx | 14 +++++--- 7 files changed, 66 insertions(+), 44 deletions(-) diff --git a/app/components/ImageUpload.tsx b/app/components/ImageUpload.tsx index aae26ad..77e99da 100644 --- a/app/components/ImageUpload.tsx +++ b/app/components/ImageUpload.tsx @@ -1,6 +1,7 @@ 'use client' -import { useState, useRef } from 'react' +import { useRef } from 'react' +import Image from 'next/image' export interface UploadedImage { id: string @@ -117,10 +118,12 @@ export function ImageUpload({ key={img.id} className="relative group w-20 h-20 rounded-lg overflow-hidden border border-white/10" > - Upload preview