[hotfix] 버그 및 미완성, 누락된 기능 - #14
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Code Review
This pull request introduces features for managing malfunction reports and user penalties, including new API endpoints, mutation hooks (useUpdateReportStatus, useDeleteUserPenalty), and UI integrations. It also enhances the user management page with server-side filtering, debounced search inputs, and an improved loading/error overlay UX. The review feedback suggests improving the UX further by conditionally rendering the user panel to prevent empty states from showing behind the loading overlay, and immediately resetting debounced search states to avoid a delay when clearing filters.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@gemini-code-assist 어 개선하거나 문제점 있어? |
There was a problem hiding this comment.
Code Review
This pull request introduces features for managing malfunction reports and user penalties, including new mutation hooks (useUpdateReportStatus, useDeleteUserPenalty), updated reservation status mappings, and enhanced user filtering with debounced search inputs. Feedback is provided to clean up unused imports in ReportsPanel.tsx, verify that FilterSearchField supports the placeholder prop to prevent TypeScript or rendering issues, and split the debouncing of search terms into separate useEffect hooks to avoid unnecessary delays.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
@bom0320 오늘 10교시 끝나고 나서 merge하겠습니다. |
개요 💡
버그 및 미완성, 누락된 기능을 제작했습니다.
작업내용 ⌨️
• CANCELLED (취소) 및 COMPLETED (완료) 상태가 "확인필요"로 잘못 표시되던 문제를 해결했습니다.
• 각각 "취소됨", "사용 완료" 배지와 적절한 안내 문구가 표시되도록 렌더링 로직을 수정했습니다.
• 제공해주신 DELETE API를 연결하여 사용자의 패널티를 해제하는 기능을 구현했습니다.
• "해제" 버튼에 커서 스타일( cursor-pointer )을 추가하고, 확인 창(confirm) 및 완료/에러 알림을 추가했습니다.
• 배지 옆에 **액션 버튼("처리 시작", "완료 처리")**을 추가하여 상태를 한 단계씩 변경할 수 있도록 구현했습니다.
• 대기 에서 처리중 으로 넘어갈 때, "기기가 고장 상태로 변경되며 사용이 불가능해진다"는 경고창을 띄우도록 처리했습니다.
• API 연동: 기존 프론트엔드 필터링을 백엔드 API 파라미터( name , studentId , floor ) 기반 필터링으로 변경했습니다.
• 호실 필터 추가: "이름, 학번검색"과 분리된 "호실 검색" 전용 입력창을 만들고, 정확히 3자리 숫자일 때만 roomNumber 파라미터로 넘어가도록 조건을
추가했습니다.
• UX 개선 (디바운싱 & 포커스 유지): 입력할 때마다 필터가 깜빡이며 끊기는 현상을 없애기 위해 0.3초 딜레이(Debounce)와 keepPreviousData 옵션을 적용했습니다.
• 빈 화면(Empty State) 추가: 검색 및 필터 결과가 없을 때 "적합한 사용자가 존재하지 않습니다"라는 안내 문구를 중앙에 표시하도록 구현했습니다.
관련 이슈
https://www.notion.so/375432aac8f1805c9df2de00065fd16d?source=copy_link