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] 나의 단체 뷰 구현 #201

Merged
merged 24 commits into from
Mar 1, 2024
Merged

[feat] 나의 단체 뷰 구현 #201

merged 24 commits into from
Mar 1, 2024

Conversation

HAJIEUN02
Copy link
Collaborator

@HAJIEUN02 HAJIEUN02 commented Feb 24, 2024

Related issue 🛠

Work Description ✏️

  • 현재 단체 정보 : LocalDataSource에 저장
  • 현재 내 단체 - 메뉴
    • 메뉴 아이콘 클릭 시 visible/invisible 처리
    • 메뉴-초대코드 복사하기 : ClipboardManager
    • 메뉴-초대코드 복사하기 : 복사 완료 시 CustomSnackbar 띄우기
    • 메뉴-공유하기 : chooser
  • Scroll 영역
    • 멀티뷰타입 사용, viewType 2개(단체장 왕관 타입, 기본 타입)
    • 단체 클릭 시 해당 단체로 변경 프로세스 : CustomDialogFragment
  • 하단 '새로운 단체 추가하러 가기' 텍스트뷰 버튼 : 신규 단체 생성 프로세스로 이동

Screenshot 📸

XRecorder_01032024_145050.mp4

Uncompleted Tasks 😅

  • 단체 변경 로직
  • 모달 새로 만들기(detail이 없는 모달이 나의 단체 뷰에 있어서 마진 값 수정된 버전의 모달이 필요합니다!)
  • chip 머지되면 적용(현재 PingleBadge로 되어있음)

To Reviewers 📢

단체 변경 프로세스를 구현을 하긴 했는데 더 깔끔하게 바꾸고 싶어요.. 그러나
오늘이 뷰 마감이다보니...... 온보딩 코드리뷰부터 반영하러 갈게욥

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.

복사하기나 공유하기 누르고 나서 띄워져있는 뭐라고 해야하지 네모 박스 안사라져도 되나영?

