refactor: 수신함 상태 결정 모달에서 불필요한 처리 메모 필드 제거
🗑️ Remove Unnecessary Field: - 처리 메모 (statusNotes) 필드 제거 - 완료됨 선택 시 해결방안 필드가 있어 중복 불필요 - 진행 중 선택 시 별도 메모 불필요 🎨 UI Simplification: - 모달 UI에서 처리 메모 텍스트 영역 제거 - 더 깔끔하고 집중된 사용자 인터페이스 - 필수 정보에만 집중할 수 있도록 개선 🔧 Backend Cleanup: - IssueStatusUpdateRequest에서 notes 필드 제거 - API 엔드포인트에서 notes 처리 로직 제거 - 불필요한 detail_notes 업데이트 로직 제거 💡 User Experience: - 더 간단하고 직관적인 상태 변경 프로세스 - 완료 시에는 해결방안으로 충분한 정보 제공 - 진행 중 시에는 바로 처리 가능 Expected Result: ✅ 처리 메모 필드 완전 제거 ✅ 더 간결한 상태 결정 모달 ✅ 중복 기능 제거로 사용자 혼란 방지 ✅ 핵심 기능에 집중된 워크플로우
This commit is contained in:
Binary file not shown.
@@ -161,7 +161,6 @@ class IssueReviewRequest(BaseModel):
|
||||
class IssueStatusUpdateRequest(BaseModel):
|
||||
"""부적합 상태 변경 요청"""
|
||||
review_status: ReviewStatus
|
||||
notes: Optional[str] = None
|
||||
completion_photo: Optional[str] = None # 완료 사진 (Base64)
|
||||
solution: Optional[str] = None # 해결방안
|
||||
responsible_department: Optional[DepartmentType] = None # 담당부서
|
||||
|
||||
Binary file not shown.
@@ -285,13 +285,6 @@ async def update_issue_status(
|
||||
if status_request.responsible_person:
|
||||
issue.responsible_person = status_request.responsible_person
|
||||
|
||||
# 노트가 있으면 detail_notes에 추가
|
||||
if status_request.notes:
|
||||
current_notes = issue.detail_notes or ""
|
||||
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M")
|
||||
new_note = f"[{timestamp}] {current_user.username}: {status_request.notes}"
|
||||
issue.detail_notes = f"{current_notes}\n{new_note}".strip()
|
||||
|
||||
db.commit()
|
||||
db.refresh(issue)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user