Skip to content

Chore/#147 QRCodeResponse 팝업 뷰 UI 수정 및 response 수정#151

Merged
longlivedrgn merged 3 commits intodevelopfrom
chore/#147-QRScannerValidationUI
Feb 27, 2024
Merged

Chore/#147 QRCodeResponse 팝업 뷰 UI 수정 및 response 수정#151
longlivedrgn merged 3 commits intodevelopfrom
chore/#147-QRScannerValidationUI

Conversation

@longlivedrgn
Copy link
Copy Markdown
Collaborator

작업한 내용

  • QRCodeResponse 팝업 뷰 UI 수정 및 response 수정
    • 입장 코드의 에러 케이스를 enum 케이스를 활용해서 변경된 사항처럼 수정했어요.
      • 에러 케이스를 status code를 통해서 판단하는 방식으로 수정했어요.
    • QRCodeResponse 팝업 뷰의 UI를 변경했어요.
  • 그리고, 주최한 공연이 있을 경우, '주최한 공연이 없어요'라는 뷰가 있다가 없어지는 방식이 보기에 조금 어색해서, 애초에 해당 view를 hidden 처리한 상태로 시작하고, 주최한 공연이 있으면 table view를 보여주고, 없으면 '주최한 공연이 없어요'라는 뷰를 보여주는 방식으로 변경했어요!

(오늘 12시 이후에 실제 공연 입장이 제대로 찍히는 한번 더 확인할 예정이에요!)

스크린샷

TicketDetail

관련 이슈

@longlivedrgn longlivedrgn self-assigned this Feb 26, 2024
Copy link
Copy Markdown
Collaborator

@wngus4296 wngus4296 left a comment

Choose a reason for hiding this comment

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

용재 깔끔하게 코드 잘 짠 거 같당!! qr 타입이 많아서 테스트 힘들었을 텐데 고생했어!! 🫡🫡

stackView.axis = .vertical
stackView.alignment = .center
stackView.addArrangedSubviews([self.emptyMainTitle, self.emptySubTitle])
stackView.isHidden = true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

굿!!! 👍👍


private func configureConstraints() {
self.snp.makeConstraints { make in
make.width.equalTo(335)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

이거 horizontalEdge로 설정 안해줘두 되나?! 고정길이인지 디자인분들께 물어봐야겠당

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

요거 edge해줘야될 거 같아!! 바로 수정할게에🏃🏻‍♂️

Comment on lines +12 to +16
private let iconImageView: UIImageView = {
let imageView = UIImageView()

return imageView
}()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

완전 마이너한 의견 .. 요고 안에 들어갈 거 없으면 아래처럼 써도 될 듯!!

Suggested change
private let iconImageView: UIImageView = {
let imageView = UIImageView()
return imageView
}()
private let iconImageView = UIImageView()

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

완전 메이저한 의견... 바로 수정할게!!!

Comment on lines +100 to +102
guard let error = error as? MoyaError else { return }
guard let statusCode = error.response?.statusCode else { return }
guard let errorResponse = QRCodeValidationResponse(statusCode: statusCode) else { return }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

오 여기 처리 잘해줬다!!

- 불필요한 코드 삭제
- Constraint 수정
@longlivedrgn longlivedrgn merged commit 7e3101f into develop Feb 27, 2024
@longlivedrgn longlivedrgn deleted the chore/#147-QRScannerValidationUI branch February 27, 2024 03:34
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.

[CHORE] 스캐너 유효성 체크 UI 디자인 수정

2 participants