refactor(db,frontend): Improve queries and modularize frontend

- Replaced SELECT* queries in 8 models with explicit columns.
- Began modularizing work-report-calendar.js by creating CalendarAPI.js, CalendarState.js, and CalendarView.js.
- Refactored manage-project.js to use global API helpers.
- Fixed API container crash by adding missing volume mounts to docker-compose.yml.
- Added new migration for missing columns in the projects table.
- Documented current DB schema and deployment notes.
This commit is contained in:
Hyungi Ahn
2025-12-19 12:42:24 +09:00
parent 8a8307edfc
commit 05843da1c4
19 changed files with 826 additions and 381 deletions

83
_archive/DELETED_PAGES.md Normal file
View File

@@ -0,0 +1,83 @@
# 삭제된 웹 페이지 목록
**삭제 날짜**: 2025-11-03
**사유**: 사용하지 않는 페이지들 정리 및 단일 대시보드 통일
## 삭제된 페이지들
### 테스트/임시 페이지
1. `common/12.html` - 테스트 페이지
2. `common/123.html` - 테스트 페이지
3. `common/123456.html` - 테스트 페이지
### 사용하지 않는 관리 페이지
4. `admin/factory-upload.html` - 공장 업로드
5. `admin/manage-pipespec.html` - 파이프 사양 관리
6. `admin/attendance-validation.html` - 출석 검증
7. `admin/work-review.html` - 작업 검토
### 사용하지 않는 공통 페이지
8. `common/factory-upload.html` - 공장 업로드
9. `common/factory-view.html` - 공장 보기
10. `common/attendance.html` - 출석
### 전체 폴더 삭제
11. `issue-reports/` - 이슈 보고서 관련 전체 폴더
## 현재 사용 중인 페이지들
### 📊 대시보드 (통일됨)
- `dashboard/group-leader.html` - **메인 대시보드** (모든 권한 사용) ✅
- `dashboard/admin.html` - 관리자 대시보드 (미사용)
- `dashboard/system.html` - 시스템 대시보드 (미사용)
- `dashboard/user.html` - 사용자 대시보드 (미사용)
### 📋 관리 페이지
- `admin/admin dashboard.html` - 관리자 대시보드
- `admin/dashboard.html` - 대시보드
- `admin/manage-daily-work.html` - 일일 작업 관리 ✅
- `admin/manage-issue.html` - 이슈 관리
- `admin/manage-project.html` - 프로젝트 관리 ✅
- `admin/manage-task.html` - 작업 관리 ✅
- `admin/manage-user.html` - 사용자 관리 ✅
- `admin/manage-worker.html` - 작업자 관리 ✅
### 📈 분석 페이지
- `analysis/daily_work_analysis.html` - 일일 작업 분석 ✅
- `analysis/project-worktype-analysis.html` - 프로젝트-작업유형 분석 ✅
- `analysis/work-report-analytics.html` - 작업보고서 분석 ✅
### 📄 공통 페이지
- `common/management-dashboard.html` - 관리 대시보드 ✅
- `common/daily-work-report-viewer.html` - 일일 작업보고서 뷰어 ✅
- `common/daily-work-report.html` - 일일 작업보고서 ✅
- `common/project-analysis.html` - 프로젝트 분석 ✅
- `common/work-report-review.html` - 작업보고서 검토 ✅
- `common/work-report-validation.html` - 작업보고서 검증 ✅
### 👤 프로필 페이지
- `profile/change-password.html` - 비밀번호 변경 ✅
- `profile/my-profile.html` - 내 프로필 ✅
### 📝 작업보고서 페이지
- `work-reports/work-report-create.html` - 작업보고서 생성 ✅
- `work-reports/work-report-manage.html` - 작업보고서 관리 ✅
## 변경사항
### 로그인 리다이렉트 통일
- **이전**: 권한별로 다른 대시보드 (`system.html`, `admin.html`, `user.html` 등)
- **현재**: 모든 권한이 `group-leader.html`로 통일 ✅
### 권한 구조
- `system``group-leader.html`
- `admin``group-leader.html`
- `leader``group-leader.html`
- `support``group-leader.html`
- `user``group-leader.html`
## 주의사항
- 삭제된 페이지들을 참조하는 링크가 있다면 수정 필요
- 모든 사용자가 동일한 대시보드를 사용하므로 권한별 기능 제한은 백엔드에서 처리
- 향후 개선 시 권한별 대시보드 분리 가능