Open
Conversation
- AdjustPointer.tsx에서 봉사 신청자 상벌점 조정 모달 UI 및 로직 구현 - 모달에 전달할 신청자(gcd, name) 상태 관리 로직 추가 - 봉사 현황 테스트를 위한 목 데이터 추가
- globalStyle 수정으로 모달 오픈 시 좌우 화면 밀림 현상 완화 - 모달 폭과 패딩을 조정해 제목·슬라이더·입력 박스·버튼 좌우 정렬 통일
…ward' into feature/147-volunteer-current-reward
- 봉사 신청자의 상벌점을 조정하기 위한 API를 연동하고, 기존 테스트용 mock 데이터를 제거함. - `updateVolunteerApplicationScore` API를 사용하여 상벌점 업데이트 기능 구현 - `useUpdateVolunteerApplicationScore` hook을 통해 상벌점 수정 요청 처리 - 상벌점 수정 성공/실패 시 토스트 메시지 출력 및 관련 목록 갱신 - 기존 봉사 신청 관련 mock 데이터 제거
봉사 신청자의 상벌점 조회 API(GET /volunteers/score/{id}) 응답값을
조정 모달의 초기 UI 상태에 반영하도록 연결함.
- AdjustPointer.tsx에서`useVolunteerAssignedScore(applicant.id)` 호출
- API 응답의 `assigned_score`를 슬라이더 startPoint 초기값으로 설정
- 사용자가 슬라이더를 조작한 이후(`isSliderMoved === true`)에는
서버 조회값으로 다시 덮어쓰지 않도록 처리
- Application.tsx에서 봉사 목록 기반 신청자별 최소/최대 점수 계산 로직 수정 - 봉사 리스트 API 데이터와 신청자 정보 매핑 오류 개선 - AdjustPointer.tsx 점수 슬라이더 범위를 서버 데이터 기준으로 수정 - 기존 고정 min/max 점수 로직 제거 - volunteer 응답 타입에 score, optional_score 필드 추가
- API 명세 변경(min_score / max_score) 반영 - VolunteerApplication 범위 추출 로직(getRange, map)을 새 필드 기준으로 수정 - min_score / max_score → minScore / maxScore → score / optional_score 순으로 fallback 처리 - range undefined로 인해 모달이 열리지 않던 문제 수정 - 저장 직후 모달 재오픈 시 최신 assigned_score 즉시 반영(setQueryData + invalidate 유지) - 모달 하단 시작/끝 점수 고정 표시 UI 유지
1 task
seungw0o
reviewed
Feb 3, 2026
- Application.tsx에서 useModal 제거 후 useModalStore 직접 사용 - AdjustPointer.tsx에서 wrapper 제거하고 closeModal을 store에서 직접 호출하도록 수정
- AdjustPointer.tsx의 export 함수명을 AdjustVolunteerPoint → AdjustPointer로 변경 - Application.tsx 등 사용처 import 및 JSX 이름 함께 수정 - 파일명과 컴포넌트 네이밍 불일치 문제 정리
- 슬라이더를 MultiRangeSlider로 교체 - 입력 영역을 design-system Input으로 변경
- markings, disableLeft/Right, highlightRight 옵션 추가 - min/max 기준으로 계산하도록 수정 - 예외 케이스 처리 보완
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
봉사 현황 페이지에서 학생별로 상벌점을 부여할 수 있는 기능을 추가하였습니다.
이슈 번호
변경사항