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

#35 한판승부생성 화면전환 기능 구현 #54

Merged
merged 8 commits into from
Jul 18, 2023

Conversation

rkdmf1026
Copy link
Contributor

@rkdmf1026 rkdmf1026 commented Jul 18, 2023

📌 관련 이슈

closed #35

📷 screenshot

KakaoTalk_20230718_231731588.mp4

📝 Work Desciption

  • 한판승부 <-> 미션상세 화면전환시 MissionIdPosition 값 전달
  • 한판승부 생성, 나가기 다이얼로그 기능 구현
  • 미션상세뷰 뷰모델 생성 및 데이터바인딩

📚 Reference 혹은 궁금한 사항들

다이얼로그 재사용할 수 있게 만들어둔거 나중에 설명드릴게

@rkdmf1026 rkdmf1026 added feat 구현 및 개선 Pull Request 🔥 풀리퀘 날림 동기 🐐 유니의 정신적 지주 담당 labels Jul 18, 2023
@rkdmf1026 rkdmf1026 added this to the Phase3 milestone Jul 18, 2023
@rkdmf1026 rkdmf1026 requested a review from a team July 18, 2023 14:23
@rkdmf1026 rkdmf1026 self-assigned this Jul 18, 2023
@rkdmf1026 rkdmf1026 force-pushed the feature/#35-createshortgame-function branch from 3035611 to 3d2406e Compare July 18, 2023 14:56
Copy link
Member

@sub101 sub101 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
Contributor

@taeheeL taeheeL left a comment

Choose a reason for hiding this comment

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

나이가 60이다 70이다 하는 것으로 그 사람이 늙었다 젊었다 할 수 없다. 늙고 젊은 것은 그 사람의 신념이 늙었느냐 젊었느냐 하는데 있다. -맥아더

viewModel.missionList.observe(this) {
missionAdapter.submitList(it)
}
viewModel.isCreateSuccess.observe(this) {
if (it == true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (it == true) {
if (it) {

이렇게 바꿔도 되지 않나욤?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

오 맞네 감사요

@@ -89,7 +151,7 @@ class CreateShortGameActivity :
@JvmStatic
@BindingAdapter("setContentLength")
fun setContentLength(view: TextView, length: Int) {
if (length >= MAX_LENGTH) {
if (length > MAX_LENGTH) {
Copy link
Contributor

Choose a reason for hiding this comment

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

저도 수정하겟슴둥

Comment on lines +24 to +59
titleText?.let {
binding.dialogTitle.visibility = View.VISIBLE
binding.dialogTitle.text = it
} ?: kotlin.run {
binding.dialogTitle.visibility = View.GONE
}
bodyText?.let {
binding.dialogBody.visibility = View.VISIBLE
binding.dialogBody.text = it
} ?: kotlin.run {
binding.dialogBody.visibility = View.GONE
}
confirmButtonText?.let {
binding.btnRight.text = it
}
dismissButtonText?.let {
binding.btnLeft.text = it
}

confirmClickListener?.let {
binding.btnRight.visibility = View.VISIBLE
binding.btnRight.setOnClickListener {
confirmClickListener?.invoke()
}
} ?: kotlin.run {
binding.btnRight.visibility = View.GONE
}

dismissClickListener?.let {
binding.btnLeft.visibility = View.VISIBLE
binding.btnLeft.setOnClickListener {
dismissClickListener?.invoke()
}
} ?: run {
binding.btnLeft.visibility = View.GONE
}
Copy link
Contributor

Choose a reason for hiding this comment

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

스코프 함수 장인이네요 ㅎㄷㄷ

import sopt.uni.presentation.entity.MissionIdPosition

class MissionDetailCreateViewModel(savedStateHandle: SavedStateHandle) : ViewModel() {
val missionId = savedStateHandle.get<MissionIdPosition>(MissionDetailCreateActivity.MISSION_ID_POSITION)
Copy link
Contributor

Choose a reason for hiding this comment

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

savedStateHadle 좀 알려줘잉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

나중에 한번 설명할게연

@rkdmf1026 rkdmf1026 merged commit 4188607 into develop Jul 18, 2023
1 check passed
@rkdmf1026 rkdmf1026 deleted the feature/#35-createshortgame-function branch July 18, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 구현 및 개선 동기 🐐 유니의 정신적 지주 담당 Pull Request 🔥 풀리퀘 날림
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[한판승부] 한판승부 <-> 미션상세 전환 기능 구현
3 participants