-
Notifications
You must be signed in to change notification settings - Fork 5
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
[FE] 새로운 방 비교 페이지를 퍼블리싱하고 비교 지도를 만든다. #958
Conversation
구경왔어요 근데 충돌나요~! |
스샷넣어주세요~ |
const options = { | ||
center, | ||
level: 3, | ||
const createMarker = (kakao: any, map: any, position: any, color: 'primary' | 'secondary', title?: string) => { |
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.
map 참조 에러 때문에 위험하다고 판단해 createMap 로직을 지웠습니다.
@@ -58,7 +58,7 @@ const S = { | |||
display: flex; | |||
justify-content: flex-start; | |||
align-items: center; | |||
min-width: 70px; | |||
min-width: 5rem; |
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.
네이밍은 RoomCompare
가 더 끌리네요
수고하셨습니다
<svg {...rest} width="27" height="28" viewBox="0 0 27 28" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<svg {...rest} width={width ?? ''} height="28" viewBox="0 0 27 28" fill="none" xmlns="http://www.w3.org/2000/svg"> |
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.
good.tsx는 width ?? '29'되어있는데
bad.tsx는 width ?? '' 된 것은 의도된 것일까요?
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.
앗 실수했네요! 감사합니다:)
width: ${({ isCircle, size }) => | ||
isCircle && size === 'medium' ? '2rem' : isCircle && size === 'small' ? '1.4rem' : null}; |
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.
const sizeMap = {small:'1.4rem', medium:'2rem'};
해놓고
width: ${({ isCircle, size }) => | |
isCircle && size === 'medium' ? '2rem' : isCircle && size === 'small' ? '1.4rem' : null}; | |
width: ${({ isCircle, size }) => isCircle && sizeMap[size]}; |
로 간결화할수있을거같네요
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.
얼굴 이모지들이 죽지 않고 돌아왔네요...~~~ ㅋㅋㅋㅋㅋ
수고하셨습니당 그런데 지금 백엔드 코드가 아직 없어서 그런걸까요? 목 데이터가 코드 내에 포함되어 있네요 확인부탁드려욜~!
FaceBadIcon, | ||
FaceGoodIcon, | ||
FaceNoneIcon, | ||
FaceSosoIcon, |
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.
ㅎㅎㅎㅋㅋ죽지 않고 돌아온~~
const MIN_GOOD_SCORE = 70; | ||
const MIN_SOSO_SCORE = 30; |
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.
상수처리로 분리되면 좋을거 같네용
openCategoryModal: (roomId: number, categoryId: number) => void; | ||
} | ||
|
||
const EmptyIndicator = ' - '; |
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.
분리하니까 깔끔하네요!
import { roomsForCompare } from '@/mocks/fixtures/roomCompare'; | ||
|
||
export const roomCompareHandlers = [ | ||
http.get(BASE_URL + ENDPOINT.CHECKLIST_QUESTION, () => { |
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.
endpoint가 이게 맞나용?
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.
아직 api url을 안써서 대충 집어넣었나 봐요..😅 고쳐서 올렸습니다!!감사합니다
const optionMock = [ | ||
{ optionName: '세탁기', hasRoom1: true, hasRoom2: false }, | ||
{ optionName: '세탁기', hasRoom1: true, hasRoom2: false }, | ||
{ optionName: '세탁기', hasRoom1: true, hasRoom2: false }, | ||
{ optionName: '세탁기', hasRoom1: true, hasRoom2: false }, | ||
{ optionName: '세탁기', hasRoom1: true, hasRoom2: false }, | ||
{ optionName: '세탁기', hasRoom1: true, hasRoom2: false }, | ||
]; |
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.
api 데이터 대신 쓴 목데이터 입니다! pr 메세지에 언급했다시피 현재 api 관련 데이터 로직이 안들어가 있어요 (코드 변경이 너무 많아져서요!) 다음 pr에 올리도록 하겠습니다!
frontend/src/utils/mapHelper.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.
👍👍👍
❗ Issue
✨ 구현한 기능
비교 페이지의 새로운 디자인과 퍼블리싱을 완료했습니다.
카테고리 별 평균 값을 % 단위로
서버에서 받아오며, 이에 대한 디테일은 버튼을 누르면 모달 형식으로 띄우려고 합니다. 현재 디자인을 진행 중에 있어 다음 PR에 올리겠습니다.지도 안에 들어가는 비교 지도도
RoomCompareMap
이라는 이름으로 만들었습니다.📢 논의하고 싶은 내용
현재 방 비교 관련 네이밍을 RoomCompare로 지정한 상태인데 정확히 말하면 ChecklistCompare라 이 둘중에서 고민이 되었네요! 어떻게 생각하시나요?
🎸 기타
방 비교 선택 페이지도 곧 만들 예정입니다.