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

Refactor [#59] v 1.0.0 심사 대응 #60

Merged
merged 18 commits into from
Jun 25, 2024
Merged

Refactor [#59] v 1.0.0 심사 대응 #60

merged 18 commits into from
Jun 25, 2024

Conversation

Zoe0929
Copy link
Member

@Zoe0929 Zoe0929 commented Jun 25, 2024

👾 작업 내용

심사 대응하며 바뀐 것들 머지하고 작업 들어가는 것이 좋을 것 같습니다!

🚀 PR Point

  • 실패 처리에 대한 것은 서버 값을 사용하는 것이 더 좋아보여서 일단 주석처리 해두었습니다.
    주요 변경 내역
  • 로그인 뷰 기기대응
  • 전체 사용 시간 통계 방식 변경
  • 챌린지 데이터 전송 로직 변경
  • 포인트 얻기 오류 대응

✅ CheckList

  • 오류 없이 빌드되는지 확인
  • 로그용 print문 제거
  • 불필요한 주석 제거
  • 코드 컨벤션 확인

🔗 Issue

Resolved #59

@Zoe0929 Zoe0929 added 🐰지희 지희의 issue 🔧FIX 오류 고치는 것 / 수정용 labels Jun 25, 2024
@Zoe0929 Zoe0929 requested a review from kim-seonwoo June 25, 2024 02:39
@Zoe0929 Zoe0929 self-assigned this Jun 25, 2024
@Zoe0929 Zoe0929 linked an issue Jun 25, 2024 that may be closed by this pull request
Copy link
Member

@kim-seonwoo kim-seonwoo 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 +94 to +96
let secondsTotal = milliseconds / 1000
let hours = secondsTotal / 3600
let minutes = (secondsTotal % 3600) / 60
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 +200 to +201
default:
titleString = ""
Copy link
Member

Choose a reason for hiding this comment

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

❓이 default같은 부분에 추후에 스켈레톤을 넣는 건가요?

Copy link
Member Author

Choose a reason for hiding this comment

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

아마 로딩 전에는 뷰를 띄울 수 없어서 그냥 기본 값 넣은 거라고 생각하시면 될 것 같아요! 스켈레톤은 어려울 것 같슴다 ㅜ

struct EarnPointButton: View {
let day: Int
let status: String
@StateObject var viewModel = PointViewModel()
@ObservedObject var viewModel: PointViewModel
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 +15 to +23
ZStack {
Color(.blackground)
.ignoresSafeArea()
VStack(spacing: 10) {
SwipeView(imageNames: [.onboardingFirst, .onboardingSecond, .onboardingThird])
.padding(.bottom, 75)
LoginButton(loginProvider: .kakao, viewModel: viewModel)
LoginButton(loginProvider: .apple, viewModel: viewModel)
}
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.

스유 .. 오토레이아웃 천재가 되어봅시다!


self.sendSucessIfNeeded()
self.getChallengeType()
}
}

func challengeButtonTapped() {
if remainEarnPoint == 0 {
if !(statuses.contains("UNEARNED")) {
Copy link
Member

Choose a reason for hiding this comment

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

💊 추후에 포인트 획득 상태를 enum화 해도 좋을듯 합니다..?,

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 Author

Choose a reason for hiding this comment

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

그런데, 이 부분의 경우에는 문자열 배열에 있는지를 검사 해야해서 enum보다는 String이 더 알맞는 것 같기도 합니다 ㅎㅎ

@Zoe0929 Zoe0929 merged commit df46b06 into develop Jun 25, 2024
@Zoe0929 Zoe0929 deleted the refactor/#59 branch July 31, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐰지희 지희의 issue 🔧FIX 오류 고치는 것 / 수정용
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Refator] 코드 리팩토링 및 레이아웃 이슈 해결
2 participants