2 Commits

Author SHA1 Message Date
Jordan Ramos
232eedce70 Remove unused icon imports to fix ESLint warning count 2026-05-14 10:00:51 -06:00
Jordan Ramos
0ca2fe99e9 Remove unused imports to satisfy ESLint max-warnings threshold 2026-05-14 10:00:00 -06:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import React, { useState, useEffect, useCallback } from 'react';
import { Upload, Building2, ChevronLeft, Loader, AlertCircle, TrendingUp, Target, ShieldAlert, BarChart3 } from 'lucide-react';
import { Upload, Building2, ChevronLeft, Loader, AlertCircle, BarChart3 } from 'lucide-react';
import { useAuth } from '../../contexts/AuthContext';
import { PieChart, Pie, Cell, ComposedChart, Bar, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ReferenceLine, ResponsiveContainer } from 'recharts';
import MultiVerticalUploadModal from './MultiVerticalUploadModal';
@@ -210,7 +210,7 @@ function VerticalDetailView({ vertical, onBack, onSelectMetric }) {
const [categories, setCategories] = useState(null);
const [burndown, setBurndown] = useState(null);
const [loading, setLoading] = useState(true);
// ⚠️ CONVENTION: No error state — catch silently swallows errors without displaying them to the user
// ⚠️ CONVENTION: Missing error state — .catch() silently swallows errors without displaying them to the user. Add an error state and render an error message (see main CCPMetricsPage pattern).
useEffect(() => {
setLoading(true);
@@ -356,7 +356,7 @@ function VerticalDetailView({ vertical, onBack, onSelectMetric }) {
function MetricDeviceList({ vertical, metricId, onBack }) {
const [devices, setDevices] = useState(null);
const [loading, setLoading] = useState(true);
// ⚠️ CONVENTION: No error state — catch silently swallows errors without displaying them to the user
// ⚠️ CONVENTION: Missing error state — .catch() silently swallows errors without displaying them to the user. Add an error state and render an error message (see main CCPMetricsPage pattern).
useEffect(() => {
setLoading(true);

View File

@@ -1,5 +1,5 @@
import React, { useState, useRef } from 'react';
import { X, Upload, FileSpreadsheet, Loader, CheckCircle, AlertCircle, Trash2, ChevronDown, ChevronRight } from 'lucide-react';
import { X, Upload, FileSpreadsheet, Loader, CheckCircle, AlertCircle, Trash2 } from 'lucide-react';
const API_BASE = process.env.REACT_APP_API_BASE || 'http://localhost:3001/api';
const PURPLE = '#A78BFA';