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

[REFACTOR/#191] chart CustomView 구현 및 적용 #194

Merged
merged 6 commits into from
Jan 30, 2024

Conversation

chattymin
Copy link
Member

@chattymin chattymin commented Jan 29, 2024

⛳️ Work Description

  • 성향검사 결과 화면 표 -> 커스텀뷰로 변경
  • 값 할당 방식 로직 효율적으로 수정
  • navigate 확장함수 기본값 제거

📢 To Reviewers

  • @crownjoe 제 코드 보고 마이페이지도 따라서 바꾸시면 돼요~~~
  • 세연이도 수정하고 나면 bulletPoint 확장함수를 해당 커스텀뷰 내부 private 함수로 수정하도록 하겠습니다
  • 이슈파고 작업중이시길래 수정 못함!
  • navigate 내부 기본값 삭제했으니까 다들 잊지말고 적용하기 :)

Copy link
Member

@Marchbreeze Marchbreeze left a comment

Choose a reason for hiding this comment

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

아주조아용 최~고

import com.going.presentation.databinding.ViewChartTextviewBinding
import com.going.ui.extension.setBulletPoint

class ChartTextView(context: Context, attrs: AttributeSet) : ConstraintLayout(context, attrs) {
Copy link
Member

Choose a reason for hiding this comment

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

designsystem 패키지 좋네요 !

Copy link
Member

Choose a reason for hiding this comment

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

우와 디자인시스템!!! 좋아요!

Comment on lines +162 to +163
<com.going.presentation.designsystem.textview.ChartTextView
android:id="@+id/tv_chart_first"
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
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.

커스텀뷰 장인이십니다,,, 덕분에 참고하구 갑니당

import com.going.presentation.databinding.ViewChartTextviewBinding
import com.going.ui.extension.setBulletPoint

class ChartTextView(context: Context, attrs: AttributeSet) : ConstraintLayout(context, attrs) {
Copy link
Member

Choose a reason for hiding this comment

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

우와 디자인시스템!!! 좋아요!

Comment on lines +70 to +78
with(profileBoxInfo[0]) {
setChartInfo(tvChartFirst, title, first, second, third)
}
with(profileBoxInfo[1]) {
setChartInfo(tvChartSecond, title, first, second, third)
}
with(profileBoxInfo[2]) {
setChartInfo(tvChartThird, title, first, second, third)
}
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

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 +70 to +78
with(profileBoxInfo[0]) {
setChartInfo(tvChartFirst, title, first, second, third)
}
with(profileBoxInfo[1]) {
setChartInfo(tvChartSecond, title, first, second, third)
}
with(profileBoxInfo[2]) {
setChartInfo(tvChartThird, title, first, second, third)
}
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 +61 to +63
AuthState.SUCCESS -> navigateToScreen<DashBoardActivity>(listOf(Intent.FLAG_ACTIVITY_CLEAR_TOP))
AuthState.FAILURE -> navigateToScreen<SignInActivity>(listOf(Intent.FLAG_ACTIVITY_CLEAR_TOP))
AuthState.TENDENCY -> navigateToScreen<TendencySplashActivity>(listOf(Intent.FLAG_ACTIVITY_CLEAR_TOP))
Copy link
Contributor

Choose a reason for hiding this comment

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

요러케 쓰라는 말씀이시군요 알겟습니답!

@chattymin chattymin merged commit be8daad into develop Jan 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REFACTOR] Tendency Result / 중복 UI 및 할당 코드 커스텀뷰
4 participants