Skip to content

[FEAT/#89] MyTodo 미완료, 완료 / 서버통신 구현#97

Merged
Marchbreeze merged 15 commits intodevelopfrom
feat/#89-my-todo-finish
Jan 14, 2024
Merged

[FEAT/#89] MyTodo 미완료, 완료 / 서버통신 구현#97
Marchbreeze merged 15 commits intodevelopfrom
feat/#89-my-todo-finish

Conversation

@Marchbreeze
Copy link
Member

⛳️ Work Description

  • 마이투두 미완료 구현
  • 마이투두 완료 구현
  • 아워투두 생성에 Participant List 넘기기
  • 완료, 미완료 애니메이션 설정 (ListAdapter로)

📸 Screenshot

KakaoTalk_Video_2024-01-13-04-11-37.mp4

📢 To Reviewers

  • API 끝 우하하

남은거는

  • tripId 대시보드에서 가져오기
  • 스티키 헤더로 바꾸기
  • 최종 gui 반영하기
  • 초대코드 다이얼로그 만들기

@Marchbreeze Marchbreeze added 상호 🍀 FEAT ✨ 새로운 기능 구현 labels Jan 12, 2024
@Marchbreeze Marchbreeze self-assigned this Jan 12, 2024
@Marchbreeze Marchbreeze requested review from chattymin, crownjoe and leeeyubin and removed request for crownjoe and leeeyubin January 12, 2024 19:19
Copy link
Member

@leeeyubin leeeyubin 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 +66 to +68
putIntegerArrayListExtra(EXTRA_PARTICIPANT_ID, idList)
putStringArrayListExtra(EXTRA_NAME, nameList)
putIntegerArrayListExtra(EXTRA_RESULT, resultList)
Copy link
Member

Choose a reason for hiding this comment

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

ArrayList는 이렇게 받으면 되는군요!

day > 0 -> {
binding.tvOurTodoTitleDown.text = getString(R.string.our_todo_title_down_before).format(day)
binding.tvOurTodoTitleDown.text =
getString(R.string.our_todo_title_down_before).format(day)
Copy link
Member

Choose a reason for hiding this comment

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

format,, 이번에 알아가여

nowMemoLength.value = getGraphemeLength(memo.value)
isFinishAvailable.value =
todo.value?.isNotEmpty() == true && endDate.value?.isNotEmpty() == true
todo.value?.isNotEmpty() == true && endDate.value?.isNotEmpty() == true && participantList.any { it.isSelected }
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
Contributor

@crownjoe crownjoe 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 55 to 56
{ todoModel ->
if (todoModel.allocators.size <= 1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

오!!! ㅇ이렇게 구분하는 군욥

fun onBind(item: TodoModel) {
binding.run {
tvMyTodoItemTitle.text = item.title
tvMyTodoItemDate.text = item.endDate.replace("-", ".") + "까지"
Copy link
Contributor

Choose a reason for hiding this comment

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

오! 요것도 지금 봤는데 이렇게 하면 깔끔하게 할 수 있군ㅇ뇨

val nameList = intent.getStringArrayListExtra(EXTRA_NAME)?.toList() ?: listOf()
val resultList = intent.getIntegerArrayListExtra(EXTRA_RESULT)?.toList() ?: listOf()
viewModel.totalParticipantList =
idList.zip(nameList).zip(resultList) { (id, name), result ->
Copy link
Contributor

Choose a reason for hiding this comment

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

오! .ZIP!!

Copy link
Member

@chattymin chattymin left a comment

Choose a reason for hiding this comment

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

역시 상호스쿨~
LGTM

@Marchbreeze Marchbreeze merged commit f3de42f into develop Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FEAT ✨ 새로운 기능 구현 상호 🍀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] MyTodo 미완료, 완료 / 서버통신 구현

4 participants

Comments