Legacy Module
-조직도 관리
-기존 단일 HTML 조직도 도구를 보존한 상태로 연결했습니다.
- 레거시 조직도 열기 -diff --git a/frontend/public/app.js b/frontend/public/app.js index a43b19e..bcfee09 100755 --- a/frontend/public/app.js +++ b/frontend/public/app.js @@ -7,7 +7,6 @@ const loginMessage = document.getElementById("login-message"); const logoutBtn = document.getElementById("logout-btn"); const userBadge = document.getElementById("user-badge"); const healthStatus = document.getElementById("health-status"); -const refreshHealthBtn = document.getElementById("refresh-health-btn"); function getSession() { try { @@ -38,14 +37,15 @@ function renderAuth() { async function refreshHealth() { if (!healthStatus) return; - healthStatus.textContent = "서버 상태를 확인하는 중입니다."; + healthStatus.textContent = "서버 상태 확인 중"; try { const response = await fetch("/api/health"); if (!response.ok) throw new Error("unhealthy"); const payload = await response.json(); - healthStatus.textContent = `API 상태: ${payload.status}`; + const count = typeof payload.member_count === "number" ? ` / ${payload.member_count}명` : ""; + healthStatus.textContent = `API ${payload.status}${count}`; } catch (error) { - healthStatus.textContent = "API에 연결할 수 없습니다. backend 컨테이너를 확인해주세요."; + healthStatus.textContent = "API 연결 실패"; } } @@ -77,9 +77,4 @@ if (logoutBtn) { }); } -if (refreshHealthBtn) { - refreshHealthBtn.addEventListener("click", refreshHealth); -} - renderAuth(); - diff --git a/frontend/public/index.html b/frontend/public/index.html old mode 100755 new mode 100644 index ab9d195..f52a3ad --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -3,77 +3,84 @@
-Intranet Preview
-- 현재 단계에서는 화면상 로그인만 우선 적용합니다. 로그인 후 조직도 레거시 화면과 - 서버 준비 상태를 한 곳에서 확인할 수 있습니다. -
+MH Dashboard
++ 현재는 조직도 모듈이 메인 화면입니다. 이후 다른 기능이 합쳐지더라도 + 같은 헤더와 같은 화면 체계 안에서 확장될 수 있도록 구조를 먼저 맞춥니다. +
+Internal Dashboard
-