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

[UI/#60] 홈 뷰 / 홈 뷰 기본 UI 로직 구현 #68

Merged
merged 22 commits into from
Jul 13, 2024

Conversation

Hyobeen-Park
Copy link
Member

@Hyobeen-Park Hyobeen-Park commented Jul 12, 2024

⛳️ Work Description

  • 오늘 마감 타이틀
  • 오늘 마감 공고
  • 필터링 정보
  • 맞춤 공고

📸 Screenshot

Screen_Recording_20240713_041200_Terning-Android.mp4

📢 To Reviewers

  • 좀 더 깔끔하게 구현하고 싶은데 너무 어렵네요ㅜㅜ
  • null 처리가 계속 안돼서 !!를 사용한 부분이 있는데요,,,, 이거 어떻게 해야 할지,,,,아주 큰 고민중입니다,,,😅

Copy link
Member

@boiledeggg boiledeggg 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 67 to 68
val userScrapState = viewModel.scrapData.collectAsState()
val recommendInternData = viewModel.recommendInternData.collectAsState()
Copy link
Member

Choose a reason for hiding this comment

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

collectAsStateWithLifecycle을 쓰자고 리더님께서 댓글을 다시기 전에 제가 답니다ㅎ

Copy link
Member

Choose a reason for hiding this comment

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

그리고 상태 값 할당을 = 대신 by로 하면 참조할 때 .value()를 쓰지 않아도 된답니다~

Copy link
Member Author

Choose a reason for hiding this comment

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

오호 찾아보니 collectAsStateWithLifecycle이 더 안정적인 것 같네요..!! 감사합니다!!

private val _userName by mutableStateOf<UserNameState>(
UserNameState(
userName = "남지우자랑스러운티엘이되",
internFilter = listOf(4, 1, 2024, 8)
Copy link
Member

Choose a reason for hiding this comment

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

이런 부분도 데이터클래스로 관리하는 편이 좋을 것 같아요!!


if (userNameState.internFilter != null && recommendInternData.value != null) {
items(recommendInternData.value!!.size) { index ->
ShowRecommendIntern(recommendInternData.value!![index])
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.

지양,,,합시다!!

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

@arinming arinming left a comment

Choose a reason for hiding this comment

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

효비니 홈 뷰 파이팅탱팅이야 ㅜㅜ ㅜ !!!!!!

text = stringResource(
id = R.string.home_today_title,
if (userNameState.userName.length in 7..12) "\n" + userNameState.userName
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
Member Author

Choose a reason for hiding this comment

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

이거 7..12 상수로 빼면 좋겠네요~

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.

천재만재 개발자 효빈언니,,


if (userNameState.internFilter != null && recommendInternData.value != null) {
items(recommendInternData.value!!.size) { index ->
ShowRecommendIntern(recommendInternData.value!![index])
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 +195 to +197
.padding(top = 9.dp)
.padding(horizontal = 24.dp),
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
modifier = Modifier
.padding(top = 9.dp)
.padding(horizontal = 24.dp),
modifier = Modifier
.padding(top = 9.dp, horizontal = 24.dp)

이렇게도 가능할 것 같네요..!!

@Hyobeen-Park Hyobeen-Park merged commit ed180ce into develop Jul 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI 💐 UI 작업 효빈💚 효빈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI] 홈 뷰 / 홈 기본 UI 로직 구현
4 participants