-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
…-filter # Conflicts: # core/src/main/java/com/terning/core/designsystem/component/topappbar/BackButtonTopAppBar.kt # feature/src/main/java/com/terning/feature/home/home/HomeRoute.kt # feature/src/main/java/com/terning/feature/main/MainScreen.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마지막까지 UI하느라 넘넘 수고많았어용!!!
@Composable | ||
fun ChangeFilteringRadioGroup( | ||
filterType: Int, | ||
internFilterData: InternFilterData?, | ||
onButtonClick: (Int) -> Unit, | ||
modifier: Modifier = Modifier, | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
internFilterData가 nullalbe한 이유는 무엇인가용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
온보딩에서 필터링을 하지 않고 넘어온 유저들은 필터링 데이터가 없어서 nullable하게 처리했습니다! 필터링 정보가 없는 유저들은 필터링 재설정 화면으로 넘어갔을 때 0번째 버튼이 눌려져 있도록 기본값 설정을 해뒀는데 이 부분은 제가 한번 더 확인해볼게요!!
@Composable | ||
private fun ShowInternFilter(userNameState: UserNameState) { | ||
if (userNameState.internFilter == null) { | ||
private fun ShowInternFilter(userNameState: UserNameState, navController: NavHostController) { | ||
if (userNameState.internFilter?.grade == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NavHostController를 내리지 말구 onChangeFilterClick을 올려서 Route에서 처리하는 건 어떤가요..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호!! 한번 고쳐보겠습니다!!
getRecommendData() | ||
// listOf() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주석 이건 안 쓰이는 건가용?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 데이터 있을때랑 없을 때를 계속 테스트를 해봐야 해서 이렇게 한건데 지우는거 까먹었네요.. 하핫 머지 하기 전에 지우고 하겠습니다~!!
|
||
val startDestination = SignIn | ||
val startDestination = Home |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잡기 성공ㅎㅎ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잡았다!! 하핫....
There was a problem hiding this 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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
showTitle -> ShowTitle으로 수정해주시면 좋을 것 같습니도~
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modifier가 쓰이지 않고 있는데, LazyColumn에서 Modifier로 선언하지 않고 modifier 써주시는 건 어떨까요?
There was a problem hiding this comment.
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) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var로 선ㄴ언하신 이유가 있나욤?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 ChangeFilter로 바꿔주시면 통일감 있을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 감사합니다~~!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다들 잘 커멘트 달아줘서 달게 없네요ㅎㅎ 너어어무 고생많으셨습니두~~
⛳️ Work Description
📸 Screenshot
Screen_Recording_20240714_064238_Terning-Android.mp4
📢 To Reviewers