Skip to content

Conversation

@yurim830
Copy link
Collaborator

@yurim830 yurim830 commented May 11, 2025

🐿️ Pull Requests

🪵 작업 브랜치

🥔 작업 내용

1. BaseErrorView 수정

  • ErrorViewStyleType을 생성자에 받게 하여, 레이아웃 설정 시 뷰가 가운데정렬되도록 했습니다.
  • Glassmorphism을 설정 가능하게 했습니다.

2. 장소이미지 없는 경우 UI
서버 명세가 어떻게 될지 몰라, 일단은 KingFisher 이미지 변환에 실패한 경우, "이미지 준비 중" 뷰가 보여지도록 설정했습니다.

3. 비로그인 시 셀 잠금 기능

  • 비로그인 상태일 경우, 6번째 셀부터 로그인하라는 글라스모피즘 뷰가 보여지고
  • 셀 선택 시 로그인 모달이 띄워집니다.

📸 스크린샷

ScreenRecording_05-12-2025.06-28-03_1.MP4

💥 To be sure

  • 모든 뷰가 잘 실행되는지 다시 한 번 체크해주세요 !

🌰 Resolve issue

@yurim830 yurim830 added this to the Sprint - 3 milestone May 11, 2025
@yurim830 yurim830 requested review from cirtuare and Copilot May 11, 2025 21:29
@yurim830 yurim830 self-assigned this May 11, 2025
@yurim830 yurim830 added 🌀 feature 새로운 기능 개발 🥑 유림 유림 labels May 11, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements UI enhancements on the home screen by updating the BaseErrorView for configurable glassmorphism, refining the UI when an image fails to load, and adding cell overlay and login modal functionality for non-logged in users.

  • Updated BaseErrorView to accept a style type and enable glassmorphism.
  • Modified image loading in SpotListCollectionViewCell to display a "preparing images" view when needed.
  • Added conditional login prompt overlay and modal presentation logic in SpotListViewController.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ACON-iOS/ACON-iOS/Presentation/SpotList/View/SpotListViewController.swift Updated login cell overlay and tap handling based on user authentication.
ACON-iOS/ACON-iOS/Presentation/SpotList/View/SpotListView.swift Modified error view instantiation to use the new style.
ACON-iOS/ACON-iOS/Presentation/SpotList/View/Cell/SpotListCollectionViewCell.swift Added no-image and login error views; updated image loading error handling.
ACON-iOS/ACON-iOS/Presentation/Base/BaseErrorView.swift Refactored to incorporate a style type and a configurable glass view.
ACON-iOS/ACON-iOS/Global/Utils/Enums/GlassmorphismType.swift Added new glass types to support error view variations.
ACON-iOS/ACON-iOS/Global/Resources/Assets.xcassets/Images/2.0/img_skeleton_bg.imageset/Contents.json Introduced a new skeleton background asset.
ACON-iOS/ACON-iOS/Global/Literals/StringLiterals.swift Included new string literals for image preparation and login prompts.
ACON-iOS/ACON-iOS/Global/Literals/AmplitudeLiterals.swift Updated with additional amplitude event names for the new interactions.

matchingRateBgColor: bgColor)
}

let showLoginCell = !AuthManager.shared.hasToken && indexPath.item > 4
Copy link

Copilot AI May 11, 2025

Choose a reason for hiding this comment

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

Consider extracting the magic number '4' into a clearly named constant to improve clarity and maintainability.

Suggested change
let showLoginCell = !AuthManager.shared.hasToken && indexPath.item > 4
let showLoginCell = !AuthManager.shared.hasToken && indexPath.item > loginCellThreshold

Copilot uses AI. Check for mistakes.
case .success:
self.noImageErrorView.isHidden = true
case .failure(let error):
print("😢 이미지 로드 실패: \(error)")
Copy link

Copilot AI May 11, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using a structured logging framework instead of print statements for error handling in production.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@cirtuare cirtuare left a comment

Choose a reason for hiding this comment

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

좋아요좋아요 ~ 고생했어요 !

한 가지 고민되는 건, 네트워크 연결 실패 뷰가 달라짐에 따라 현재 baseErrorView는 홈에서만 사용되는 것으로 이해했는데 맞을까요:?? 그렇다면 homeErrorView라는 네이밍으로 변경하고 폴더링도 변경해도 괜찮을 것 같아요.
Base-가 붙으면 모든 에러 뷰가 baseErrorView를 따라야 할 것 같은 느낌이 들어서,, 한 번 고민해주세요 !!

@yurim830
Copy link
Collaborator Author

yurim830 commented May 12, 2025

한 가지 고민되는 건, 네트워크 연결 실패 뷰가 달라짐에 따라 현재 baseErrorView는 홈에서만 사용되는 것으로 이해했는데 맞을까요:?? 그렇다면 homeErrorView라는 네이밍으로 변경하고 폴더링도 변경해도 괜찮을 것 같아요.

그러네요! 꼼꼼히 봐주셔서 감사해요 🙌
지금 폴더링, 파일 네이밍 모두 Home 대신 SpotList를 사용중이라, SpotListErrorView로 수정하겠습니다.

@yurim830 yurim830 merged commit 8888611 into develop May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌀 feature 새로운 기능 개발 🥑 유림 유림

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[KAN-178] [FEAT] 홈 - 장소이미지 없는 경우 UI, 비로그인시 셀 잠금 기능 구현

3 participants