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/#204] 홈 뷰 / UI 수정사항 반영 및 리팩토링 #232

Merged
merged 42 commits into from
Sep 9, 2024

Conversation

Hyobeen-Park
Copy link
Member

@Hyobeen-Park Hyobeen-Park commented Sep 9, 2024

⛳️ Work Description

-[x] 홈 뷰 UI 수정

  • 곧 마감되는 공고 아이템
  • 필터링 정보 UI
  • 공고 개수 표시
  • 필터링 재설정 뷰 바텀시트로 수정
  • 다이얼로그 연결

📸 Screenshot

Screen_Recording_20240909_230007_.terning.mp4

📢 To Reviewers

  • UI를 수정하다보니,,, 서버도 수정하고,, 다이얼로그도 연결하고 다 해버렸네요😅
  • 지금 테스트를 많이 못 해봐서 고칠게 많이 생길 것 같은데 수정사항 생기면 노티드리겠습니다요
  • To.석준오빠 스크랩 색상 변경도 서버 통신이 안되는 것 같은데 혹시 이것도 스크랩 추가랑 같은 원인인가요?!??

# Conflicts:
#	feature/src/main/java/com/terning/feature/home/changefilter/ChangeFilterRoute.kt
#	feature/src/main/java/com/terning/feature/main/MainScreen.kt
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.

효빈 언니 컨디션 안 좋은데도 수정사항 적용하느라 수고 진짜 많았어요ㅜㅜ!!!
조금 더 힘냅시당!

Comment on lines 126 to 132
DatePickerUI(
chosenYear = defaultStartYear ?: Calendar.getInstance().currentYear,
chosenMonth = defaultStartMonth?.minus(1)
?: Calendar.getInstance().currentMonth.minus(1),
onYearChosen = { currentStartYear = it },
onMonthChosen = { currentStartMonth = it },
)
Copy link
Member

Choose a reason for hiding this comment

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

요거 제가 최근에 만든 YearMonthPicker 써주면 될 것 같아요!! (피그마에 나온 패딩값 적용하구, 앱 터지지 않게 만들었어요!)
feature.filtering.filteringthree.component파일에 써줬는데 확인해주시면 감사하겠습니당

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 +15 to +22
companion object {
fun fromString(value: String?): Grade = when (value) {
"freshman" -> FRESHMAN
"sophomore" -> SOPHOMORE
"junior" -> JUNIOR
"senior" -> SENIOR
else -> FRESHMAN
}
Copy link
Member

Choose a reason for hiding this comment

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

단순 궁금증인데 value 값이 nullable인 이유가 궁금해요..!

Copy link
Member Author

Choose a reason for hiding this comment

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

사용자 필터링 정보가 없을 때 null로 저장이 돼서 nullable하게 만들었습니다!! null 처리를 screen에서 하니까 코드가 너무 복잡해지더라구요😅

Comment on lines 100 to 104
HomeFilteringInfoText(
text = "설정된 필터링 정보가 없어요",
modifier = Modifier
.align(Alignment.CenterVertically),
)
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 +126 to +131

Text(
text = "유한킴벌리",
style = TerningTheme.typography.button5,
color = Grey500,
maxLines = 1,
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
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.

너무 고생많으셨습니다!!!! 이정도면 컨디션 안좋아질만 하네요ㄷㄷ

onCLick: () -> Unit,
) {
Row(
modifier = modifier
.noRippleClickable { onCLick() }
.noRippleClickable { onCLick() },
Copy link
Member

Choose a reason for hiding this comment

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

ONclICK()

onDismissRequest = {
homeViewModel.updateUpcomingDialogVisibility(false)
},
onClickChangeColor = { },
Copy link
Member

Choose a reason for hiding this comment

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

이제 보니까 여기에 스크랩을 할 경우 호출할 함수가 없네요,,, 이석준 할일 +1...

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.

감사합니다...

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.

고생 많으셨어요 ㅜㅜ 몸 관리 하면서 하긔

Comment on lines 239 to 273
Row(
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier
.fillMaxWidth(),
horizontalArrangement = Arrangement.End,
.fillMaxWidth()
.padding(start = 24.dp, end = 18.dp),
) {
SortingButton(
sortBy = currentSortBy.value,
onCLick = { sheetState = true },
modifier = Modifier
.padding(vertical = 4.dp)
)
Spacer(
modifier = Modifier.padding(9.dp)
)
Row {
Text(
text = stringResource(id = R.string.home_recommend_total),
style = TerningTheme.typography.detail1,
color = Grey400,
modifier = Modifier
.padding(end = 3.dp),
)
Text(
text = homeRecommendInternTotal.toString(),
style = TerningTheme.typography.button3,
color = TerningMain,
)
Text(
text = stringResource(id = R.string.home_recommend_count),
style = TerningTheme.typography.detail1,
color = Grey400,
)
}
Row {
SortingButton(
sortBy = currentSortBy.value,
onCLick = { sortingSheetState = true },
modifier = Modifier
.padding(vertical = 4.dp)
)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

요 부분 검색때도 쓰여서 ㅎㅎ 납치해 갑니다 감사해용!!!!!

onDismissRequest = {
homeViewModel.updateUpcomingDialogVisibility(false)
},
onClickChangeColor = { },
Copy link
Contributor

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 9f64413 into develop Sep 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REFACTOR ♻️ 전면 수정 UI 💐 UI 작업 효빈💚 효빈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI] 홈 뷰 / UI 수정
4 participants