feat: add createAuditLog endpoint and integrate audit logging for screen copy operations

- Implemented a new endpoint for creating audit logs directly from the frontend, allowing for detailed tracking of actions related to screen copying.
- Enhanced the existing screen management functionality by removing redundant audit logging within the copy operations and centralizing it through the new createAuditLog endpoint.
- Updated the frontend to log group copy actions, capturing relevant details such as resource type, resource ID, and changes made during the operation.

Made-with: Cursor
This commit is contained in:
kjs
2026-03-12 10:41:57 +09:00
parent 014979bebf
commit f65b57410c
7 changed files with 98 additions and 68 deletions

View File

@@ -720,29 +720,29 @@ export const SplitPanelLayoutComponent: React.FC<SplitPanelLayoutComponentProps>
}, [leftData, leftGroupSumConfig]);
// 컴포넌트 스타일
// height 처리: 이미 px 단위면 그대로, 숫자면 px 추가
// height: component.size?.height 우선, 없으면 component.style?.height, 기본 600px
const getHeightValue = () => {
const sizeH = component.size?.height;
if (sizeH && typeof sizeH === "number" && sizeH > 0) return `${sizeH}px`;
const height = component.style?.height;
if (!height) return "600px";
if (typeof height === "string") return height; // 이미 '540px' 형태
return `${height}px`; // 숫자면 px 추가
if (typeof height === "string") return height;
return `${height}px`;
};
const componentStyle: React.CSSProperties = isDesignMode
? {
position: "absolute",
left: `${component.style?.positionX || 0}px`,
top: `${component.style?.positionY || 0}px`,
width: "100%",
height: getHeightValue(),
zIndex: component.style?.positionZ || 1,
height: "100%",
minHeight: getHeightValue(),
cursor: "pointer",
border: isSelected ? "2px solid #3b82f6" : "1px solid #e5e7eb",
}
: {
position: "relative",
width: "100%",
height: getHeightValue(),
height: "100%",
minHeight: getHeightValue(),
};
// 계층 구조 빌드 함수 (트리 구조 유지)