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] 핑글 개최 프로세스 - 내용요약/확인 뷰 구현 #65

Merged
merged 22 commits into from
Jan 9, 2024

Conversation

HAJIEUN02
Copy link
Collaborator

@HAJIEUN02 HAJIEUN02 commented Jan 9, 2024

Related issue 🛠

Work Description ✏️

  • 개최 프로세스 과정에서 로컬에 저장된 정보들 한번에 출력
  • 핑글 제목이 2줄인 경우 고려
  • 선택된 CategoryType에 따라 칩/핑글 제목 색상 변화
  • HH:MM;SS 형태 가공해 출력 -> 오전 오후 떼고 시간만 출력하라고 디자인 전달받음 오늘!
  • 번개 제목 스타일 변경으로 인한 text_appearance 추가 및 적용

Screenshot 📸

XRecorder_10012024_001717.mp4

Uncompleted Tasks 😅

  • 개최 프로세스 버튼 활성/비활성화 조건 확인 후 연결

To Reviewers 📢

이제 큰 산은 넘었슴미다..... 허엉ㅜ step0 후딱 하구 피알 올릴게욥
커밋메시지가 뭔가 이슈번호가 좀 왔다갔다인데 저도 왜그런지 모르겠어요
뷰모델 때문에 브랜치 옮겨다니면서 작업해서 그런듯.......
깃허브 아직 참 어렵ㄸㅏ..

Comment on lines 56 to 67
<activity
android:name=".presentation.ui.main.plan.PlanActivity"
android:exported="false"
android:exported="true"
android:windowSoftInputMode="adjustNothing"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity" />
tools:ignore="LockedOrientationActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기 복구 시켜주세요

Comment on lines 25 to 27
viewModel.selectedCategory.flowWithLifecycle(lifecycle).onEach {
Timber.tag("observe:categoryType").d(viewModel.selectedCategory.value?.name.toString())
}.launchIn(lifecycleScope)
Copy link
Collaborator

Choose a reason for hiding this comment

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

timber나 로그 코드 모두 삭제해주세요

badgePlanSummaryConfirmationCategory.setBadgeCategoryType(category)
tvPlanSummaryConfirmationName.setTextColor(colorOf((category.textColor)))
tvPlanSummaryConfirmationName.text = viewModel.planTitle.value
tvPlanSummaryConfirmationOwnerName.text = "개최자"
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.

넵 API명세서에 있는 거 씁니둥,,

Comment on lines 113 to 114
<string name="plan_summary_confirmation_recruitment_number">%1$s명</string>
]
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.

string 동적으로 넣어줄 때 첫번째 매개변수라는 뜻인데 여기서는 하나밖에 없으니까 그냥 %s로 변경하겠습니당~

tvPlanSummaryConfirmationName.text = viewModel.planTitle.value
tvPlanSummaryConfirmationOwnerName.text = "개최자"
tvPlanSummaryConfirmationCalenderDetail.text =
viewModel.planDate.value + "\n" + makeTimeClean(viewModel.startTime.value) + " ~ " + makeTimeClean(viewModel.endTime.value)
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.

이건 나중에 서버통신으로 없앨 부분이라 그냥 둘게욥

app:layout_constraintStart_toEndOf="@id/iv_plan_summary_confirmation_calendar"
app:layout_constraintTop_toTopOf="@id/iv_plan_summary_confirmation_calendar" />

<TextView
Copy link
Collaborator

Choose a reason for hiding this comment

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

텍스트 최대 길이 확인해주시고 반영해주세요.

app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_plan_summary_confirmation_calender_detail" />

<TextView
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기도 텍스트 최대 길이 확인해주시고 적용해주세요

app:layout_constraintStart_toEndOf="@id/iv_plan_summary_confirmation_recruitment"
app:layout_constraintTop_toTopOf="@id/iv_plan_summary_confirmation_recruitment" />

<TextView
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기도 텍스트 최대 길이 확인해주시고 적용해주세요

app:layout_constraintStart_toEndOf="@id/iv_plan_summary_confirmation_map"
app:layout_constraintTop_toTopOf="@id/iv_plan_summary_confirmation_map" />

<TextView
Copy link
Collaborator

Choose a reason for hiding this comment

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

가운데 정렬 아니에요 피그마 다시 확인하고 수정해주세요

Comment on lines 33 to 43
<!-- Subtitle -->
<style name="TextAppearance.Pingle.Sub.Bold.16" parent="TextAppearance.Pingle">
<item name="android:textSize">16dp</item>
<item name="android:lineHeight">25dp</item>
<item name="android:fontFamily">@font/suit_bold</item>
</style>

<style name="TextAppearance.Pingle.Sub.Bold.18" parent="TextAppearance.Pingle">
<item name="android:textSize">18dp</item>
<item name="android:lineHeight">25dp</item>
<item name="android:lineHeight">22dp</item>
<item name="android:fontFamily">@font/suit_bold</item>
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.

새로운 폰트 스타일 추가됐다고 해서 넣었어염 순서 바꾸고 18 16 다 확인했슴당

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 43 to 48
private fun makeDateClean(date: String): String {
val year = date.substring(0, 4)
val month = date.substring(5, 7)
val day = date.substring(8, 10)
return year + YEAR + month + MONTH + day + DAY
}
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 merged commit 07d6244 into develop Jan 9, 2024
1 check passed
@HAJIEUN02 HAJIEUN02 deleted the feat-plan-summary-confirmation branch January 12, 2024 10:13
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