diff --git a/frontend/components/admin/dashboard/ChartConfigPanel.tsx b/frontend/components/admin/dashboard/ChartConfigPanel.tsx index 59f0822a..04dd2d0e 100644 --- a/frontend/components/admin/dashboard/ChartConfigPanel.tsx +++ b/frontend/components/admin/dashboard/ChartConfigPanel.tsx @@ -5,7 +5,6 @@ import { ChartConfig, QueryResult } from "./types"; import { Input } from "@/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Label } from "@/components/ui/label"; -import { Card } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Alert, AlertDescription } from "@/components/ui/alert"; import { Checkbox } from "@/components/ui/checkbox"; @@ -97,32 +96,17 @@ export function ChartConfigPanel({ // (SELECT에 없어도 WHERE 절에 사용 가능) setDateColumns(schema.dateColumns); }) - .catch((error) => { - // console.error("❌ 테이블 스키마 조회 실패:", error); + .catch(() => { // 실패 시 빈 배열 (날짜 필터 비활성화) setDateColumns([]); }); }, [query, queryResult, dataSourceType]); return ( -
+
{/* 데이터 필드 매핑 */} {queryResult && ( <> - {/* API 응답 미리보기 */} - {queryResult.rows && queryResult.rows.length > 0 && ( - -
- -

API 응답 데이터 미리보기

-
-
-
총 {queryResult.totalRows}개 데이터 중 첫 번째 행:
-
{JSON.stringify(sampleData, null, 2)}
-
-
- )} - {/* 복잡한 타입 경고 */} {complexColumns.length > 0 && ( @@ -150,26 +134,27 @@ export function ChartConfigPanel({ )} {/* 차트 제목 */} -
- +
+ updateConfig({ title: e.target.value })} placeholder="차트 제목을 입력하세요" + className="h-8 text-xs" />
{/* X축 설정 */} -
-