-
Notifications
You must be signed in to change notification settings - Fork 0
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: 꿀조합 상세 페이지 디자인 마이그레이션 #71
Conversation
🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-refbnowycw.chromatic.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
타미 수고했슴니다~~
궁금한게 css 파일에 font size는 그냥 rem 썼던데
따로 글로벌스타일 안 쓴 이유가 있나용???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
우리 이 Title 컴포넌트 통일 해야할 거 같아요.
지금 스토리북에 너무 비슷한게 많네요!
SectionTitle
SectionHeader
PageHeader
NavigableSectionTitle
대충 비슷한 거 찾은 것만 이정도인데, 여기서 더 공통적으로 쓸 수 있는 헤더는 좀 합쳐야할 듯???
이번주 회의 피그마에 topBar라고 디자이너분들이 모아두셨더라구여??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그렇네여 안그래도 이거 한 번 정리 들어가야 할 것 같다고 생각했어요🤔 일단 이번 pr은 냅두고 작업하시면 나중에 합치는걸로 해요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거 지금 제가 작업중임다 일단 머지하구 나중에 제가 갈아끼울게용~~
<CommentTextarea | ||
placeholder="댓글을 입력하세요. (200자)" | ||
<div className={container}> | ||
<img src={CommentImage} width={29} height={29} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alt 추가해주세용~~
<CommentTextarea | ||
placeholder="댓글을 입력하세요. (200자)" | ||
<div className={container}> | ||
<img src={CommentImage} width={29} height={29} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거는 사용자 프사있을 때는 프사 보이는게 아닌가요?!?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아.. 이거 사용자 프사였어요? ㅋㅋㅋㅋㅋㅋㅋ 그냥 아이콘인줄 ㅠ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(사실 나도 모름 ㅎ 근데 아마 프사 같음.... 아마....😇)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
프사가 맞아보이네요
}); | ||
|
||
export const commentItem = styleVariants({ | ||
nickname: [baseText, { fontWeight: 600, whiteSpace: 'nowrap' }], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요 부분 fontWeight는 vars에서 가져와서 쓸 수 있나요???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넹 됩니다! 수정할게여
<div className={boxIconWrapper}> | ||
<div className={boxIcon}> | ||
<SvgIcon variant="box" stroke="#ffffff" width={12} height={12} /> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요 부분은 제 PR 머지되면 가져다쓰면 될 듯~~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고했어요 타미 끝이 보이네요
몇개 코멘트 달았는데 확인해주세요.!
<CommentTextarea | ||
placeholder="댓글을 입력하세요. (200자)" | ||
<div className={container}> | ||
<img src={CommentImage} width={29} height={29} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
프사가 맞아보이네요
<li key={image}> | ||
<img className={recipeImage} src={image} alt={`${title} 꿀조합 사진 ${index}`} width={335} height={290} /> | ||
</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
꿀조합 이미지 화면 폭에 맞춰야해서 유동적으로 크기 변하게 하는건 어떤가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2024-04-07.3.03.25.mov
이렇게 변하는데 이거 말씀하시는건가용?
<ul className={recipeUsedProductsImageList}> | ||
{displaySlice(false, products, 3).map(({ id, name }) => ( | ||
<li key={id}> | ||
<img src={author.profileImage} alt={name} width={48} height={48} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
백엔드에서 오면 상품 사진으로 바뀌는거죠?
mock 데이터 만들고 미리 해도 괜찮아보이네요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
엥 이거 수정해서 올린건데??? 뭔ㄱㅏ 예전 히스토리를 보는듯한..?
export const recipeImage = style({ | ||
width: '100%', | ||
height: 'auto', | ||
borderRadius: 6, | ||
objectFit: 'cover', | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
radius는 없어도 되겠네요
@@ -6,6 +6,7 @@ globalStyle('#root', { | |||
height: '100vh', | |||
maxWidth: 400, | |||
margin: '0 auto', | |||
lineHeight: 1.4, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-mrfhdbasrj.chromatic.com/ |
🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-yxalbqcptb.chromatic.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
타미 리뷰 남겨뒀습니당~
근데 나 궁금한 점
백엔드한테 사용한 상품에 상품 이미지, 상품 별점 추가해야한다고 전달해야함!
백엔드는 사용한 상품에 대한 정보가 따로 있는건가??
아니면 그냥 Product 끌고 오는건가..?
그러면 저 내용은 Product에 추가되는건가???
.storybook/preview-body.html
Outdated
@@ -310,6 +319,19 @@ | |||
d="M11.306 2.916c1.09-1.28 2.76-2.09 4.5-2.09 3.08 0 5.5 2.42 5.5 5.5 0 3.777-3.395 6.855-8.538 11.519l-.012.011a2.161 2.161 0 0 1-2.9.01l-.04-.036c-5.128-4.66-8.51-7.733-8.51-11.504 0-3.08 2.42-5.5 5.5-5.5 1.74 0 3.41.81 4.5 2.09z" | |||
/> | |||
</symbol> | |||
<symbol id="box" fill="none" viewBox="0 0 13 12"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
얘가 지금 저랑 겹치는 아이콘인데, 저는 disk라는 이름으로 해놨거든요?
만약 제 레시피 PR이 먼저 머지되면, 타미가 땡긴후에 지우면 되고
타미 PR이 먼저 머지되면, 제가 땡긴 후에 컴포넌트도 교체할게요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오케............
src/components/Common/Text/Text.tsx
Outdated
...props | ||
}: TextProps<T>) => { | ||
const Component = as || 'p'; | ||
|
||
return ( | ||
<Component className={text({ color, size, weight })} {...props}> | ||
<Component className={cx(text({ color, size, weight }), className)} {...props}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
웅? 이거 밑에 PR에서도 본 거 같은데?
여기서도 사용해야해서 중복으로 넣은 거 맞죠?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넹넹 마자여 밑에 PR이 머지 안돼서 여기도 바꿔놨어요
<div className={container}> | ||
<img src={member?.profileImage} width={29} height={29} alt={`${member?.nickname}의 프로필 사진`} /> | ||
<form className={commentForm} onSubmit={handleSubmitComment}> | ||
<textarea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
placeholder="댓글을 입력하세요. (200자)" | ||
<div className={container}> | ||
<img src={member?.profileImage} width={29} height={29} alt={`${member?.nickname}의 프로필 사진`} /> | ||
<form className={commentForm} onSubmit={handleSubmitComment}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 못땡기게 하는 방법 있으려나..? 찾아볼게요 높이 고정하는거
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
css resize 속성 있슴다
import type { Comment } from '@/types/recipe'; | ||
import { getFormattedDate } from '@/utils/date'; | ||
|
||
interface CommentItemProps { | ||
recipeComment: Comment; | ||
} | ||
|
||
const CommentItem = ({ recipeComment }: CommentItemProps) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요친구는 스토리북 없나요???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅋㅋㅋㅋㅋ이거 전에 급하게 한거라서 없는듯 추가할게요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요 친구도 스토리북!
<SvgIcon variant="box" stroke="#ffffff" width={12} height={12} /> | ||
</div> | ||
<Text size="caption3" weight="medium" color="info"> | ||
어떤 상품을 사용했나요? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 문구가 최신 버전에서 달라진 듯 합니다~
</div> | ||
<ul className={recipeUsedProductsImageList} onClick={handleOpenBottomSheet}> | ||
{displaySlice(true, products, 3).map(({ id, name, image }, idx) => ( | ||
<li key={id} className={productImageItem}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 뭔가 누르면 상품 상세로 넘어가게 될 거 같은데...느낌이...
일단 피그마에 댓글 남겨놨습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 디자이너분이 사용한 상품 바텀시트 뜨고 누르면 이동한다고 합니다~
지금 이 문제로 레시피 PR이 막혀있는 상태인데
레시피 페이지 PR보면 끝쪽에 제가 황펭한테 남긴 질문 참고하시죠.
간략하게 설명하자면 지금 상품 상세는 food/2 나 store/3 이런식으로 가잖아요?
근데 레시피에서 저 상품이 food인지 store인지 알 수가 없단말이에여
그래서 저는 Product에 categoryType 추가하는 방식으로 했는데
황펭이 상품 상세 url을 수정해보자는 의견을 남겼습니당!
좋은 생각이 있나요...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 우리 한 번 시간 내서 논의해보는거 어때요? 지금 계속 텍스트로 대화하니까 이해하기 어렵네요ㅠ 지금 이 문제가 세 명 다 해결해야하는 것 같아서..!
아 그리고 이 컴포넌트 해온도 작업한거 맞죠??!??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 컴포넌트가 그 사용한 상품 말하는 거 맞죠? 그거면 제가 작업했음!
시간 되는 날 말씀해주시져
일단은 황펭의 의견대로 수정했는데 괴상한 에러가 나서 잠시 스탑 했습니다.
66번 맨 마지막 댓글 참고 부탁...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
구조적으로는 문제 없어보여요
해온이 남긴 코멘트 확인해주세요 타미.!
placeholder="댓글을 입력하세요. (200자)" | ||
<div className={container}> | ||
<img src={member?.profileImage} width={29} height={29} alt={`${member?.nickname}의 프로필 사진`} /> | ||
<form className={commentForm} onSubmit={handleSubmitComment}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/types/recipe.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요기 레시피 PR에 있는 type보면 알겠지만, 엄청 많이 바꼈어요.
오늘 추가한 거 알려준다면 favoriteCount가 recipe type에서 빠졌어요.
그래서 recipeDetail type에서 favoriteCount을 추가하면 될 듯 합니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯
src/mocks/data/recipeDetail.json
Outdated
"name": "불닭", | ||
"price": 3000 | ||
"price": 3000, | ||
"rate": 4.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
타미 요 부분 averageRating로 수정 부탁해요!
제가 따로 이슈 팠는데, 기존 파일에는 이게 없어서 제가 고칠 수가 없네용~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
화긴
🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-jjaorxrhhh.chromatic.com/ |
🔗 배포된 storybook 주소: https://65f015a4aed45406385006ee-wetsdhhapg.chromatic.com/ |
타미 확인 완료했습니다! |
Issue
✨ 구현한 기능
(사용한 상품 3개 초과일 때)
📢 논의하고 싶은 내용
🎸 기타
⏰ 일정