refactor(web-ui): 전체 UI 반응형 디자인 개선

모든 화면 크기에서 일관되고 안정적인 사용자 경험을 제공하도록
UI 컴포넌트를 전면 개선했습니다.

주요 변경사항:
- 네비게이션 바: flex-wrap, rem 단위, sticky positioning 적용
- 사용자 정보 영역: max-width로 크기 제한, 텍스트 overflow 처리
- 공통 헤더: clamp()로 반응형 폰트, 반응형 패딩 적용
- 모든 관리 페이지: ES6 모듈 로딩 통일 (type="module")
- 반응형 breakpoint: 1200px, 768px, 640px, 480px

개선 효과:
 모든 페이지에서 일관된 헤더 표시
 사용자 정보 영역 늘어나는 문제 해결
 모든 화면 크기에서 최적화된 레이아웃
 rem 단위 사용으로 접근성 개선

수정된 파일:
- web-ui/components/navbar.html: 전면 리팩토링
- web-ui/css/common.css: 반응형 스타일 추가
- web-ui/pages/**/*.html: 모듈 로딩 및 버전 업데이트 (13개 파일)
- web-ui/js/*.js: 모듈 시스템 개선

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-01-19 08:54:44 +09:00
parent 344ad35651
commit d810a8b339
14 changed files with 645 additions and 131 deletions

View File

@@ -90,7 +90,7 @@
/**
* 폴백: 순차적 로딩 (지연 시간 포함) - Private helper
* @param {number} year
* @param {number} year
* @param {number} month (0-indexed)
* @returns {Promise<object>}
*/
@@ -101,22 +101,43 @@
const firstDay = new Date(year, month, 1);
const lastDay = new Date(year, month + 1, 0);
const currentDay = new Date(firstDay);
const promises = [];
while (currentDay <= lastDay) {
const dateStr = currentDay.toISOString().split('T')[0];
promises.push(window.apiGet(`/daily-work-reports?date=${dateStr}&view_all=true`));
currentDay.setDate(currentDay.getDate() + 1);
}
const results = await Promise.all(promises);
console.log(`📅 폴백: ${monthKey} 순차 로딩 시작 (rate limit 방지)`);
// 순차적으로 요청하되 작은 배치로 나눔 (5개씩)
const BATCH_SIZE = 5;
const DELAY_BETWEEN_BATCHES = 100; // 100ms
let day = 1;
for (const result of results) {
const dateStr = `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
monthData[dateStr] = result.success && Array.isArray(result.data) ? result.data : [];
day++;
while (currentDay <= lastDay) {
const batch = [];
// 배치 생성
for (let i = 0; i < BATCH_SIZE && currentDay <= lastDay; i++) {
const dateStr = currentDay.toISOString().split('T')[0];
batch.push({
date: dateStr,
promise: window.apiGet(`/daily-work-reports?date=${dateStr}&view_all=true`)
});
currentDay.setDate(currentDay.getDate() + 1);
}
// 배치 실행
const results = await Promise.all(batch.map(b => b.promise));
// 결과 저장
batch.forEach((item, index) => {
const result = results[index];
monthData[item.date] = result.success && Array.isArray(result.data) ? result.data : [];
});
// 다음 배치 전 잠시 대기 (rate limit 방지)
if (currentDay <= lastDay) {
await new Promise(resolve => setTimeout(resolve, DELAY_BETWEEN_BATCHES));
}
}
console.log(`✅ 폴백: ${monthKey} 순차 로딩 완료`);
return monthData;
} catch (error) {
console.error(`${monthKey} 순차 로딩 오류:`, error);