코드 정리 및 UI 개선: 불필요한 파일 제거, 디버그 로그 정리, 프로덕션 설정 개선, 할일관리 헤더 개선

This commit is contained in:
Hyungi Ahn
2025-09-04 11:21:15 +09:00
parent 16eec06b7c
commit f49edaf06b
6 changed files with 25 additions and 3763 deletions

View File

@@ -233,11 +233,7 @@ function todosApp() {
// 할일 일정 설정
async scheduleTodo() {
console.log('🔧 scheduleTodo 호출됨:', this.currentTodo, this.scheduleForm);
if (!this.currentTodo || !this.scheduleForm.start_date) {
console.log('❌ 필수 데이터 누락:', { currentTodo: this.currentTodo, start_date: this.scheduleForm.start_date });
return;
}
if (!this.currentTodo || !this.scheduleForm.start_date) return;
try {
// 선택한 날짜의 총 시간 체크
@@ -273,17 +269,14 @@ function todosApp() {
let response;
// 이미 일정이 설정된 할일인지 확인
console.log('📋 할일 상태 확인:', this.currentTodo.status);
if (this.currentTodo.status === 'draft') {
// 새로 일정 설정
console.log('📅 새로 일정 설정 API 호출');
response = await window.api.post(`/todos/${this.currentTodo.id}/schedule`, {
start_date: startDate.toISOString(),
estimated_minutes: newMinutes
});
} else {
// 기존 일정 지연 (active 상태의 할일)
console.log('🔄 기존 일정 지연 API 호출');
response = await window.api.put(`/todos/${this.currentTodo.id}/delay`, {
delayed_until: startDate.toISOString()
});