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: 알림 api 연결 및 4차 컴포넌트 UI 구현 #183

Merged
merged 9 commits into from
Sep 25, 2024

Conversation

alwubin
Copy link
Contributor

@alwubin alwubin commented Sep 15, 2024

💡 작업 내용

  • 알림 api 연결
  • 밸런스 게임 컴포넌트 UI 구현
  • 서브태그 및 제목 컴포넌트 UI 구현
  • 상황 입력란 컴포넌트 UI 구현
  • 검색 결과 없을 경우에 대한 메세지 컴포넌트 UI 구현

💡 자세한 설명

✅ Notification

현재 알림 api를 구현은 해두었으나, 오류가 존재해 미해결인 상태입니다.
추후 에러 해결에 대한 이슈를 파 합칠 예정입니다.

✅ BalanceGameButton, SubTag, TitleDescriptionField

  • 밸런스 게임에 대한 api가 확정되지 않아 임시로 props를 넣어두었습니다.
  • 추후 api 픽스 이후 수정 부탁드립니다.

✅ BalanceGameBox

  • 원래는 BalanceGameButton 으로 전체 버튼들을 합치려고 하였으나, 이전에 투표 버튼과 비슷하기도 하고, 버튼 사이에 존재하는 VS 때문에 왼쪽, 오른쪽을 공통된 atom 컴포넌트로 보고 분리하였습니다.
  • 임시로 props값에 values 배열을 넣어두었고, [0]은 왼쪽, [1]은 오른쪽 버튼의 값을 포함하고 있다고 가정하였습니다.

✅ NoResultsMessage

  • 검색 값이 존재하지 않을 시 보여지는 결과값(메세지)에 대한 컴포넌트입니다.
  • props로 유저가 검색한 키워드를 받아오도록 하였습니다.

📗 참고 자료 (선택)

📢 리뷰 요구 사항 (선택)

🚩 후속 작업 (선택)

✅ 셀프 체크리스트

  • PR 제목을 형식에 맞게 작성했나요?
  • 브랜치 전략에 맞는 브랜치에 PR을 올리고 있나요? (master/main이 아닙니다.)
  • 이슈는 close 했나요?
  • Reviewers, Labels, Projects를 등록했나요?
  • 작업 도중 문서 수정이 필요한 경우 잘 수정했나요?
  • 테스트는 잘 통과했나요?
  • 불필요한 코드는 제거했나요?

closes #182

@alwubin alwubin added ✔︎pull requests pull requests 코드 체크 요청 🐛bug 버그 발견 👩🏻‍💻 frontend 프론트엔드 작업 🎨 markup labels Sep 15, 2024
@alwubin alwubin self-assigned this Sep 15, 2024
Copy link
Contributor

@areumH areumH left a comment

Choose a reason for hiding this comment

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

4차 컴포넌트 구현하시느라 수고 많으셨어요!!!!!🙌
코멘트 남긴 부분 수정 부탁드립니다아 🙇‍♀️🙇‍♀️🙇‍♀️

Comment on lines 42 to 49
export const textStyle = css({
color: color.BK,
'::placeholder': {
color: color.GY[1],
},
height: '17px',
minWidth: '627px',
});
Copy link
Contributor

Choose a reason for hiding this comment

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

타이포 속성이 누락된 것 같아요!! 추가 부탁드려용

Copy link
Contributor Author

Choose a reason for hiding this comment

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

수정해두도록 하겠습니다~!

Comment on lines 4 to 6
interface NoResultsMessageProps {
keyword: string;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

톡픽 검색, 밸런스게임 검색, 전체 검색일 때마다 보여지는 텍스트가 달라서 해당 관련 props 추가해야 할 것 같습니다!!

Copy link
Contributor

Choose a reason for hiding this comment

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

추가로 코멘트 드리면, 메시지를 상수화 하고, 케이스 별로 호출하는 방식도 괜찮아보이네요 : )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

수정했습니다✅

selectedButton={selectedButton}
onClick={handleButtonClick}
/>
<div css={S.letterStyle}>VS</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

