Repository navigation
[admin] 점수 저장 실패 안내 추가 및 범위 밖 점수 처리 수정 - #589
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Overview
어드민 지원자 목록에서 역량검사·심층면접 점수 저장 실패 시 토스트 안내를 추가하고, formatScore가 범위 밖 값을 만점으로 바꾸던 동작을 제거했습니다. 저장 시 잘못된 점수는 차단하고 안내를 표시하도록 수정했으며, 관련 테스트를 추가했습니다.
Intent
점수가 최종 합격 판정에 쓰이는 중요한 데이터인 만큼, 저장 실패를 조용히 넘기지 않고 관리자에게 명확히 알리기 위한 PR입니다. 또한 범위 밖 점수를 임의로 보정하지 않고 잘못된 입력으로 처리해 데이터 일관성을 높이려 합니다.
Risk
점수 입력·포맷·저장 경로 전체의 동작이 바뀌므로, 기존 저장 데이터와 화면 표시 값의 일치 여부를 확인해야 합니다. 특히 formatScore 반환 타입이 string | null로 바뀐 변경과, 음수 입력처럼 숫자 외 문자가 제거된 뒤 저장되는 엣지 케이스를 집중적으로 검토해야 합니다.
4 inline comment(s)
yeondon125
reviewed
Nov 20, 2026
This branch was successfully deployed
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.
개요
어드민 지원자 목록에서 역량검사·심층면접 점수를 저장하지 못해도 관리자에게 아무 안내가 없고, 100점을 넘는 점수는
formatScore에서 만점으로 바뀌며, 범위 밖 점수는 안내 없이 무시되던 문제를 수정하였습니다. 점수는 최종 합격 판정에 직접 쓰이므로, 잘못된 값이 조용히 저장되거나 저장 실패를 놓치지 않도록 하였습니다.이슈의 1번 항목(한 칸의 입력이 다른 칸을 덮어쓰는 문제)은
ae2372c1,b560b343에서 칸마다useDebouncedCallback타이머를 따로 두도록 바뀌어 develop에 이미 반영되어 있어, 이번 PR에서는 나머지 항목을 다루었습니다.작업내용
usePatchCompetencyScore,usePatchInterviewScore에onError를 추가하여 저장 실패 시 "역량검사/심층면접 점수 저장에 실패했습니다." 토스트를 표시하였습니다.formatScore가maxScore보다 큰 값을Math.min으로 만점으로 바꾸던 동작을 제거하고, 숫자가 없거나 0~maxScore범위를 벗어나면 잘못된 입력으로 보고null을 반환하도록 변경하였습니다. 반환 타입이string | null로 바뀌었으며 사용처는ApplicantTR한 곳입니다.ApplicantTR@repo/utils에@repo/api와 같은 방식(tsx --test)으로 테스트 스크립트를 추가하고formatScore.test.ts를 작성하였습니다.관련 이슈
리뷰 요청사항
formatScore의 상한 처리는 "잘못된 입력으로 처리"하는 쪽으로 정하였습니다. 다른 의견이 있으면 말씀 부탁드립니다.formatScore는 숫자가 아닌 문자를 제거하므로-5를 입력하면5.00이 됩니다. 기존에도 1초 뒤 형식 정리 후에는 같은 결과였지만, 이제는 즉시 저장해도 5점으로 저장됩니다. 이슈 범위 밖이라 이번 PR에서는 그대로 두었으며, 별도 이슈로 다룰지 의견 부탁드립니다.pnpm test로 검증하였습니다.