데이터 저장 설정 개선: INSERT가 아닌 액션에 대한 실행조건 필수 검증 추가 및 DELETE 액션에 대한 필드 매핑 및 데이터 분할 설정 생략 로직 구현. 조건 미비 시 사용자 안내 메시지 추가.

This commit is contained in:
hyeonsu
2025-09-18 13:26:42 +09:00
parent 8bfb269446
commit cbd54316cf
4 changed files with 203 additions and 27 deletions

View File

@@ -54,7 +54,10 @@ export const ActionFieldMappings: React.FC<ActionFieldMappingsProps> = ({
return (
<div className="mt-3">
<div className="mb-2 flex items-center justify-between">
<Label className="text-xs font-medium"> </Label>
<div className="flex items-center gap-2">
<Label className="text-xs font-medium"> </Label>
<span className="text-xs text-red-600">()</span>
</div>
<Button size="sm" variant="outline" onClick={addFieldMapping} className="h-6 text-xs">
<Plus className="mr-1 h-2 w-2" />
@@ -208,6 +211,22 @@ export const ActionFieldMappings: React.FC<ActionFieldMappingsProps> = ({
</div>
</div>
))}
{/* 필드 매핑이 없을 때 안내 메시지 */}
{action.fieldMappings.length === 0 && (
<div className="rounded border border-red-200 bg-red-50 p-3 text-xs text-red-700">
<div className="flex items-start gap-2">
<span className="text-red-500"></span>
<div>
<div className="font-medium"> </div>
<div className="mt-1">
{action.actionType.toUpperCase()}
.
</div>
</div>
</div>
</div>
)}
</div>
</div>
);