update vercel sandbox support

This commit is contained in:
Developers Digest
2025-09-08 15:15:18 -04:00
parent 9d71ae77e7
commit cb1b0a9f64
34 changed files with 1001 additions and 588 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export default function HMRErrorDetector({ iframeRef, onErrorDetected }: HMRErro
}
}
}
} catch (error) {
} catch {
// Cross-origin errors are expected, ignore them
}
};
+1 -1
View File
@@ -17,7 +17,7 @@ export default function HeroInput({
placeholder = "Describe what you want to build...",
className = ""
}: HeroInputProps) {
const [isFocused, setIsFocused] = useState(false);
// const [isFocused, setIsFocused] = useState(false); // Reserved for future focus effects
const textareaRef = useRef<HTMLTextAreaElement>(null);
// Reset textarea height when value changes (especially when cleared)
@@ -6,10 +6,10 @@ import {
FileText,
Code,
Shield,
Search,
// Search, // Not used in current implementation
Zap,
Database,
Lock,
// Lock, // Not used in current implementation
CheckCircle2,
XCircle,
Loader2,
@@ -54,7 +54,7 @@ export default function ControlPanel({
analysisData,
onReset,
}: ControlPanelProps) {
const [showAIAnalysis, setShowAIAnalysis] = useState(false);
// const [showAIAnalysis, setShowAIAnalysis] = useState(false); // Reserved for AI analysis feature
const [aiInsights, setAiInsights] = useState<CheckItem[]>([]);
const [isAnalyzingAI, setIsAnalyzingAI] = useState(false);
const [combinedChecks, setCombinedChecks] = useState<CheckItem[]>([]);
@@ -298,6 +298,7 @@ export default function ControlPanel({
return () => clearInterval(checkInterval);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isAnalyzing, showResults, analysisData]);
useEffect(() => {
@@ -341,6 +342,8 @@ export default function ControlPanel({
}
};
// Utility function available but not used in current render
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const getScoreColor = (score: number) => {
if (score >= 80) return "text-accent-black";
if (score >= 60) return "text-accent-black";
@@ -1,7 +1,8 @@
"use client";
import { motion, AnimatePresence } from "framer-motion";
import { Check, X, Zap, FileText, Shield, Globe, Code, Sparkles, AlertCircle } from "lucide-react";
import { Check, X, FileText, Globe, Code, Sparkles, AlertCircle } from "lucide-react";
// import { Zap, Shield } from "lucide-react"; // Reserved for future features
import { useEffect, useState } from "react";
interface InlineResultsProps {
@@ -35,7 +36,7 @@ export default function InlineResults({
isAnalyzing,
showResults,
analysisStep,
url,
url: _url, // URL prop available but not used in current implementation
onReset,
}: InlineResultsProps) {
const [displayScore, setDisplayScore] = useState(0);
@@ -27,7 +27,7 @@ export default function MetricBars({ metrics }: MetricBarsProps) {
return 'bg-heat-20';
};
const getBulletColor = (score: number) => {
const getBulletColor = (_score: number) => {
// Always use heat-100 for all bullets for consistency
return 'bg-heat-100';
};
@@ -1,7 +1,7 @@
"use client";
import { motion } from "framer-motion";
import { useEffect, useRef, useState } from "react";
import { useEffect, useState } from "react";
interface ScoreChartProps {
score: number;