Skip to content

[hotfix] 버그 및 미완성, 누락된 기능 - #14

Merged
aiden30015 merged 12 commits into
mainfrom
hotfix/bug-fix
Jun 8, 2026
Merged

[hotfix] 버그 및 미완성, 누락된 기능#14
aiden30015 merged 12 commits into
mainfrom
hotfix/bug-fix

Conversation

@LeeSangHyeok0731

Copy link
Copy Markdown
Contributor

개요 💡

버그 및 미완성, 누락된 기능을 제작했습니다.

작업내용 ⌨️

  1. 예약 내역 상태 표시 오류 수정

• CANCELLED (취소) 및 COMPLETED (완료) 상태가 "확인필요"로 잘못 표시되던 문제를 해결했습니다.
• 각각 "취소됨", "사용 완료" 배지와 적절한 안내 문구가 표시되도록 렌더링 로직을 수정했습니다.

  1. 사용자 관리 - 세탁 정지(패널티) 해제 기능 연동

• 제공해주신 DELETE API를 연결하여 사용자의 패널티를 해제하는 기능을 구현했습니다.
• "해제" 버튼에 커서 스타일( cursor-pointer )을 추가하고, 확인 창(confirm) 및 완료/에러 알림을 추가했습니다.

  1. 고장 신고 내역 상태 변경 기능 추가

• 배지 옆에 **액션 버튼("처리 시작", "완료 처리")**을 추가하여 상태를 한 단계씩 변경할 수 있도록 구현했습니다.
• 대기 에서 처리중 으로 넘어갈 때, "기기가 고장 상태로 변경되며 사용이 불가능해진다"는 경고창을 띄우도록 처리했습니다.

  1. 사용자 목록 검색/필터 기능 고도화

• API 연동: 기존 프론트엔드 필터링을 백엔드 API 파라미터( name , studentId , floor ) 기반 필터링으로 변경했습니다.
• 호실 필터 추가: "이름, 학번검색"과 분리된 "호실 검색" 전용 입력창을 만들고, 정확히 3자리 숫자일 때만 roomNumber 파라미터로 넘어가도록 조건을
추가했습니다.
• UX 개선 (디바운싱 & 포커스 유지): 입력할 때마다 필터가 깜빡이며 끊기는 현상을 없애기 위해 0.3초 딜레이(Debounce)와 keepPreviousData 옵션을 적용했습니다.
• 빈 화면(Empty State) 추가: 검색 및 필터 결과가 없을 때 "적합한 사용자가 존재하지 않습니다"라는 안내 문구를 중앙에 표시하도록 구현했습니다.

관련 이슈

https://www.notion.so/375432aac8f1805c9df2de00065fd16d?source=copy_link

@LeeSangHyeok0731
LeeSangHyeok0731 requested a review from bom0320 June 8, 2026 06:23
@LeeSangHyeok0731 LeeSangHyeok0731 self-assigned this Jun 8, 2026
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
washer Ready Ready Preview, Comment Jun 8, 2026 11:13am

Request Review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/widgets/users-page/UserPage.tsx Outdated
Comment thread src/widgets/users-page/UserPage.tsx
@LeeSangHyeok0731

Copy link
Copy Markdown
Contributor Author

@gemini-code-assist 어 개선하거나 문제점 있어?

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/widgets/reports-page/ui/ReportsPanel.tsx Outdated
Comment thread src/widgets/users-page/ui/UserFilterPanel.tsx
Comment thread src/widgets/users-page/UserPage.tsx Outdated
@LeeSangHyeok0731

Copy link
Copy Markdown
Contributor Author

@bom0320 오늘 10교시 끝나고 나서 merge하겠습니다.

@aiden30015
aiden30015 merged commit 05be128 into main Jun 8, 2026
3 checks passed
@aiden30015
aiden30015 deleted the hotfix/bug-fix branch June 8, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants