Compare commits

4 Commits

Author SHA1 Message Date
gbpark f3c3087393 merge: gbpark-node → main (방재 화재 알람 데모 + SCADA 다중경고 dock 분할)
Build & Deploy to K8s / build-and-deploy (push) Failing after 6m29s
2026-05-06 22:52:59 +09:00
gbpark da77de58ac fix: SCADA 데모 다중 경고 모드에서 dock 잘림 해소 (emergency-stack)
Build & Deploy to K8s / build-and-deploy (push) Successful in 4m14s
- 메인 모달 + alarm-list-dock 을 .emergency-stack 으로 묶어 viewport 안에서
  flex 자동 분할 (어떤 해상도/줌에서도 dock 이 잘리지 않게)
- with-multi 진입 시 JS 가 stack 으로 동적 wrapping, 해제 시 원위치 복귀
- mini-modal 본문도 line-clamp 3 + min-height:0 로 길이 폭주 차단

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 22:48:37 +09:00
gbpark 59fbbd95fa feat: 방재 시스템 화재 알람 모니터링 데모 페이지 추가
Build & Deploy to K8s / build-and-deploy (push) Has been cancelled
- /fire-alarm 라우트에 invyone 브랜딩 적용된 모니터링 데모 추가
- CCTV 화면은 화재 감지 → 스프링쿨러 작동 2개 영상을 순차 재생
  (단일 합본 mp4 의 ended 이벤트 불안정 + 루프 이슈로 분리)
- v1 종료 시점에 자동 phase2 전환: 스프링쿨러/방화셔터 상태 활성화
- 정보 패널 스프링쿨러 상태 텍스트에 시안 글로우 펄스로 작동 표시
- 종료 검출 3중 방어 (timeupdate / ended / hard-stop timer)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 22:47:03 +09:00
johngreen d6cfa9973f merge: main → gbpark-node (혼합 모드 병렬 그루핑 UI)
Build & Deploy to K8s / build-and-deploy (push) Successful in 4m5s
2026-05-04 08:06:09 +09:00
7 changed files with 1941 additions and 8 deletions
+27
View File
@@ -0,0 +1,27 @@
"use client";
import { Suspense } from "react";
function FireAlarmIframe() {
return (
<iframe
src="/fire-alarm-demo/index.html"
title="INVYONE Fire Alarm Monitoring Demo"
style={{
width: "100%",
height: "calc(100vh - 60px)",
border: 0,
display: "block",
}}
/>
);
}
export default function FireAlarmDemoPage() {
return (
<Suspense fallback={null}>
<FireAlarmIframe />
</Suspense>
);
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,2 @@
file 'fire-1-detected.mp4'
file 'fire-2-suppressed.mp4'
@@ -479,6 +479,8 @@ body { display: flex; flex-direction: column; }
/* mini-modal — 메인 emergency-modal 의 컴팩트 버전 */
.alarm-mini-modal {
flex: 1;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
background: linear-gradient(180deg, #081326 0%, #050a18 100%);
@@ -548,8 +550,12 @@ body { display: flex; flex-direction: column; }
/* body — 알람 상세 */
.alarm-mini-modal .mini-message {
flex: 1;
min-height: 0;
padding: 10px 12px;
border-bottom: 1px solid #2a3f5a;
overflow: hidden;
display: flex;
flex-direction: column;
}
.alarm-mini-modal .mini-msg-label {
font-size: 10px;
@@ -557,11 +563,17 @@ body { display: flex; flex-direction: column; }
font-weight: 700;
margin-bottom: 4px;
letter-spacing: 0.5px;
flex-shrink: 0;
}
.alarm-mini-modal .mini-msg-text {
font-size: 12px;
color: #fff;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
min-height: 0;
}
.alarm-mini-modal.severity-medium .mini-msg-text { color: #cfd3d8; }
@@ -953,17 +965,47 @@ body.critical-alarm.map-open::before { display: none; }
max-height: 70vh;
height: auto;
}
/* 다중 경고 — with-map 과 같은 좌측 정렬 + dock 공간 확보 위해 max-height 압축 */
.emergency-modal-backdrop.with-multi .emergency-modal,
.emergency-modal-backdrop.with-multi.with-map .emergency-modal {
/* 다중 경고 — 모달 + dock 을 .emergency-stack 으로 묶어서 viewport 안에서 자동 분할
(어떤 해상도/줌에서도 dock 이 viewport 밖으로 잘리지 않도록 robust 하게) */
.emergency-stack {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 960px;
max-width: calc(100vw - 48px);
max-height: calc(100vh - 80px);
display: flex;
flex-direction: column;
gap: 14px;
z-index: 103;
}
.emergency-modal-backdrop.with-multi.with-map .emergency-stack {
left: calc(50% - 732px);
transform: translateY(-50%);
width: 960px;
}
.emergency-modal-backdrop.with-multi .emergency-modal,
.emergency-modal-backdrop.with-multi.with-map .emergency-modal {
position: static;
top: auto;
left: auto;
transform: none;
width: 100%;
max-width: none;
max-height: 62vh;
max-height: none;
height: auto;
flex: 1 1 auto;
min-height: 0;
}
.emergency-modal-backdrop.with-multi .alarm-list-dock {
position: static;
top: auto;
left: auto;
transform: none;
width: 100%;
max-width: none;
max-height: 32vh;
flex: 0 0 auto;
}
.emergency-modal {
width: min(960px, 92vw);
+22 -3
View File
@@ -639,9 +639,20 @@
const count = document.getElementById('alarm-list-count');
if (!dock || !rows || !count) return;
// 다중 모드일 때 메인 모달을 좌측 정렬 + 압축 크기로 고정 → dock 이 항상 그 아래 정렬
// 다중 모드 메인 모달 + dock 을 .emergency-stack 으로 묶어 viewport 안에서 자동 분할
const backdrop = document.getElementById('emergency-modal');
if (backdrop) backdrop.classList.add('with-multi');
if (backdrop) {
backdrop.classList.add('with-multi');
const modal = backdrop.querySelector('.emergency-modal');
let stack = backdrop.querySelector('.emergency-stack');
if (!stack) {
stack = document.createElement('div');
stack.className = 'emergency-stack';
}
if (modal) stack.appendChild(modal);
stack.appendChild(dock);
backdrop.appendChild(stack);
}
// CRITICAL 은 메인 모달이 이미 표시 → dock 에는 HIGH/MEDIUM 만 mini-modal 로
const dockAlarms = MULTI_ALARMS.filter(a => a.severity !== 'critical');
@@ -716,7 +727,15 @@
if (rows) rows.innerHTML = '';
if (dock) dock.classList.remove('show');
const backdrop = document.getElementById('emergency-modal');
if (backdrop) backdrop.classList.remove('with-multi');
if (backdrop) {
// stack 안의 modal 과 dock 을 원위치로 복귀 후 stack 제거
const stack = backdrop.querySelector('.emergency-stack');
const modal = stack?.querySelector('.emergency-modal');
if (modal) backdrop.appendChild(modal);
if (dock) document.body.appendChild(dock);
stack?.remove();
backdrop.classList.remove('with-multi');
}
}
let cctvClockTimer = null;