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

[feat] 필터뷰 api 연동 #51

Merged
merged 15 commits into from
Jul 20, 2023
Merged

Conversation

jihyunniiii
Copy link
Collaborator

@jihyunniiii jihyunniiii commented Jul 20, 2023

Related issue 🛠

Work Description ✏️

  • di 컨벤션 수정
  • 회원 필터 정보 변경하기 api 연결
  • 홈 페이지 필터뷰 연결
  • 마이페이지 필터뷰 연결
  • 회원가입 필터뷰 연결

Screenshot 📸

device-2023-07-20-221144.mp4
Screen_Recording_20230720_230710.1.mp4

Uncompleted Tasks 😅

  • 페이지네이션 추가추가,,

To Reviewers 📢

  • 마이페이지 회원정보 조회 api가 연결된 후 영상 찍어서 추가하겠습니다.
  • api 연결은 끝났고 이제 필터뷰 연결 작업만 진행하면 끝,,,

@jihyunniiii jihyunniiii requested review from Dan2dani and jooyyoo and removed request for Dan2dani July 20, 2023 03:33
@jihyunniiii jihyunniiii self-assigned this Jul 20, 2023
@jihyunniiii jihyunniiii added this to the api 연동 작업 milestone Jul 20, 2023
Copy link
Member

@Dan2dani Dan2dani left a comment

Choose a reason for hiding this comment

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

수정 부탁~ 수고했다 지현아~~ 🥐💝 진짜 필터뷰 너무 수고했다~

@@ -39,4 +44,8 @@ class MainActivity : BindingActivity<ActivityMainBinding>(R.layout.activity_main
replace<T>(R.id.fcv_home_container, T::class.java.canonicalName)
}
}

companion object {
const val FRAGMENT = "fragment"
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
const val FRAGMENT = "fragment"
const val MYPAGE_FRAGMENT = "MyPageFragment"


companion object {
const val FILTER_INFO = "filterInfo"
const val FRAGMENT = "fragment"
Copy link
Member

Choose a reason for hiding this comment

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

여기도 명확하게 명시티비 부탁

@@ -44,12 +53,23 @@ class FilterActivity : BindingActivity<ActivityFilterBinding>(R.layout.activity_
binding.btnFilterNext.setOnClickListener {
when (binding.vpFilterContainer.currentItem) {
2 -> {
startActivity(Intent(this, WelcomeActivity::class.java))
viewModel.setFilter()
Copy link
Member

Choose a reason for hiding this comment

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

setUserFilter

val intent = Intent(this, MainActivity::class.java)
intent.putExtra(FRAGMENT, FRAGMENT)
startActivity(intent)
}
}

else -> {
Copy link
Member

Choose a reason for hiding this comment

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

private val _selectedFilterState = MutableStateFlow<UiState<SelectedFilter>>(UiState.Loading)
val selectedFilterState get() = _selectedFilterState.asStateFlow()

private val _previousState = MutableStateFlow<String?>(null)
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
private val _previousState = MutableStateFlow<String?>(null)
private val _previousActivityName = MutableStateFlow<String?>(null)

_previousState.value = filterInfoTypeName
}

fun setFilter() {
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
fun setFilter() {
fun setUserFilter() {

Comment on lines 5 to 6
val currentPageRes: Int,
val maxPageRes: Int,
Copy link
Member

Choose a reason for hiding this comment

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

hey Res 지워주세용~

Copy link
Member

@Dan2dani Dan2dani left a comment

Choose a reason for hiding this comment

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

잘했다 ~

# Conflicts:
#	app/src/main/java/com/sopt/geonppang/di/RepositoryModule.kt
#	app/src/main/java/com/sopt/geonppang/di/ServiceModule.kt
#	app/src/main/java/com/sopt/geonppang/presentation/home/HomeFragment.kt
@jihyunniiii jihyunniiii merged commit c95fe7c into develop Jul 20, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[feat] 필터뷰 api 연동
2 participants