Conversation
dooohun
approved these changes
Feb 4, 2026
Contributor
dooohun
left a comment
There was a problem hiding this comment.
기능에는 문제가 없어보이네요! 리뷰한 내용 답변 부탁드립니다~
Comment on lines
+136
to
+181
| <div css={S.memberInfoLabel}> | ||
| 상태 | ||
| </div> | ||
| {STATUS_LABEL[member.status as keyof typeof STATUS_LABEL]} | ||
| </div> | ||
| <div> | ||
| <div css={S.memberInfoLabel}> | ||
| 직위 | ||
| </div> | ||
| {member.memberType} | ||
| </div> | ||
| <div> | ||
| <div css={S.memberInfoLabel}> | ||
| 트랙 | ||
| </div> | ||
| {member.track.name} | ||
| </div> | ||
| <div> | ||
| <div css={S.memberInfoLabel}> | ||
| 학번 | ||
| </div> | ||
| {member.studentNumber} | ||
| </div> | ||
| <div> | ||
| <div css={S.memberInfoLabel}> | ||
| 소속 | ||
| </div> | ||
| {member.company} | ||
| </div> | ||
| <div> | ||
| <div css={S.memberInfoLabel}> | ||
| 학부 | ||
| </div> | ||
| {member.department} | ||
| </div> | ||
| <div> | ||
| <div css={S.memberInfoLabel}> | ||
| 전화번호 | ||
| </div> | ||
| {member.phoneNumber} | ||
| </div> | ||
| <div> | ||
| <div css={S.memberInfoLabel}> | ||
| 이메일 | ||
| </div> | ||
| <div css={S.memberInfoLabelSmall}>{member.email}</div> |
Contributor
There was a problem hiding this comment.
const tableHeader = [{
key: '직위',
value: member.memberType
},
{
key: '트랙',
value: member.track.name
}
// 이하 생략
]
// UI 부분
return (
tableHeader.map((value) =>
<div css={S.memberInfoLabel}>
)
)반복되는 부분이 많아서, 하나의 객체로 미리 정의를 하고, 반복문을 돌리는 게 훨씬 보기 좋을 거 같습니다! (내용이 많아서, 코드는 간략하게 작성했습니다. 느낌만 참고해주시면 좋을 거 같습니다.!)
Contributor
Author
There was a problem hiding this comment.
객체 정의해서 코드 간소화 진행했습니다!
| .filter((member) => (inactiveMemberChecked ? !member.isActive : member.isActive)) | ||
| .map((member) => ({ | ||
| ...member, | ||
| status: STATUS_LABEL[member.status as keyof typeof STATUS_LABEL], |
Contributor
There was a problem hiding this comment.
위에서도 봤던 거 같은데, member.status가 STATUS_LABEL을 추론할 수 있게 타입을 정의하는 건 어떤가요?
members 변수의 response 타입을 STATUS_LABEL 로 정의하면 좋을 거 같습니다!
Contributor
Author
There was a problem hiding this comment.
말씀하신대로 타입 정의해두는게 좋을 것 같네요!
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.
What is this PR? 🔍
기능 : 기존 삐봇과의 연동에서 트랙 호출 시 졸업자여도 레귤러라면 모두 호출되고 있어 별도의 필터링 기준인 활동 유저를 추가합니다.
issue : [회원 정보] 활동 유저 관리 추가 #199
Changes 📝
멤버에 isActive라는 활동 여부를 확인하는 필드 추가 및 이를 변경할 수 있는 UI와 로직들이 추가되었습니다.
Admin, Manager 직책을 가진 사용자들은 사진과 같이 목록 혹은 정보 수정 페이지에서 개개인의 활동 여부를 변경할 수 있습니다.
그 외 node 버전 명시, 리뷰어 로직 추가, sdk 최신화 진행했습니다.
Precaution
이후 삐봇에서의 코드 작업을 통해 활동 유저만 멘션하는 기능 추가할 예정입니다.
✔️ Please check if the PR fulfills these requirements
developbranch unconditionally?main?yarn lint