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

Feature/mz 130 수수 통계 #120

Merged
merged 18 commits into from
Feb 3, 2024
Merged

Conversation

yangsooplus
Copy link
Member

💡 Issue

🌱 Key changes

  • 수수 통계 화면 작업했습니다.
  • AnimatedCounterText라는 숫자 애니메이션 Text 컴포넌트를 추가했습니다.

✅ To Reviewers

  • 수수 통계에서 수치와 항목이 바뀌었을 때, 무엇이 바뀌었는지 잘 알아채기 힘들어서 임의로 애니메이션 넣어봤습니다.
    • 요건 PR 머지 전에 디자이너님께 컨펌 받거나 논의해서 수정하는 방향으로 진행해볼게요
  • 숫자 애니메이션은 좀더 촤자자자작 타타타타닥 하고 싶었는데, 금방 못하겠어서 타협했습니다.

📸 스크린샷

default.mp4

@yangsooplus yangsooplus self-assigned this Feb 1, 2024
Copy link
Member

@jinukeu jinukeu 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 109 to 133
title = "지금 평균 수수 보기",
age = stringResource(id = R.string.word_age_unit, uiState.age.num),
money = uiState.susuStatistics.averageSent,
relationship = uiState.relationship.relation,
category = uiState.category.name,
onAgeClick = onClickAge,
onCategoryClick = onClickCategory,
onRelationshipClick = onClickRelationship,
)
StatisticsHorizontalItem(
title = "관계 별 평균 수수",
name = uiState.susuStatistics.averageRelationship.title,
money = uiState.susuStatistics.averageRelationship.value,
isActive = !isBlind,
)
StatisticsHorizontalItem(
title = "경조사 카테고리 별 평균 수수",
name = uiState.susuStatistics.averageCategory.title,
money = uiState.susuStatistics.averageCategory.value,
isActive = !isBlind,
)

RecentSpentGraph(
isActive = !isBlind,
graphTitle = "올해 쓴 금액",
Copy link
Member

Choose a reason for hiding this comment

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

string Res 분리해주시면 감사하겠습니다.

Copy link
Member Author

Choose a reason for hiding this comment

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

chore: stringRes 분리

잠결에 깜박했내여 ㅎㅎ;

val categoryConfigResult = getCategoryConfigUseCase()
val relationshipConfigResult = getRelationShipConfigListUseCase()

if (categoryConfigResult.isSuccess && relationshipConfigResult.isSuccess) {
Copy link
Member

Choose a reason for hiding this comment

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

Fail인 경우도 추가하면 좋을거같아요
만약 실패했다면 아무런 통계 화면이 안나올 것 같은데 에러 메세지가 없다면 UX 저하가 발생해서요~

Copy link
Member Author

Choose a reason for hiding this comment

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

feat: 통계 옵션을 불러오지 못했을 경우 핸들링

실패한 쪽의 Exception을 스낵바로 띄우로독 했습니다

Copy link
Member Author

Choose a reason for hiding this comment

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

는 디폴트 Throwable 하나 넣었더니 cicd에 걸렷네요 다시 수정할게요

@yangsooplus yangsooplus merged commit b85153c into develop Feb 3, 2024
1 check passed
@yangsooplus yangsooplus deleted the feature/MZ-130-susu-statistics branch February 8, 2024 18:17
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.

[Feat] 수수 통계
2 participants