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/#875] fortune amulet TodayFortuneCard API #876

Open
wants to merge 8 commits into
base: feature/873
Choose a base branch
from

Conversation

chattymin
Copy link
Member

What is this issue?

  • api 연결

Reference

fortuneAmulet.mp4

X버튼과 "홈으로가기" 버튼의 경우 모듈간 이동이기 때문에 알림관련 연결 후 작업 예정입니다.

@chattymin chattymin self-assigned this Sep 27, 2024
@chattymin chattymin requested a review from a team as a code owner September 27, 2024 16:39
Copy link

height bot commented Sep 27, 2024

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Comment on lines +59 to +61
state.isLoading -> {
// Loading View
}
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 Author

Choose a reason for hiding this comment

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

저도 그렇게 생각합니다!
해당 피쳐의 다른 뷰도 비워뒀길래 같이 비워뒀다가 pm/pd에게 건의 후 확정이 된다면 동시에 적용하도록 하겠습니다 :)

paddingValue: PaddingValues,
description: String,
name: String,
imageColor: Color,
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

Choose a reason for hiding this comment

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

Suggested change
imageColor: Color,
description: @Composable ColumnScope.() -> Unit

카드 설명 텍스트를 이렇게 description으로 받아와서 그리는 방법도 있을 것 같아요.

Copy link
Member Author

Choose a reason for hiding this comment

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

확장성을 생각한 조언 감사합니다!
반영하도록 할게요 :)


private fun parseColor(colorCode: String): Color {
val color: Color = try {
Color(android.graphics.Color.parseColor(colorCode))
Copy link
Member

Choose a reason for hiding this comment

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

typealias 써보는건 어떨지?

Copy link
Member Author

Choose a reason for hiding this comment

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

오호 이건 생각을 못해본 방법이네요!
적용했습니다 :)

navigateToFortuneDetail: (String) -> Unit,
) {
val date = remember { getTodayInfo() }
val date = rememberSaveable { getTodayInfo() }
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
val date = rememberSaveable { getTodayInfo() }
val date = rememberSaveable { getToday() }

이건 어떤가요?

Copy link
Member Author

Choose a reason for hiding this comment

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

좋은거 같습니다!
굳이 Info를 붙일 필요가 없어보이네요

Copy link
Member

@l2hyunwoo l2hyunwoo left a comment

Choose a reason for hiding this comment

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

크게 수정할건 없군요 좋습니다.

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.

2 participants