-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#377 Refactor: 기수 관련 UI 수정 및 추가 api 연결 #389
base: develop
Are you sure you want to change the base?
The head ref may contain hidden characters: "refactor#377/\uAE30\uC218-\uAD00\uB828-ui-\uC218\uC815-\uBC0F-\uCD94\uAC00-api-\uC5F0\uACB0"
Conversation
…into refactor#377/기수-관련-ui-수정-및-추가-api-연결
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다! pr 늦게...봐서 죄송합니다 ㅜㅜ🙇🏻♀️
|
||
const preventNonNumeric = (e: React.KeyboardEvent<HTMLInputElement>) => { | ||
// 숫자 키, 백스페이스, 삭제키만 허용 | ||
if (!/[0-9]/.test(e.key) && e.key !== 'Backspace' && e.key !== 'Delete') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호 이런식으로 허용 가능한 것을 따로 설정해줄 수 있군요..!!
onClose(); | ||
window.location.reload(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
새로운 기수가 저장되고 나서 바로 렌더링되는게 아니라 한 번 새로고침을 강제로 하도록 설정되어있는건가요?_?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
바로 렌더링되게 하려면 어떻게 해야 되드라.... 새로고침해야 새로운기수 저장된게 보여서 저렇게해둔건데..
@@ -27,4 +29,30 @@ const postCardinalApi = async ( | |||
} | |||
}; | |||
|
|||
export default postCardinalApi; | |||
// 기수 수정 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앞으로 추가해야할 api
들은 인스턴스 사용해서 적어줘도 좋을 것 같아요!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네넴 알겠습니다! 어차피 api 연결은 이게 마지막이라... 새 이슈에서 한꺼번에 인스턴스 적용해볼게요!
const currentCardinal = | ||
allCardinals.find((c) => c.status === 'IN_PROGRESS')?.cardinalNumber || | ||
null; | ||
|
||
useEffect(() => { | ||
const fetchMembers = async () => { | ||
try { | ||
console.log(`API 요청: orderBy=${sortingOrder}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
나중에 구현이 다 완료되면 이런 콘솔들은 삭제해도 좋을 것 같아요!!
1. 무슨 이유로 코드를 변경했나요?
#377 를 구현하였습니다.
2. 어떤 위험이나 장애를 발견했나요?
기수 수정할 때 이미 저장된 연도 및 학기일 경우를 수정이 안되도록 하는게 좋지 않을까 싶은데.. 배겐드에게 물어봐야 할듯..

그래서 현재 8기,9기가 모두 2026년 2학기라는 점..
-> 회의 때 말한대로 그정돈 유저의 책임으로 전가하도록
3. 관련 스크린샷을 첨부해주세요.
- 선택 멤버를 임시 기수로 변경했을 때
- 임시 기수(9기) 를 클릭했을 때 뜨는 모달 ( 우선 제가 임의로 수정한거라 디자인은 수정될 수도.. )
- 기수 정보를 수정한 후 기수 수정 api 요청
- 페널티 관리 페이지 기수 필터링
- 멤버 관리 페이지 기수 필터링
나머지는 자잘한거라.... 이정도만 첨부하겠습니다
4. 완료 사항
구현하지 못한 기수 관련된 수정사항들을 모두 구현했습니다 ..............
5. 추가 사항
이제 남은 건 qa 수정.. 신난다 !