feat: 알림 시스템 및 시설설비 관리 기능 구현

- 알림 시스템 구축 (navbar 알림 아이콘, 드롭다운)
- 알림 수신자 설정 기능 (계정관리 페이지)
- 시설설비 관리 페이지 추가 (수리 워크플로우)
- 수리 신청 → 접수 → 처리중 → 완료 상태 관리
- 사이드바 메뉴 구조 개선 (공장 관리 카테고리)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-02-04 15:56:57 +09:00
parent d1aec517a6
commit b8ccde7f17
24 changed files with 3204 additions and 9 deletions

View File

@@ -27,6 +27,26 @@
</div>
<div class="header-right">
<!-- 알림 버튼 -->
<div class="notification-wrapper" id="notificationWrapper">
<button class="notification-btn" id="notificationBtn">
<svg class="notification-icon-svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
<path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
</svg>
<span class="notification-badge" id="notificationBadge" style="display:none;">0</span>
</button>
<div class="notification-dropdown" id="notificationDropdown">
<div class="notification-header">
<h4>알림</h4>
<a href="/pages/admin/notifications.html" class="view-all-link">모두 보기</a>
</div>
<div class="notification-list" id="notificationList">
<div class="notification-empty">새 알림이 없습니다.</div>
</div>
</div>
</div>
<a href="/pages/dashboard.html" id="dashboardBtn" class="dashboard-btn">
<span class="btn-icon">📊</span>
<span class="btn-text">대시보드</span>
@@ -376,6 +396,208 @@ body {
font-family: inherit;
}
/* 알림 버튼 스타일 */
.notification-wrapper {
position: relative;
}
.notification-btn {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: var(--radius-lg);
cursor: pointer;
transition: var(--transition-normal);
position: relative;
}
.notification-btn:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-2px);
}
.notification-icon-svg {
width: 20px;
height: 20px;
color: white;
}
.notification-btn.has-notifications {
animation: pulse-btn 2s infinite;
}
@keyframes pulse-btn {
0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
.notification-badge {
position: absolute;
top: -4px;
right: -4px;
min-width: 18px;
height: 18px;
padding: 0 5px;
background: var(--error-500);
color: white;
font-size: 11px;
font-weight: var(--font-bold);
border-radius: var(--radius-full);
display: flex;
align-items: center;
justify-content: center;
animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
.notification-dropdown {
position: absolute;
top: 100%;
right: 0;
margin-top: var(--space-2);
width: 320px;
max-height: 400px;
background: var(--bg-primary);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-xl);
border: 1px solid var(--border-light);
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: var(--transition-normal);
z-index: 1000;
overflow: hidden;
}
.notification-dropdown.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.notification-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-3) var(--space-4);
border-bottom: 1px solid var(--border-light);
background: var(--bg-secondary);
}
.notification-header h4 {
margin: 0;
font-size: var(--text-base);
font-weight: var(--font-semibold);
color: var(--text-primary);
}
.view-all-link {
font-size: var(--text-sm);
color: var(--primary-500);
text-decoration: none;
font-weight: var(--font-medium);
}
.view-all-link:hover {
text-decoration: underline;
}
.notification-list {
max-height: 320px;
overflow-y: auto;
}
.notification-item {
display: flex;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
border-bottom: 1px solid var(--border-light);
cursor: pointer;
transition: var(--transition-fast);
}
.notification-item:hover {
background: var(--bg-secondary);
}
.notification-item.unread {
background: rgba(14, 165, 233, 0.05);
}
.notification-item.unread::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 3px;
background: var(--primary-500);
}
.notification-item {
position: relative;
}
.notification-item-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-full);
background: var(--warning-100);
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
flex-shrink: 0;
}
.notification-item-icon.repair {
background: var(--warning-100);
}
.notification-item-content {
flex: 1;
min-width: 0;
}
.notification-item-title {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--text-primary);
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.notification-item-desc {
font-size: var(--text-xs);
color: var(--text-tertiary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.notification-item-time {
font-size: var(--text-xs);
color: var(--text-tertiary);
white-space: nowrap;
}
.notification-empty {
padding: var(--space-6);
text-align: center;
color: var(--text-tertiary);
font-size: var(--text-sm);
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.dashboard-header {
@@ -407,5 +629,10 @@ body {
.report-btn {
padding: var(--space-2) var(--space-3);
}
.notification-dropdown {
width: 280px;
right: -50px;
}
}
</style>

View File

@@ -38,14 +38,17 @@
</div>
</div>
<!-- 일간작업장 점검 -->
<div class="nav-category" data-category="daily-inspection">
<!-- 공장 관리 -->
<div class="nav-category" data-category="factory">
<button class="nav-category-header">
<span class="nav-icon">&#128269;</span>
<span class="nav-text">일간작업장 점검</span>
<span class="nav-icon">&#127981;</span>
<span class="nav-text">공장 관리</span>
<span class="nav-arrow">&#9662;</span>
</button>
<div class="nav-category-items">
<a href="/pages/admin/repair-management.html" class="nav-item" data-page-key="factory.repair_management">
<span class="nav-text">시설설비 관리</span>
</a>
<a href="/pages/inspection/daily-patrol.html" class="nav-item" data-page-key="inspection.daily_patrol">
<span class="nav-text">일일순회점검</span>
</a>