-
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
feat(member): 활동 그룹 관리 및 과제 제출 조회 및 피드백 생성 #201
Conversation
|
apps/member/src/components/group/ActivityAssignmentEditor/ActivityAssignmentEditor.tsx
Show resolved
Hide resolved
apps/member/src/components/group/AssignmentFeedbackModal/AssignmentFeedbackModal.tsx
Outdated
Show resolved
Hide resolved
apps/member/src/components/group/AssignmentFeedbackModal/AssignmentFeedbackModal.tsx
Outdated
Show resolved
Hide resolved
apps/member/src/hooks/queries/activity/useActivityGroupBoardByCategory.ts
Outdated
Show resolved
Hide resolved
apps/member/src/hooks/queries/activity/useActivityGroupBoardByParent.ts
Outdated
Show resolved
Hide resolved
apps/member/src/hooks/queries/activity/useActivityGroupMemberList.ts
Outdated
Show resolved
Hide resolved
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.
수고 많으셨습니다잇
apps/member/src/components/group/ActivityAssignmentEditor/ActivityAssignmentEditor.tsx
Show resolved
Hide resolved
apps/member/src/components/group/ActivityConfigTableSection/ActivityConfigTableSection.tsx
Outdated
Show resolved
Hide resolved
apps/member/src/components/group/ActivityPostEditor/ActivityPostEditor.tsx
Outdated
Show resolved
Hide resolved
apps/member/src/components/group/ActivityPostEditor/ActivityPostEditor.tsx
Outdated
Show resolved
Hide resolved
apps/member/src/components/group/GroupCreateSection/GroupCreateSection.tsx
Show resolved
Hide resolved
apps/member/src/pages/GroupAssignmentPage/GroupAssignmentPage.tsx
Outdated
Show resolved
Hide resolved
size = 20, | ||
}: useActivityGroupBoardByParentProps) { | ||
return useSuspenseQuery({ | ||
queryKey: [...ACTIVITY_QUERY_KEY.BOARDS(), 'by-parent', parentId], |
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.
해당 프로젝트에서는 QueryKey를 Query Key Factory를 사용하여 관리하고 있어요, 해당 코드에서 사용하는 것 처럼 by-parent
와 parentId
를 선언하여 사용하면, 이후 QueryKey를 관리하기 어려워져요. ACTIVITY_QUERY_KEY
에 QueryKey를 선언적으로 사용할 수 있도록 개선해보는건 어떨까요
ref: https://tkdodo.eu/blog/effective-react-query-keys#use-query-key-factories
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.
현재 별도로 분리하지 않고 BOARD의 params로 설정하였는데 따로 BOARD_CATEGORY나 BOARD_PARENT로 별도 선언하는 방법과 비교하면 어떤 것이 더 관리하기 좋은 방법일지 여쭤보고 싶습니다. 쿼리 키가 많아질 것을 걱정하여 위와 같은 방법으로 사용했는데 별도 선언하는 것이 더 직관적이고 관리하기 쉬울까요?
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.
고민한 흔적이 많이 보이네요! 리뷰 내용 확인하시고 필요한 부분은 수정해주세요 :)
수고 많으셨습니다
apps/member/src/components/group/ActivityAssignmentEditor/ActivityAssignmentEditor.tsx
Outdated
Show resolved
Hide resolved
apps/member/src/components/group/ActivityBoardEditModal/ActivityBoardEditModal.tsx
Outdated
Show resolved
Hide resolved
apps/member/src/hooks/queries/activity/useActivityGroupBoard.ts
Outdated
Show resolved
Hide resolved
|
||
const feedback = myAssignment?.[0].feedbacks?.[0]; | ||
const isLeader = groupDetail?.groupMembers.some( |
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.
배열 내장함수를 적극적으로 사용하는거 보기 좋아요 bb
Summary
활동 그룹 관리를 위한 컴포넌트를 생성하고 과제 조회와 피드백 기능을 구현합니다.
Tasks
ETC
Screenshot