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

fix: Home에서 발생한 이슈들을 수정해요. #679

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

akrudal
Copy link
Collaborator

@akrudal akrudal commented Oct 15, 2024

😽개요

  • 홈 화면에 있는 이슈 사항들을 해결해요

🛠️작업 내용

위젯 유도창 띄우기

  • SaveIsFirstWidgetAlertUseCase
  • IsFirstWidgetAlertUseCase

를 추가하였습니다!

이제 위젯 알럿창을 한번도 보지 않은 회원에게는 위젯 유도창 알림이 뜨게 됩니다.

new 표시 띄우기

  • SaveIsFirstFamilyManagementUseCase
  • IsFirstFamilyManagementUseCase

를 추가하였습니다!

이제 정상적으로 홈화면 네비게이션에 new표시가 뜹니다.

홈 화면 버튼 작동하지 않는 문제

InputFamilyLinkNavigation 추가하여서 문제 해결하였습니다!

이외에도

  • 생존신고 알림창에서 바로 화면 넘어가는 코드를 작성하였습니다 -> 낮에 테스트 다시 해봐야합니다! (저녁이라서 카메라 버튼이 없어서 아직 못해봤습니다)..

🟡차후 계획 (Optional)

  • 테스트 해보다 보니까 홈 화면 패밀리 나타나는게 제 프로필이 첫번째가 아니더라구요.. 확인해봐야할 것 같습니다~
  • CheckSurvivalTimeUseCase를 만들었는데, 원래 뷰모델에 있던 시간 계산하는걸 유즈케이스로 만들면 좋을 것 같다고 생각했습니다..!!...그러면 어떤 화면에서든 생존시간 타임인지 확인할 수 있으니까요..(특히 카메라/??) ..! 다음번에 적용하겠습니다

✅테스트 케이스

  • 회원 탈퇴 후 다시 회원가입 -> 홈 화면 버튼 작용 O
  • 홈 화면 네비게이션 new 표시 O
  • 홈 화면 위젯 유도창 표시 O
  • 생존신고 알림창에서 바로 카메라로 넘어기는지 체크해야합니다!

@akrudal akrudal self-assigned this Oct 15, 2024
@akrudal akrudal added the HOTFIX 긴급 오류 사항수정 label Oct 15, 2024

// MARK: - To

func pop() {
Copy link
Collaborator

@rlarjsdn3 rlarjsdn3 Oct 16, 2024

Choose a reason for hiding this comment

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

pop을 하게 되면 어느 화면으로 가는지 backToHome() 요렇게 적어주실 수 있을까요? 그러면 좀 더 정확하게 플로우를 파악할 수 있어 보여여

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

헉,, 명확한게 좋긴 하지만,,,,
만약 두 개의 다른 뷰컨트롤러에서 inputfamilylinknavigator를 사용한다면, back하는 화면이 다를 수도 있지 않을까요?!

@@ -51,7 +52,14 @@ final class MainNavigator: MainNavigatorProtocol {
}

func missionUnlockedAlert() {
BBAlert.style(.mission).show()
let handler: BBAlertActionHandler = { [weak self] alert in
Copy link
Collaborator

Choose a reason for hiding this comment

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

bbAlerService를 사용하면 조금 더 Rx스럽게 작성하실 수 있어요~ navigator 안에서 호출할 필요도 없어지구요. 나중에 확인해주세요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아! 찾았습니당 :)

navigator 안에서 호출하지 않아도 되어서 좋네요! 감사합니다

return isFirstWidgetAlertUseCase.execute()
.filter { $0 }
.withUnretained(self)
.flatMap { _ -> Observable<Mutation> in
Copy link
Collaborator

Choose a reason for hiding this comment

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

제가 지난 번에 flatMap(with:) 연산자 새로 만들었어요. 나중에 다른 기능 구현하실 때 참고하세염

@rlarjsdn3
Copy link
Collaborator

QA 내용이
"홈 화면에서 내 프로필이 첫 번째로 나타나지 않는 문제" 가 맞을까요?

@akrudal
Copy link
Collaborator Author

akrudal commented Oct 17, 2024

QA 내용이 "홈 화면에서 내 프로필이 첫 번째로 나타나지 않는 문제" 가 맞을까요?

넵 다음 issue 사항으로 적용할 부분 맞습니다!

@akrudal akrudal merged commit 9ad25a1 into develop Oct 17, 2024
2 checks passed
@akrudal akrudal deleted the fix/#668-home-issue branch October 17, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HOTFIX 긴급 오류 사항수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants