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] 핑글 개최 프로세스 - 장소 선택 뷰 구현 #37

Merged
merged 37 commits into from
Jan 7, 2024

Conversation

HAJIEUN02
Copy link
Collaborator

@HAJIEUN02 HAJIEUN02 commented Jan 5, 2024

Related issue 🛠

Work Description ✏️

  • 검색창 구현
  • 검색결과 리사이클러뷰 구현
    • scroll 프레임만 스크롤되는 영역
    • ItemDecoration으로 구분선 출력
    • 단일선택 : item 클릭 시 체크 아이콘 변경
  • 검색 결과 없는 경우 텍스트뷰 visible 처리
  • item 클릭한 경우에만 버튼 활성화
  • 나가기/이전 아이콘 클릭리스너 구현

Screenshot 📸

Uncompleted Tasks 😅

  • 아이템 클릭 시 체크 및 버튼 활성화는 마지막에 한 번에 구현할 예정!

To Reviewers 📢

드.디.어 끝
코리 반영해서 로직 더 깔끔하게 수정하고 UiState 이용하는 건 일단 1차 스프린트 뷰 구현 다 끝나구..
리팩하는 걸루 하겠습니다ㅜ,ㅜ
바쁜 와중에 열심히 코리 달아준 지현 언니에게 사랑을 찬사를 칭찬을

@HAJIEUN02 HAJIEUN02 added this to the 1차 스프린트 뷰 작업 milestone Jan 5, 2024
@HAJIEUN02 HAJIEUN02 self-assigned this Jan 5, 2024
@HAJIEUN02 HAJIEUN02 requested a review from a team as a code owner January 5, 2024 14:37
@HAJIEUN02 HAJIEUN02 changed the title Feat plan location [feat] 핑글 개최 프로세스 - 장소 선택 뷰 구현 Jan 5, 2024
@jihyunniiii
Copy link
Collaborator

PR 내용 업데이트 해주세용 ~

Copy link
Collaborator

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

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

수고하셨습니당 !! 아래 내용들과 코드리뷰 확인해서 수정사항 반영해주세용

  1. plan 패키지 내부에 planlocation 패키지 만들어서 관련 내용들을 다시 폴더링 해주세요
  2. diffcallback 만들어져 있는 걸로 사용해주세요.
  3. 디바이더 공통적으로 사용되므로 폴더링, 네이밍 다시 부탁합니당 (그리고 현재 디바이더 안 보이는데 수정 부탁드려요)
  4. plan 내부 fragment 들이 planViewModel을 공유하는 로직이므로 planLocationViewModel의 내용을 planView 모델로 옮겨주시고 planLocationViewModel 삭제해주세요.
  5. 전체 액티비티에 기본적으로 좌우마진이 들어간다는 것을 생각해서 좌우 마진 다시 설정해주세요!
  6. 검색창 수정해주세요 ~

추가적으로,, 엠티뷰 나오는 거 확인 했나용?? 확인한 내용 pr에 업데이트 해주세요.

Copy link
Collaborator

Choose a reason for hiding this comment

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

domain 레이어에 적어주면 됩니다.

import org.sopt.pingle.R
import org.sopt.pingle.databinding.ActivityPlanLocationBinding

class PlanLocationActivity : AppCompatActivity() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

바인딩 액티비티 사용해주세요. 그리고 나중에 다은이 피알 머지되면 다은이가 만든 액티비티 사용해주세용


class PlanLocationAdapter :
ListAdapter<PlanLocationModel, PlanLocationAdapter.PlanLocationViewHolder>(
PlanLocationDiffCallback(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

확장함수로 DiffCallback 만들어 두었으니 그거 사용하시면 됩니다. 따로 만들 필요 없어요.

ListAdapter<PlanLocationModel, PlanLocationAdapter.PlanLocationViewHolder>(
PlanLocationDiffCallback(),
) {
private var planLocationList: List<PlanLocationModel> = emptyList()
Copy link
Collaborator

Choose a reason for hiding this comment

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

listAdapter로 만들면 따로 만들어줄 필요 없어요

app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/tv_plan_location_empty_info"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
android:id="@+id/tv_plan_location_empty_info"
android:id="@+id/tv_plan_location_empty_detail"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

고쳤티비

android:id="@+id/tv_plan_location_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing16"
Copy link
Collaborator

Choose a reason for hiding this comment

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

좌우 기본 마진이 16dp 라는 것 고려해서 좌우 마진 다시 잡아주세요 (전체적으로)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

전체적으루 16dp 깔려있는거 고려해서 다 수정했어염!

tools:text="상세 주소" />

<ImageView
android:id="@+id/imv_plan_location_check"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
android:id="@+id/imv_plan_location_check"
android:id="@+id/iv_plan_location_check"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

앗촤촤~ 바꿈용.

@@ -48,4 +48,13 @@

<!-- map modal -->
<string name="map_modal_description">이 핑글에 참여할까요?</string>

<!-- Plan Location -->
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<!-- Plan Location -->
<!-- plan location -->

Copy link
Collaborator

Choose a reason for hiding this comment

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

되돌려 주세용

@HAJIEUN02 HAJIEUN02 requested review from Dan2dani, Doreminwoo, jihyunniiii and a team and removed request for Dan2dani, Doreminwoo and jihyunniiii January 7, 2024 16:15
Copy link
Collaborator

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

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

수고핑

@HAJIEUN02 HAJIEUN02 merged commit 28d9a89 into develop Jan 7, 2024
1 check passed
@jihyunniiii jihyunniiii deleted the feat-plan-location branch January 7, 2024 20:10
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] 핑글 개최 프로세스 - 장소 선택 뷰 구현
2 participants