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

[AN] 비회원 관리 #595

Merged
merged 8 commits into from
Nov 2, 2023
Merged

[AN] 비회원 관리 #595

merged 8 commits into from
Nov 2, 2023

Conversation

RightHennessy
Copy link
Collaborator

@RightHennessy RightHennessy commented Oct 31, 2023

😋 작업한 내용

  • 데모데이에 들어온 피드백만 반영하려 했으나 다른 앱들을 참고하여 일관성있게 로직을 수정하였습니다.

🙏 PR Point

  • 기존
    비회원 기능이라는 화면 표시 및 화면 클릭 시 로그인 바텀시트를 보여줌
  • 현재
    비회원은 스터디 목록 화면만 볼 수 있음.
    다른 바텀버튼을 클릭하염 로그인 바텀시트를 보여주고, 로그인 하지 않을 시 스터디 목록을 그대로 다시 보여줍니다.

혹시 이 방식이 별로라고 생각하면 다시 rollback 할 생각도 있으니 의견주세요.

👍 관련 이슈

@RightHennessy RightHennessy requested review from s9hn and no1msh October 31, 2023 07:23
@github-actions
Copy link

github-actions bot commented Oct 31, 2023

Test Results

9 tests   9 ✔️  0s ⏱️
3 suites  0 💤
3 files    0

Results for commit 7e93f14.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@s9hn s9hn left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -27,8 +27,8 @@ class GuestViewModel @Inject constructor(
private val _refreshState: MutableLiveData<Boolean> = MutableLiveData<Boolean>()
val refreshState: LiveData<Boolean> get() = _refreshState

fun refresh() {
_refreshState.value = true
fun refresh(isRefreshed: Boolean) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

조금 더 구체적으로 명시하면 좋을 것 같아용

@@ -141,6 +147,13 @@ class MainActivity : BindingActivity<ActivityMainBinding>(R.layout.activity_main
}
}

private fun showLoginBottomSheetDialog() {
LoginBottomSheetFragment().show(
Copy link
Collaborator

Choose a reason for hiding this comment

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

얘는 매번 생성안하고 한번만 생성해도 되지 않나요? 진짜궁금

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

엇 그렇네요.
굳이 안해줘도 되네요.
인스턴스 한번만 생성하게 바꿨습니다 ~

@@ -256,6 +254,9 @@ class StudyListFragment :
studyListViewModel.updateIsGuest(mainViewModel.isGuest)
val filter = getStudyListFilter(group)
studyListViewModel.loadFilteredPage(filter)
if (mainViewModel.isGuest and filter.isGuestOnly()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

오 ㅋ and 연산자쓰는사람 처음봄 mz하네요

Copy link
Collaborator

Choose a reason for hiding this comment

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

이런게 있었어?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

요즘 python 많이 썻더니..

Copy link
Collaborator

@no1msh no1msh left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 링링~

@RightHennessy RightHennessy merged commit 5e1221d into develop Nov 2, 2023
2 checks passed
@RightHennessy RightHennessy deleted the AN/feature/574-guest branch November 2, 2023 01:50
@RightHennessy RightHennessy self-assigned this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AN] 비회원 관리
3 participants