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] 메인 지도 뷰 카드 구현 #40

Merged
merged 27 commits into from
Jan 7, 2024
Merged

Conversation

jihyunniiii
Copy link
Collaborator

@jihyunniiii jihyunniiii commented Jan 5, 2024

Related issue 🛠

Work Description ✏️

  • 메인 지도 뷰의 카드를 구현하고 해당 뷰의 분기처리를 진행하였습니다.
스크린샷 2024-01-06 오전 5 40 22

Screenshot 📸

모집 중/참여 신청하지 않은 경우 -> 참여하기 -> 모집완료/참여 신청한 경우 -> 취소하기 -> 모집 중/참여 신청하지 않은 경우

Screen_recording_20240106_054625.mp4

모집 중/참여 신청한 경우 -> 취소하기 -> 모집 중/참여 신청하지 않은 경우

Screen_recording_20240106_055027.mp4

모집 완료/참여 신청하지 않은 경우
스크린샷 2024-01-06 오전 5 53 35

Uncompleted Tasks 😅

  • N/A

To Reviewers 📢

  • 카드 뭘로 구현할 지 고민하다가 걍 커스텀뷰로 구현했어요.
  • 분기처리가 완전 많은 뷰라,, 로직 깔끔하게 짠다고 짰는데도 별로여보이네요 ㅠ
  • 지도 핀 클릭 시 해당 카드 뷰 뜨게하는 로직은 따로 피알 올리겠슴당,,,
  • 참여자 동그라미 그래픽 확정 아니라고 전달 주셔서 동그라미 색상 바뀌는 로직은 구현 안 했습니다! + 참여자 글씨도 좀 깨지는디요,, (하나의 텍스트 뷰로 하려 했는디 ㅋㅋ 나눠야 되나 하암 ! ) 이것도 역시 디자인 확정나면 수정할게염 ㅜ
  • 영상에서 카드뷰를 보면 중간 선에 마진이 안 잡혀있는데요,, 수정 했슴당 (아래 사진 참고) 영상 다시 찍기 귀찮아서요 (자야함 z.z)
스크린샷 2024-01-06 오전 6 11 05

Copy link
Collaborator

@Dan2dani Dan2dani left a comment

Choose a reason for hiding this comment

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

굳 나중에 보겠습니다

@@ -0,0 +1,16 @@
package org.sopt.pingle.domain.model

data class PingleEntity(
Copy link
Collaborator

Choose a reason for hiding this comment

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

네이밍이 어떤 엔티티인지 잘 알아보기 어려운거 같은데 수정하는건 어떨까염!

Copy link
Collaborator

Choose a reason for hiding this comment

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

저도 이 부분 알아보기 좀 힘들다구 느꼈어여ㅜ,ㅜ

)
);

companion object {
Copy link
Collaborator

Choose a reason for hiding this comment

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

우앙 이렇게두 되는군욤 이런건 보통 어떤 경우에 이렇게 상ㅇ하낭?

# Conflicts:
#	app/src/main/res/values/strings.xml
@jihyunniiii jihyunniiii merged commit d183e17 into develop Jan 7, 2024
1 check passed
@jihyunniiii jihyunniiii deleted the feat-main-map-card branch January 7, 2024 14:02
Copy link
Collaborator

@HAJIEUN02 HAJIEUN02 left a comment

Choose a reason for hiding this comment

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

고생했어요🧡

@@ -0,0 +1,16 @@
package org.sopt.pingle.domain.model

data class PingleEntity(
Copy link
Collaborator

Choose a reason for hiding this comment

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

저도 이 부분 알아보기 좀 힘들다구 느꼈어여ㅜ,ㅜ

Copy link
Collaborator

Choose a reason for hiding this comment

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

카테고리 타입 쓰는 거 진짜 좋은 것 같아요

@@ -79,7 +83,20 @@ class MapFragment : BindingFragment<FragmentMapBinding>(R.layout.fragment_map),
chipMapCategoryPlay.setChipCategoryType(CategoryType.PLAY)
chipMapCategoryStudy.setChipCategoryType(CategoryType.STUDY)
chipMapCategoryMulti.setChipCategoryType(CategoryType.MULTI)
chipMapCategoryOthers.setChipCategoryType(CategoryType.OTHER)
chipMapCategoryOthers.setChipCategoryType(CategoryType.OTHERS)
Copy link
Collaborator

Choose a reason for hiding this comment

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

OTHERS로 다 바꾼거 완전 꼼꼼핑

textButtonText = stringOf(R.string.map_cancel_modal_text_button_text),
clickBtn = { mapViewModel.cancelPingle() },
clickTextBtn = { },
onDialogClosed = { binding.cardMap.initLayout(mapViewModel.dummyPingle) }
Copy link
Collaborator

Choose a reason for hiding this comment

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

프래그먼트 이런 식으로 쓰는거 진짜 깔끔하구 좋당..

@@ -38,10 +39,59 @@ class MapViewModel() : ViewModel() {
)
)

var dummyPingle = PingleEntity(
Copy link
Collaborator

Choose a reason for hiding this comment

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

더미데이터 댕기욥다 ㅋㅅㅋ

import org.sopt.pingle.util.view.colorOf
import org.sopt.pingle.util.view.stringOf

@SuppressLint("CustomViewStyleable")
Copy link
Collaborator

Choose a reason for hiding this comment

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

오호이 현재 프로젝트에 설정된 minSdkVersion 버젼 이후에 나온 API를 사용할때 warning을 없애고 사용할 수 있게 합니다.. 라고 하는데 그게 여기서 머길래 SuppressLint를 사용하신건가요?

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="32dp"
Copy link
Collaborator

Choose a reason for hiding this comment

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

dimen을 사용하지 않은 이유가 있는지 궁금합니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[feat] 메인 지도 뷰 카드 구현
3 participants