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

칸반보드를 캘린더에 연동 #29

Open
wants to merge 43 commits into
base: main
Choose a base branch
from

Conversation

hyuckkim
Copy link
Collaborator

@hyuckkim hyuckkim commented Mar 3, 2024

calendar가 글 document를 가지도록 구현할 거라고 가정하고, 칸반보드와 연결 시 해당하는 boardDocument까지 Date 값을 전달하는 코드입니다.

다음 작업을 합니다:

  • 연결된 캘린더를 가져옵니다. (캘린더가 삭제되었다면 연결된 캘린더 정보를 삭제합니다)
  • 캘린더 데이터를 파싱해 month와 index로 이루어진 값을 Date로 바꾸고, key가 Id<"documents">인 Map을 만듭니다.
    (calendar가 Id<"documents">인 값을 가지고 있으므로 이 부분에서 아무것도 하지 않습니다, 결과적으로 이 pr 전체가 아무것도 하지 않게 됩니다)
  • boardDocument에 자기 document에 맞는 calendar 값을 전달합니다.
  • boardDocument에서 formatDistance를 사용해 Date 값을 표시합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants