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/#918] fortune 추가 구현 #924

Merged
merged 9 commits into from
Oct 20, 2024
Merged

Conversation

chattymin
Copy link
Member

What is this issue?

  • 라이팅 변경
  • 뒤로가기시 화면 전환 로직 수정
  • 오늘의 운세가 아닐 경우 스낵바 추가

Reference

snackBar.mp4

Etc

baseLine이랑 개행 수정하니까 줄수가 쫘자좍 늘어나버리네요 쩝.

@chattymin chattymin self-assigned this Oct 18, 2024
@chattymin chattymin requested a review from a team as a code owner October 18, 2024 06:09
Copy link

height bot commented Oct 18, 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.

Copy link
Contributor

@giovannijunseokim giovannijunseokim 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
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.

topBar 쪽 한번만 봐주실?

modifier = Modifier
.padding(top = 16.dp)
) {
ErrorSnackBar(message = "앗, 오늘의 솝마디만 볼 수 있어요.")
Copy link
Member

Choose a reason for hiding this comment

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

이런 경우라면 SnackbarContent라고 했을 것 같아요!

Copy link
Member

Choose a reason for hiding this comment

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

아니면 ErrorSnackbarContent?

Copy link
Member Author

@chattymin chattymin Oct 18, 2024

Choose a reason for hiding this comment

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

content는 Composable 함수를 파라미터로 받아올 때 주로 사용하는 것으로 생각돼요!
해당 SnackBar의 경우 String값만 받아올 수 있기 때문에 content가 아닌 message라는 이름을 사용했습니다.

혹시 이 부분은 어떻게 생각하시나요? @l2hyunwoo

Copy link
Member

Choose a reason for hiding this comment

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

SnackbarHost 내에 들어가는 내용이어서 Content라고 붙인거긴 한데, 이건 적는 사람 마음인 것 같아서.

@chattymin chattymin requested a review from l2hyunwoo October 19, 2024 04:54
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.

고생하셨습니다.

Copy link
Contributor

@s9hn s9hn left a comment

Choose a reason for hiding this comment

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

고생하셨씀다~ 스프린트0 슈웃

Comment on lines +151 to +152
.clip(RoundedCornerShape(10.dp))
.background(SoptTheme.colors.onSurface800)
Copy link
Contributor

Choose a reason for hiding this comment

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

이거 궁금했는데 background하나로 안쓰고 clip으로 따로 지정하는 이유가 있나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

이 Activity는 현우형이 짠 뷰라...
근데 저도 저렇게 하긴 합니다. 그래서 제 의견을 말씀드리면
백그라운드에 모양을 지정하게 되면 해당 컴포넌트는 각진 상태로 남아있되, 배경색만 해당 모양으로 됩니다.
그래서 해당 컴포넌트 자체를 깎기 위해서는 따로 clip을 해줘야 해용

style = SoptTheme.typography.heading18B,
color = SoptTheme.colors.onSurface10
)
Spacer(modifier = Modifier.padding(14.dp))
Copy link
Contributor

Choose a reason for hiding this comment

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

spacer는 보통 height나 width를 이용하는데 padding이랑 차이가 딱히 없겠죠?

Copy link
Member Author

Choose a reason for hiding this comment

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

이것도 제가 짠건 아니긴 한데 ㅋㅋㅋㅋㅋㅋ
이 뷰에선 문제 없어보여요!

그저 가로로도 14만큼 할당돼서 정사각형 모양 패딩이 돼서 바로 옆에 뭐가 하나 더 붙어있다면 차이가 생길수는 있을거 같긴 하네요
물론 저도 height랑 width를 이용하긴 합니당

@chattymin chattymin merged commit ec385e1 into develop Oct 20, 2024
1 check passed
@chattymin chattymin deleted the feature/#918-fortune-qa branch October 20, 2024 08:09
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.

4 participants