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/메인 홈 페이지 작업 #53

Merged
merged 15 commits into from
Jun 6, 2024
Merged

Feat/메인 홈 페이지 작업 #53

merged 15 commits into from
Jun 6, 2024

Conversation

rai-95
Copy link
Contributor

@rai-95 rai-95 commented Jun 4, 2024

📖 관련 문서

#52

스크린샷 2024-06-04 오후 9 51 27

✍🏻 변경사항:

  • 메인 페이지 헤더 영역, 필터영역 추가 했습니다!
  • 필터에서 사용되는 값 새로고침시 유지되도록 queryString으로 변경했습니다!
  • 카테고리 등록하는 부분에서 필요한 case는 TODO로 작성해놨습니다!
  • 북마크가 존제하지 않을 경우 Empty 요소 추가했습니다!

🔍 확인할 목록

  • : 메인 페이지 정상 동작 확인

  • : 카테고리 등록 드롭 동작 확인

  • 반응형 부분은 아직 반영못했습니다ㅠㅠ 이후 작업하면서 추가하면 좋을거 같아요

  • useSearchParam 사용하려면 suspense를 사용해야 한다고 하더라구요. fallback 컴포넌트도 추후에 추가해야할거 같습니다!

@rai-95 rai-95 added ✨ feat 구현, 개선 사항에 관련된 내용입니다. 🎨 style UI 관련 이슈입니다. labels Jun 4, 2024
@rai-95 rai-95 requested a review from hoongding June 4, 2024 12:55
@rai-95 rai-95 self-assigned this Jun 4, 2024
Copy link

vercel bot commented Jun 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
packit-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2024 5:27am

Copy link

github-actions bot commented Jun 4, 2024

🚀 Storybook 자동 배포 URL: https://6637bd73cba78215aa6e39fa-vbuajanspi.chromatic.com/

Copy link

github-actions bot commented Jun 4, 2024

🚀 Storybook 자동 배포 URL: https://6637bd73cba78215aa6e39fa-ejlfhpzwqb.chromatic.com/

Copy link
Contributor

@hoongding hoongding left a comment

Choose a reason for hiding this comment

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

성은님! 고생하셨습니다 ㅎㅎ
리뷰 확인 부탁드립니다~

Comment on lines +80 to +92
{isOpenCategory && (
<div className='absolute right-0 top-[calc(100%-8px)] p-8 grid grid-cols-[300px_1fr] gap-8 bg-surface rounded-xl shadow-layer'>
<Textfield
value={category}
onChange={handleChangeCategory}
placeholder='새 카테고리 추가'
isInvalid={isError}
>
<TextfieldInputWrapper>
<TextfieldInput />
{isError && (
<Icon name='warningTriangle_f' className='w-16 h-16 text-icon-critical' />
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

p4;
Category 추가 영역 밖에 클릭하면 닫히는 동작도 추가하면 좋을 것 같아요!

Copy link
Contributor

Choose a reason for hiding this comment

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

ㅎㅎ TODO 에 있었군요!!

Copy link
Contributor

Choose a reason for hiding this comment

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

그리구 이 Category 관련 모달(?) 나오는 것도 Component 화 해도 좋을 것 같습니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵넵! 컴포넌트화 할 수 있는 부분들은 구조화해서 구분하겠습니다!

},
];

const FilterBox = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

p4;
성은님!
Filter query Param으로 구현하신 이유가 있을까요?
state로 관리하는 것과 query Param으로 구현하는 방식 중 뭐가 좋을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

새로고침해도 유지되는 filter라고 생각해서 queryParam으로 구현했습니다! 명세서에도 확정된 부분은 아니라서 변경은 상관없을거 같아요!

만약 유지되야하는 상태라면 queryParam 사용이 좋을거 같아요!

</button>
<Divider direction='vertical' className='h-1/2 mx-2' />
<span className='cursor-pointer flex items-center gap-4 label-md text-text-minimal'>
<Icon name='setting' className='w-20 h-20 ' /> 편집
Copy link
Contributor

Choose a reason for hiding this comment

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

p9999;
style 맨 뒤 space 제거 부탁드립니당ㅎㅎ

Copy link
Contributor Author

Choose a reason for hiding this comment

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

계속 양 옆에 공백이 들어가 있네요...ㅠㅠ

<Button
type='text'
size='medium'
onClick={() => updateQueryString('like-check', String(!isLikeChecked))}
Copy link
Contributor

Choose a reason for hiding this comment

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

p3;
이쪽 like 쪽 클릭을 해도 동작을 안하는 것 같습니다!
확인 한번 부탁드립니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵 확인해보겠습니다!

Copy link

github-actions bot commented Jun 6, 2024

🚀 Storybook 자동 배포 URL: https://6637bd73cba78215aa6e39fa-evhzisjbqv.chromatic.com/

@rai-95 rai-95 merged commit c31e70d into main Jun 6, 2024
4 of 5 checks passed
@rai-95 rai-95 mentioned this pull request Jun 7, 2024
3 tasks
@bbung95 bbung95 self-assigned this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 구현, 개선 사항에 관련된 내용입니다. 🎨 style UI 관련 이슈입니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants