[agent-pipeline] pipe-20260330021427-v9fb round-1
This commit is contained in:
@@ -192,7 +192,7 @@ interface ColumnInfo {
|
||||
label?: string;
|
||||
dataType?: string;
|
||||
inputType?: string;
|
||||
webType?: string;
|
||||
web_type?: string;
|
||||
categoryCode?: string;
|
||||
}
|
||||
|
||||
@@ -290,7 +290,7 @@ export const V2AggregationWidgetConfigPanel: React.FC<V2AggregationWidgetConfigP
|
||||
// 숫자형 컬럼만
|
||||
const numericColumns = useMemo(() => {
|
||||
return columns.filter((col) => {
|
||||
const inputType = (col.inputType || col.webType || "").toLowerCase();
|
||||
const inputType = (col.inputType || col.web_type || "").toLowerCase();
|
||||
return inputType === "number" || inputType === "decimal" || inputType === "integer" ||
|
||||
inputType === "float" || inputType === "currency" || inputType === "percent";
|
||||
});
|
||||
@@ -337,12 +337,12 @@ export const V2AggregationWidgetConfigPanel: React.FC<V2AggregationWidgetConfigP
|
||||
label: col.displayName || col.columnLabel || col.column_label || col.label || col.columnName || col.column_name,
|
||||
dataType: col.dataType || col.data_type,
|
||||
inputType: col.inputType || col.input_type,
|
||||
webType: col.webType || col.web_type,
|
||||
web_type: col.webType || col.web_type,
|
||||
categoryCode: col.categoryCode || col.category_code,
|
||||
}));
|
||||
setColumns(mapped);
|
||||
const categoryCols = mapped.filter(
|
||||
(c: ColumnInfo) => c.inputType === "category" || c.webType === "category"
|
||||
(c: ColumnInfo) => c.inputType === "category" || c.web_type === "category"
|
||||
);
|
||||
if (categoryCols.length > 0) loadCategoryOptions(categoryCols);
|
||||
} else {
|
||||
@@ -428,7 +428,7 @@ export const V2AggregationWidgetConfigPanel: React.FC<V2AggregationWidgetConfigP
|
||||
|
||||
const isCategoryColumn = useCallback((columnName: string) => {
|
||||
const col = columns.find((c) => c.columnName === columnName);
|
||||
return col?.inputType === "category" || col?.webType === "category";
|
||||
return col?.inputType === "category" || col?.web_type === "category";
|
||||
}, [columns]);
|
||||
|
||||
// ─── 집계 항목 CRUD ───
|
||||
@@ -896,7 +896,7 @@ export const V2AggregationWidgetConfigPanel: React.FC<V2AggregationWidgetConfigP
|
||||
onValueChange={(value) => {
|
||||
updateFilter(filter.id, { columnName: value, staticValue: "" });
|
||||
const col = columns.find((c) => c.columnName === value);
|
||||
if (col && (col.inputType === "category" || col.webType === "category")) {
|
||||
if (col && (col.inputType === "category" || col.web_type === "category")) {
|
||||
loadCategoryOptions([col]);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user