스토리북 확인해보니 VS 텍스트 위치 조정이 필요할 것 같습니당 수정 부탁드려요!!

Comment on lines +12 to +13

const TitleDescriptionField = (
Copy link
Contributor

Choose a reason for hiding this comment

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

스토리북에서 해당 컴포넌트 input에 입력이 안되는 것 같아요 확인 부탁드립니다 🥹

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
Contributor

@WonJuneKim WonJuneKim left a comment

Choose a reason for hiding this comment

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

4차 UI 구현 고생 많으셨어요!!
스토리북 관련 이슈는 아름님이 대부분 짚어주신 거같네요 :)
추가로 코멘트 드린 부분들 확인 한 번 부탁드립니다! 다시 한번 고생 많으셨습니다 🚀

@@ -25,6 +25,7 @@
"@tanstack/react-query-devtools": "^5.20.2",
"axios": "^1.6.7",
"dayjs": "^1.11.10",
"event-source-polyfill": "^1.0.31",
Copy link
Contributor

Choose a reason for hiding this comment

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

해당 패키지는 SSE 쪽 에러 핸들링을 위해 설치한것인지 궁금합니다!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵 이 패키지는 SSE에 헤더를 넣을 때 필요한 패키지라 설치하였습니다!

Comment on lines 19 to 20
<li>단어의 철자가 정확한지 확인해 보세요.</li>
<li>검색 옵션을 변경해 다시 검색해 보세요.</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분은 상수화 해도 될 거 같습니다!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

수정했습니다✅

Comment on lines 4 to 6
interface NoResultsMessageProps {
keyword: string;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

추가로 코멘트 드리면, 메시지를 상수화 하고, 케이스 별로 호출하는 방식도 괜찮아보이네요 : )

Comment on lines +1 to +3
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
Copy link
Contributor

Choose a reason for hiding this comment

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

태그 속성관련 이슈같은데 해당 lint 에러의 경우

태그를 클릭 가능한 태그로 바꾸면 어느정도 해결이 되더라구요!

const optionB = values[1];

return (
<div css={S.containerStyle}>
Copy link
Contributor

Choose a reason for hiding this comment

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

선택 시 container 전체적인 움직임이 있는거 같아요! flex 속성이나 block 관련 옵션을 추가해주시면 좋을 거 같습니다 !!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

이부분 좀 더 자세히 피드백을 주실 수 있을까요..?😅 수정해보려고 하는데 block을 사용해도 잘안되네요🥹

Copy link
Contributor

Choose a reason for hiding this comment

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

답변이 늦었네요!! 죄송합니다 😢
BalanceGameBox 또는 BalanceGameButton 의 최상단 container에 대해서 boxSizing: 'border-box'를 적용시키는것이 어떨까 하는 코멘트 였습니다!
block은 제가 잘못 기재했네요!! 혼동 드려 죄송합니닷!!

Copy link
Contributor

Choose a reason for hiding this comment

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

스토리 북에 action 시 좌,우 아이템 hover 시 밀림 현상 이 있더라구요! 해당 문제에 대한 해결 방안 이었습니다..!

Copy link
Contributor

@areumH areumH left a comment

Choose a reason for hiding this comment

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

수정 사항 확인했습니다 수고 많으셨어요!!! 🙌

Copy link
Contributor

@WonJuneKim WonJuneKim left a comment

Choose a reason for hiding this comment

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

수정 사항 확인 완료입니다!! 스토리북에서도 화면 비율을 줄여도 같은 비율로 잘 적용되네요! 고생 하셨습니다 :)

flexDirection: 'row',
alignItems: 'center',
position: 'relative',
width: '1122px',
Copy link
Contributor

Choose a reason for hiding this comment

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

아주 잘 적용됩니다!! 🚀🚀🚀

@alwubin alwubin merged commit 757f6f4 into dev Sep 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug 버그 발견 👩🏻‍💻 frontend 프론트엔드 작업 🎨 markup ✔︎pull requests pull requests 코드 체크 요청
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

알림 api 연결 및 4차 컴포넌트 UI 구현
3 participants