@@ -55,6 +55,26 @@ class PingleLocalDataSourceImpl @Inject constructor(
get() = pref.getString(GROUP_NAME, "") ?: ""
set(value) = pref.edit { putString(GROUP_NAME, value) }

override var meetingCount: String
Copy link
Collaborator

Choose a reason for hiding this comment

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

오옹,, 이 정보 서버에서 아무것도 안내려주는건가요..? 어느 api에서도,,?

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.

이거 단체 디테일 조회 API 있어서 그거 사용하면 될 듯 합니다 ~

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

api 연동하면서 로직도 수정하겠습니다! localStorage에는 정말 필요한 정보만 집어넣어두는 걸로 할게욥!!


override fun getItemViewType(position: Int): Int {
return if (currentList[position].isOwner) {
2
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 Author

Choose a reason for hiding this comment

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

넹 반영해서 상수화 했숨다!!

@jihyunniiii
Copy link
Collaborator

선생님 이거 지금 빌드가 안 되는 것 같은데 확인 한 번만 부탁드려용 ! 일단 빌드 되게 바꿔놓고 코리 달고 있을게용

@HAJIEUN02
Copy link
Collaborator Author

HAJIEUN02 commented Feb 25, 2024

선생님 이거 지금 빌드가 안 되는 것 같은데 확인 한 번만 부탁드려용 ! 일단 빌드 되게 바꿔놓고 코리 달고 있을게용

어 마자요 그 모달 이미 만들어져 있는 거에 detail이 null이어야 작동해서 그렇게 수정해두고 커밋은 안 했거든욥
빌드 오류 나는게 마자용 ㅜ.ㅜ 띄우는거 테스트해보려고 코드만 작성해뒀어요
암튼 그래서 그 모달은 새로 만들 겁니당!!

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.

수고하셨숩니당

@@ -55,6 +55,26 @@ class PingleLocalDataSourceImpl @Inject constructor(
get() = pref.getString(GROUP_NAME, "") ?: ""
set(value) = pref.edit { putString(GROUP_NAME, value) }

override var meetingCount: String
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 단체 디테일 조회 API 있어서 그거 사용하면 될 듯 합니다 ~

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:gravity="center"
Copy link
Collaborator

Choose a reason for hiding this comment

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

wrapcontent로 해줬으면 이거 안 줘도 되지 않나요?

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_my_group_move_new_group"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
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 Author

Choose a reason for hiding this comment

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

이거 빼면 리사이클러뷰 영역이 밑으로 주욱 늘어나서 얘가 안 보여염!!

android:id="@+id/layout_my_group_menu"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_marginEnd="7dp"
Copy link
Collaborator

Choose a reason for hiding this comment

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

top margin 없서욤

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

여기 패딩 때문에 겹치는 영역인데 마진을 뭘로 해야 되는걸까여,,?!

Comment on lines 263 to 272
<TextView
android:id="@+id/tv_my_group_menu_share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:text="@string/my_group_menu_share"
android:textAppearance="@style/TextAppearance.Pingle.Body.Med.14"
android:textColor="@color/g_03"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

얘도 마진 end 빼고 좌 우 정렬을 초대코드 복사하기 텍스트에 맞추는 게 좋겠네용

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

저기 마진end는 의미가 없어서 지웠습니다! 좌우정렬은 어떤 식으로 맞춰야 하나요?? 메뉴가 공유랑 복사 칸 하나씩 묶여있어서요ㅜ

Comment on lines 91 to 98
AllModalDialogFragment(
title = getString(R.string.my_group_modal_move_question, viewModel.getGroupName()),
detail = null,
buttonText = getString(R.string.my_group_modal_change),
textButtonText = getString(R.string.my_group_modal_back),
clickBtn = { chageToNewGroup() },
clickTextBtn = { }
).show(supportFragmentManager, CHANGE_MODAL)
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 Author

Choose a reason for hiding this comment

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

넹 확인했서요 AllModalFragment 같은 칭구를 하나 더 만들어서 띄우려구요! 테스트용으로 썼습니둥

@jihyunniiii
Copy link
Collaborator

좀 전에 단 코리 fda97c8 이 커밋까지만 보고 단겁니다 ㅠ..ㅠ

Copy link
Member

@Doreminwoo Doreminwoo left a comment

Choose a reason for hiding this comment

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

고생하셨어용~~!!!!!!!!

Comment on lines 83 to 87
if (viewModel.getMyGroupIsOwner()) {
ivMyGroupNowOwner.visibility = View.VISIBLE
} else {
ivMyGroupNowOwner.visibility = View.INVISIBLE
}
Copy link
Member

Choose a reason for hiding this comment

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

코드가 한줄인경우 대괄호를 빼는게 예쁜거같아요!

Suggested change
if (viewModel.getMyGroupIsOwner()) {
ivMyGroupNowOwner.visibility = View.VISIBLE
} else {
ivMyGroupNowOwner.visibility = View.INVISIBLE
}
if (viewModel.getMyGroupIsOwner()) ivMyGroupNowOwner.visibility = View.VISIBLE
else ivMyGroupNowOwner.visibility = View.INVISIBLE

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이게ㅜㅜ 저도 그렇게 쓰고싶은데 컨트롤 엘이었나 린트였나 돌리면 일케 바뀌더라구요.. if~else문에 braces 없으면 안 좋다 어쩌구 하면서•• 참나!!

Copy link
Collaborator

Choose a reason for hiding this comment

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

저는 가독성 때문에 if, else 괄호 치는게 좋음 ㅋㅋ 개취인듯여 ~~

Comment on lines 16 to 24
fun Logging() {
Log.e("localStorage", localStorgae.groupId.toString())
Log.e("localStorage", localStorgae.groupName)
Log.e("localStorage", localStorgae.meetingCount)
Log.e("localStorage", localStorgae.participantCount)
Log.e("localStorage", localStorgae.isOwner.toString())
Log.e("localStorage", localStorgae.groupKeyword)
Log.e("localStorage", localStorgae.code)
}
Copy link
Member

Choose a reason for hiding this comment

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

로그는 피알 올릴 때 삭제해주거나 팀버로 바꿔주는게 좋을 것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

헉스 ㅎㅅㅎ 바로 삭제하게쑴당

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.

카페 도착해서 마저 달겠습니당

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.

쏘굿도링 얘네만 수정해주세용

Comment on lines 80 to 84
if (selectedMyGroup?.isOwner == true) {
ivMyGroupSelectedOwner.visibility = View.VISIBLE
} else {
ivMyGroupSelectedOwner.visibility = View.INVISIBLE
}
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
if (selectedMyGroup?.isOwner == true) {
ivMyGroupSelectedOwner.visibility = View.VISIBLE
} else {
ivMyGroupSelectedOwner.visibility = View.INVISIBLE
}
ivMyGroupSelectedOwner.visibility = if (selectedMyGroup?.isOwner == true) View.VISIBLE else View.INVISIBLE

이렇게 적을 수도 있답니다

Copy link
Collaborator Author

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.

마이 그룹에서만 쓰는 거니까 마이 그룹으로 이동 ㄱㄱ 해주세염

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넴넴이

Comment on lines 31 to 35
val intent = Intent(Intent.ACTION_SEND_MULTIPLE).apply {
type = SHARE_TYPE
putExtra(Intent.EXTRA_TEXT, shareContent)
}
startActivity(Intent.createChooser(intent, null))
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
val intent = Intent(Intent.ACTION_SEND_MULTIPLE).apply {
type = SHARE_TYPE
putExtra(Intent.EXTRA_TEXT, shareContent)
}
startActivity(Intent.createChooser(intent, null))
Intent(Intent.ACTION_SEND_MULTIPLE).apply {
type = SHARE_TYPE
putExtra(Intent.EXTRA_TEXT, shareContent)
startActivity(Intent.createChooser(this, null))
}

요렇게 써도 됩니둥

Copy link
Collaborator Author

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.

뒤에 _20 넣어줘용 안 넣은 것들 다

Copy link
Collaborator Author

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.

이거 뭔가 다 12인데 디자인 측에서 잘못한 것 같기두,,,??? 한 번 여쭤봐영

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이거 뭔가 다 12인데 디자인 측에서 잘못한 것 같기두,,,??? 한 번 여쭤봐영

이거 의도한 거 맞는 것 같기두 해여 그 왕관 visible했을 때 오른쪽 아래가 12면 아래 테두리가 살짝쿵 보이더라구욤??

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 Author

Choose a reason for hiding this comment

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

넹 피그마 코멘트 남겨놔쑴다~!

@jihyunniiii jihyunniiii self-requested a review March 1, 2024 12:31
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 7969101 into develop Mar 1, 2024
1 check passed
@jihyunniiii jihyunniiii deleted the feat-my-group branch March 3, 2024 00:36
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] 나의 단체 뷰 구현
4 participants