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/#51] 필터링 재설정 UI 구현 #76

Merged
merged 18 commits into from
Jul 15, 2024

Conversation

Hyobeen-Park
Copy link
Member

⛳️ Work Description

  • 필터링 UI 구현

📸 Screenshot

Screen_Recording_20240714_064238_Terning-Android.mp4

📢 To Reviewers

  • 모두 모두 진짜 화이팅~~~

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.

마지막까지 UI하느라 넘넘 수고많았어용!!!

Comment on lines +20 to +26
@Composable
fun ChangeFilteringRadioGroup(
filterType: Int,
internFilterData: InternFilterData?,
onButtonClick: (Int) -> Unit,
modifier: Modifier = Modifier,
) {
Copy link
Member

Choose a reason for hiding this comment

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

internFilterData가 nullalbe한 이유는 무엇인가용

Copy link
Member Author

Choose a reason for hiding this comment

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

온보딩에서 필터링을 하지 않고 넘어온 유저들은 필터링 데이터가 없어서 nullable하게 처리했습니다! 필터링 정보가 없는 유저들은 필터링 재설정 화면으로 넘어갔을 때 0번째 버튼이 눌려져 있도록 기본값 설정을 해뒀는데 이 부분은 제가 한번 더 확인해볼게요!!

Comment on lines 216 to 218
@Composable
private fun ShowInternFilter(userNameState: UserNameState) {
if (userNameState.internFilter == null) {
private fun ShowInternFilter(userNameState: UserNameState, navController: NavHostController) {
if (userNameState.internFilter?.grade == null) {
Copy link
Member

Choose a reason for hiding this comment

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

NavHostController를 내리지 말구 onChangeFilterClick을 올려서 Route에서 처리하는 건 어떤가요..?

Copy link
Member Author

Choose a reason for hiding this comment

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

오호!! 한번 고쳐보겠습니다!!

Comment on lines 49 to 50
getRecommendData()
// listOf()
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.

이거 데이터 있을때랑 없을 때를 계속 테스트를 해봐야 해서 이렇게 한건데 지우는거 까먹었네요.. 하핫 머지 하기 전에 지우고 하겠습니다~!!

Comment on lines 24 to 25

val startDestination = SignIn
val startDestination = Home
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.

잡았다!! 하핫....

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.

홈 뷰 하느라 고생 많으셨어요 ㅠ!!!

}

@Composable
private fun showTitle(
Copy link
Contributor

Choose a reason for hiding this comment

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

showTitle -> ShowTitle으로 수정해주시면 좋을 것 같습니도~

Copy link
Member Author

Choose a reason for hiding this comment

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

헉스 수정하겠습니다!

filterType: Int,
internFilterData: InternFilterData?,
onButtonClick: (Int) -> Unit,
modifier: Modifier = Modifier,
Copy link
Contributor

Choose a reason for hiding this comment

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

modifier가 쓰이지 않고 있는데, LazyColumn에서 Modifier로 선언하지 않고 modifier 써주시는 건 어떨까요?

Copy link
Member Author

Choose a reason for hiding this comment

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

오호 좋아요!

}

val selectedIndex = remember { mutableIntStateOf(0) }
var selectedButton = remember { mutableStateListOf(false, false, false, false) }
Copy link
Contributor

Choose a reason for hiding this comment

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

var로 선ㄴ언하신 이유가 있나욤?

Copy link
Member Author

Choose a reason for hiding this comment

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

이게 계속 수정이 되어야 해서 var로 선언했어요!!!

@@ -68,29 +70,21 @@ fun HomeFilteringScreen(
}

HomeFilteringText(
text = grade.toString() + stringResource(id = R.string.home_recommend_filtering_grade),
text = grade,
Copy link
Contributor

Choose a reason for hiding this comment

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

깔끔해졌네요ㅕ~!

@@ -112,12 +109,9 @@
<string name="filtering_button">다음으로</string>

<!-- changeFilter -->
Copy link
Contributor

Choose a reason for hiding this comment

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

여기 ChangeFilter로 바꿔주시면 통일감 있을 것 같아요!

Copy link
Member Author

Choose a reason for hiding this comment

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

네 감사합니다~~!!!

Copy link
Member

@boiledEgg-s boiledEgg-s left a comment

Choose a reason for hiding this comment

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

다들 잘 커멘트 달아줘서 달게 없네요ㅎㅎ 너어어무 고생많으셨습니두~~

@Hyobeen-Park Hyobeen-Park merged commit 5cfdab5 into develop Jul 15, 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