Skip to content
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] 일정 추가/수정 시 카테고리 선택 목록을 편집가능 목록으로 변경한다. #739

Merged

Conversation

jhy979
Copy link
Collaborator

@jhy979 jhy979 commented Oct 9, 2022

  • 🔀 PR 제목의 형식을 잘 작성했나요? e.g. [feat] PR을 등록한다.
  • 💯 테스트는 잘 통과했나요?
  • 🏗️ 빌드는 성공했나요?
  • 🧹 불필요한 코드는 제거했나요?
  • 💭 이슈는 등록했나요?
  • 🏷️ 라벨은 등록했나요?
  • 💻 git rebase를 사용했나요?
  • 🌈 알록달록한가요?

작업 내용

일정 추가/수정 시 카테고리 선택 목록을 편집가능 목록으로 변경한다.

Closes #737

@jhy979 jhy979 added frontend 프론트엔드 feature 새로운 기능 labels Oct 9, 2022
@jhy979 jhy979 requested a review from dayelop October 9, 2022 00:16
@jhy979 jhy979 self-assigned this Oct 9, 2022
Copy link
Collaborator

@dayelop dayelop left a comment

Choose a reason for hiding this comment

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

나인 아침부터 고생하셨어요 🌈
궁금한 거 하나 코멘트로 남겼으니 이것만 확인 부탁드릴게요~!

categoryId: scheduleInfo.categoryId,
});

const { data: editableCategoryGetResponse } = useGetEditableCategories({ enabled: isSuccess });
Copy link
Collaborator

Choose a reason for hiding this comment

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

single category 조회가 성공한 후에 요청하는 이유가 뭔가요?! 😮

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아 아까 디스코드에서 말씀드릭 부분떄문에 조금 헷갈렸떤 것 같아요.

동기 에러인줄 알았었는데.. ㅠㅠ 다시돌리겠습니다

  • 구글 카테고리도 편집가능한 카테고리로 들어오더라구요? 구글 일정들은 수정 불가능하니깐 필터링 진행했어요.

🔨 1c63cbe

@jhy979 jhy979 force-pushed the feature/737-edit-schedule-category branch from 35cb362 to 1c63cbe Compare October 9, 2022 02:07
@jhy979 jhy979 requested a review from dayelop October 9, 2022 02:07
@jhy979 jhy979 force-pushed the feature/737-edit-schedule-category branch from 1c63cbe to a2680b7 Compare October 9, 2022 02:12
Copy link
Collaborator

@dayelop dayelop left a comment

Choose a reason for hiding this comment

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

하나만 더 확인해주세요 🙃

(scheduleInfo.categoryType === CATEGORY_TYPE.NORMAL ||
scheduleInfo.categoryType === CATEGORY_TYPE.PERSONAL) &&
user.id === categoryGetResponse?.data.creator.id;
const canEditSchedule = editableCategoryGetResponse?.data.find(
Copy link
Collaborator

Choose a reason for hiding this comment

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

canEditSchedule이 boolean 값으로 사용되고 있으니 some을 사용하는 건 어떨까요~!

Copy link
Collaborator Author

@jhy979 jhy979 Oct 9, 2022

Choose a reason for hiding this comment

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

아맞네요 좋아요

6576704

@jhy979 jhy979 force-pushed the feature/737-edit-schedule-category branch from 6576704 to 808394b Compare October 9, 2022 12:44
@jhy979 jhy979 requested a review from dayelop October 9, 2022 12:44
Copy link
Collaborator

@dayelop dayelop left a comment

Choose a reason for hiding this comment

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

확인했습니다 조와요~~~!

근데 수정한 코드를 강제 푸쉬로 반영하는 이유도 궁금하네요 🤔
로그를 깔끔하게 가져가고 싶어서?! 인가요?

@jhy979
Copy link
Collaborator Author

jhy979 commented Oct 9, 2022

커밋이 이정도로 간단하면 돌려서 하나로 합쳐버리자고 생각하고 한 번 해봤는데

더 귀찮네요 ㅋㅋ 다음엔 그냥 하려구요!

@jhy979 jhy979 force-pushed the feature/737-edit-schedule-category branch from 808394b to 5a6b66c Compare October 9, 2022 14:49
@jhy979 jhy979 merged commit 47cdd35 into woowacourse-teams:develop Oct 9, 2022
@hyeonic hyeonic mentioned this pull request Oct 19, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 새로운 기능 frontend 프론트엔드
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants