Skip to content

Conversation

@HongGunWoo
Copy link
Member

생각보다 시간이 오래 걸리는 구현이었습니다;;
지금 상태는 카드 등록을 위한 폼까지만 작업을 해두었습니다.
기타 추가적인 기능과 페이지는 step2에서 구현해보고자 합니다.

배포 링크

미션을 수행하면서 어려웠던 점

  • Primitive UI 형태로 컴포넌트를 작성하는게 아직 이해가 잘 가지 않는 것 같아요. 디자인이 적용되지 않은 원시형태의 컴포넌트를 제작한다는게 원래 제공하고 있는 태그들을 사용하고 있는 것과 무슨차이가 있는건지 이해하기 어려운 것 같습니다.
  • 컴포넌트 나누기 및 파일 구조: 재사용성이 높은 컴포넌트 만들기, 이해하기 쉬운 파일 구조 형성하기는 항상 어려운 고민인 것 같습니다🥲.
  • 라이브러리 사용 최소해해서 직접 구현해보기: 다양한 UI를 제공하는 라이브러리를 사용하지 않고 직접 구현하는 것을 목표로 하였습니다. form을 다루는건 항상 번거로운 작업이라고 생각되네요! 특히 form에 대한 상태관리는 번거롭게 느껴지는 것 같아요.

리뷰 받고 싶은 부분

  • 지금은 form이 완벽하지 않은데 form을 완벽하게 하기 위한 수정사항들을 알고 싶습니다.
  • 하나의 input에 대한 입력이 끝나면 다음 input으로 이동하는 로직이 더 개선될 점이 있는지 알고 싶습니다.
  • Primitive UI로 변경할 수 있는 부분이 있다면 알고 싶습니다.

궁금한 점

  • form 구현할 때 reat-hook-form 외에도 사용하는 꿀같은 라이브러리가 있는지 궁금하네요!

내가 어떤 지점에서 재미를 많이 느끼는지, 희열을 많이 느끼는지, 몰입을 많이 하는지

  • 재사용성이 높은 컴포넌트를 고민하고 만드는 과정이 재미있는 것 같아요. 미리 만들어둔 공통 컴포넌트를 사용할 때 추가/수정하는 과정 없이 바로 사용할 수 있는 상황이 오면 너무 재미있는 것 같습니다.
  • 이번 프로젝트를 하면서 react + TS에 대해 더 많이 공부해보는 계기가 된 것 같아요. TS는 타입 안정성 향상이라는 목적도 있지만 개인적으로는 개발 경험 향상을 위해 사용하면 더 빛을 바란다고 생각되어서 빠르게 안정적으로 구현하기 위해 TS가 어떻게 도움을 줄 수 있을까 고민하고 있습니다.

@HongGunWoo HongGunWoo self-assigned this Jul 22, 2024
@coderabbitai
Copy link

coderabbitai bot commented Jul 22, 2024

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Comment on lines +11 to +30
const Modal = ({ children, showModal, onClose }: ModalProps) => {
const modalLayoutRef = useRef<HTMLDivElement>(null);

const handleClickModalLayout = useCallback(
(e: MouseEvent<HTMLDivElement>) => {
e.currentTarget === e.target && onClose();
},
[onClose]
);

return (
showModal &&
createPortal(
<ModalLayout ref={modalLayoutRef} onClick={handleClickModalLayout}>
{children}
</ModalLayout>,
document.body
)
);
};
Copy link
Contributor

Choose a reason for hiding this comment

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

onClose 라는 이름에 대해서 조금 고민해볼 필요가 있어요!

여기서 onClose는 �close가 발생했을 때 바깥에 알리는 역할일까요?
아니면 close를 실행해주는 역할을 하는걸까요?

반대로, onClose의 정확한 역할은 무엇이 되어야할까요?

<CardBox>
<Card cardInfo={cardInfo} />
</CardBox>
<CardCreateForm cardInfo={cardInfo} setCardInfo={setCardInfo} />
Copy link
Contributor

Choose a reason for hiding this comment

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

setCardInfo 대신에 onChange 같은걸로 받아오면 어땠을까요!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants