update vercel sandbox support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user