Skip to content

[REFACTOR] 목표/이슈 타입 및 변수명 재정의#60

Merged
sunhwaaRj merged 24 commits into
developfrom
feature/#51-goal_issue_type-refactor
Jul 18, 2025
Merged

[REFACTOR] 목표/이슈 타입 및 변수명 재정의#60
sunhwaaRj merged 24 commits into
developfrom
feature/#51-goal_issue_type-refactor

Conversation

@sunhwaaRj

Copy link
Copy Markdown
Collaborator

체크리스트

  • 🧰 npm run dev로 실행 환경에서 잘 돌아가는걸 확인했나요?
  • 🎋 base 브랜치를 develop 브랜치로 설정했나요?
  • 🖌️ PR 제목은 형식에 맞게 잘 작성했나요?
  • 🏷️ 라벨은 등록했나요?
  • 🙆 리뷰어는 등록했나요?

📌 관련 이슈번호


✅ Key Changes

  • 담당자 2명 이상 시 ui 처리
  • api 구조에 맞게 변수명 등 수정
  • 요소 없을 시 '없음' 처리 다시

📸 스크린샷 or 실행영상

담당자 두 명 이상 호버 시 드롭다운 표시
같은 id 요소 선택 시 하나만 선택해도 다른 요소 선택되도록 (담당자 필터에서 한 목표 당 여러 담당자 존재 시)

51.mp4

💬 To Reviewers

common.ts 에 1차적으로 api 구조에 맞는 respose type 작성하였습니다. 추후 해당 파일 및 폴더에 각자 담당한 부분 작성하면 됩니다.

@sunhwaaRj sunhwaaRj self-assigned this Jul 17, 2025
@sunhwaaRj sunhwaaRj added the ♻️ REFACTOR 코드 수정 및 리팩토링 label Jul 17, 2025
@github-actions

Copy link
Copy Markdown

@sunhwaaRj sunhwaaRj changed the title Feature/#51 goal issue type refactor [REFACTOR] 목표/이슈 타입 및 변수명 재정의 Jul 17, 2025
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

@waldls waldls left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모두 확인했습니다! 미리 common.ts 만들어주셔서 감사합니다 ㅎㅎ 수고하셨어용 👍🏻👍🏻

Comment on lines +33 to +48
// filter 변경마다 다른 데이터 선택 -> 추후 새로운 데이터 불러오도록
const dummyGoalGroups = useMemo<GoalFilter[]>(() => {
switch (filter) {
case '상태':
return dummyStatusGoalGroups;
case '우선순위':
return dummyPriorityGoalGroups;
case '담당자':
return dummyManagerGoalGroups;
default:
return [];
}
}, [filter]);

const allGoalsFlat = dummyGoalGroups.flatMap((g) => g.goals);

@jinj00oo jinj00oo Jul 17, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: 현재 dummy...GoalGroups 데이터를 보면 정렬 순서가 하드코딩되어 있는 것 같은데,
향후 실제 API 연동 시에도 이 정렬 순서를 서버에서 보장해줄 예정인지,
아니면 프론트에서 정렬 로직(getSortedGrouped 등)을 계속 유지할 계획인지 궁금합니다!
비동기 함수는 useMemo에서 사용할 수 없는 것으로 알고 있어서, API 연동을 하게 된다면 useEffect나 React Query같은 비동기 처리 함수로 전환하게 될지 궁금해서요!

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

상태 순서: 없음 → 진행중 → 해야할 일 → 완료 → 검토 → 삭제
우선순위 순서: 없음 → 긴급 → 높음 → 보통 → 낮음

해당 순서대로 백엔드에서 전달되고 있으며, 2차적으로 프론트에서 해당 순서로 오도록 처리하였습니다. 다른 담당자나 목표명 필터 시 없음이 제일 먼저, 이외는 가나다순으로 정렬됩니다.

더미데이터는 ui 테스트를 위해 넣어놓은 것이며, 말씀하신 대로 useEffect 나 쿼리 중 어떤 방식으로 연동 작업 진행할 지는 추후 회의에서 얘기하고 통일해서 진행하면 될 것 같아요!!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네넵 답변 감사합니다! UI 구현인데 추후 API 연동이 어떤식으로 이루어질지 궁금해서 여쭤봤습니다..ㅎㅎ
코드 너무 깔끔하게 짜주신 것 같아요 수고하셨습니다! 😍

@github-actions

Copy link
Copy Markdown

@sunhwaaRj
sunhwaaRj merged commit 4cb7fd8 into develop Jul 18, 2025
1 check passed
@gaeulzzang
gaeulzzang deleted the feature/#51-goal_issue_type-refactor branch July 27, 2025 09:55
@HiJuwon HiJuwon added this to the Demo Day milestone Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ REFACTOR 코드 수정 및 리팩토링 🍀 선화

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] 타입 및 변수명 재정의

4 participants