Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ab108cb
[Feat] #283 - 전체 공개 컬렉션 목록 조회 UseCase 추가
Guryss Oct 12, 2026
a37b4b5
[Network] #283 - 전체 공개 컬렉션 목록 API 연결
Guryss Oct 12, 2026
e21aed3
[Refactor] #283 - 컬렉션 표지 스택을 WSSComponent로 승격
Guryss Oct 12, 2026
7a6bae5
[Add] #283 - 컬렉션 작성자 라벨 컴포넌트 추가
Guryss Oct 12, 2026
c26f5ad
[Refactor] #283 - 컬렉션 카드 헤더를 공용 뷰로 추출
Guryss Oct 12, 2026
e9bc202
[Feat] #283 - 전체 컬렉션뷰 구현
Guryss Oct 12, 2026
ffe448c
[Feat] #283 - 홈 컬렉션 모음.zip 섹션 구현
Guryss Oct 12, 2026
b8e4b89
[Feat] #283 - 홈에서 전체 컬렉션뷰와 컬렉션 상세로 이동 연결
Guryss Oct 12, 2026
f753dc5
[Fix] #283 - 컬렉션 표지 스택이 넓은 기기에서 벌어지는 문제 수정
Guryss Oct 12, 2026
4bf1fc8
[Fix] #283 - 전체 컬렉션뷰가 상세에서 복귀하면 목록을 다시 받도록 수정
Guryss Oct 12, 2026
099ce2f
[Fix] #283 - 홈 컬렉션 섹션을 배지보다 먼저 반영하도록 수확 순서 변경
Guryss Oct 12, 2026
a97e5b5
[Docs] #283 - 홈 문서의 동시 요청 수와 컬렉션 섹션 트래킹 메모 정정
Guryss Oct 12, 2026
dfcc112
[Test] #283 - 공개 컬렉션 빈 페이지 경계값 테스트 추가
Guryss Oct 12, 2026
70145b7
[Fix] #283 - 전체 컬렉션뷰 복귀 동기화가 받은 개수를 유지하고 실패해도 목록을 지키도록 수정
Guryss Oct 12, 2026
6c0efbd
[Fix] #283 - 전체 컬렉션뷰 복귀 동기화 중 막힌 더보기를 이어서 불러오도록 수정
Guryss Oct 12, 2026
d6541cb
[Docs] #283 - 전체 컬렉션뷰 조립 위치와 컬렉션 목록 size 상한 문서화
Guryss Oct 12, 2026
aaf97cc
[Fix] #283 - 칸과 비율이 다른 컬렉션 표지가 칸 밖으로 넘치는 문제 수정
Guryss Oct 12, 2026
13bac92
[Design] #283 - 홈 컬렉션 모음.zip 섹션을 상세탐색 배너 아래로 이동
Guryss Oct 17, 2026
cfd4b92
[Feat] #283 - 컬렉션 툴팁 확인 여부를 저장할 온보딩 힌트 케이스 추가
Guryss Oct 17, 2026
8413845
[Add] #283 - 컬렉션 툴팁 말풍선 에셋 추가
Guryss Oct 17, 2026
7f84020
[Feat] #283 - My 탭을 가리키는 나만의 컬렉션 만들기 툴팁 추가
Guryss Oct 17, 2026
7820b00
[Feat] #283 - 회원 탈퇴 시 온보딩 힌트 확인 기록 초기화
Guryss Oct 17, 2026
94f2c92
[Design] #283 - 홈 컬렉션 모음.zip 카드 내부 간격 조정
Guryss Oct 18, 2026
43a9bb3
[Refactor] #283 - 공개 컬렉션 카드를 CollectionCard로 통합
Guryss Oct 20, 2026
c7383a8
[Feat] #283 - 홈 컬렉션 모음.zip 섹션 탭 이벤트 트래킹 추가
Guryss Oct 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions Projects/App/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Sources/
│ # makeDetailSearchFilterView로 승격)까지(NovelDetailAssembly/
│ # NovelReviewAssembly/FeedFeatureFactory/UserPageAssembly/
│ # LibraryFactory.makeUserLibraryView(타유저 서재)/SearchAssembly/
│ # MypageFeatureFactory) 실제 push.
│ # MypageFeatureFactory) 실제 push. 홈 "컬렉션 모음.zip" 섹션의
│ # 전체 컬렉션뷰·컬렉션 상세도 여기서 push(#283).
├── Feed/ └── FeedRootView.swift # "피드" 탭. FeedFeatureFactory.makeSosoFeedView 조립 + 피드 상세·
│ # 작품 상세·작품 평가·피드 작성·타유저 프로필·그 전체 피드 목록·
│ # 그 프로필의 타유저 서재·작가 이름 검색(makeFeedDetailView/
Expand Down Expand Up @@ -84,9 +85,11 @@ Sources/
│ # switch(#253 — 예전 onEditTapped 기본값 no-op은 #228 죽은
│ # 버튼 사고를 만들어 제거). 타유저 컬렉션은 isMine==false라
│ # 수정 버튼 자체가 안 뜨지만 매핑은 전 호출자가 명시한다.
└── CollectionListAssembly.swift # 컬렉션 목록 조립 공용 헬퍼 — isOwnCollections 기본값 false
# (타유저 프로필 "컬렉션" 헤더 탭). 마이페이지의 "내 컬렉션"
# 목록만 true로 명시 호출.
├── CollectionListAssembly.swift # 컬렉션 목록 조립 공용 헬퍼 — isOwnCollections 기본값 false
│ # (타유저 프로필 "컬렉션" 헤더 탭). 마이페이지의 "내 컬렉션"
│ # 목록만 true로 명시 호출.
└── PublicCollectionListAssembly.swift # 전체 컬렉션뷰(모든 사용자의 공개 컬렉션) 조립 — 진입점은
# 홈 컬렉션 섹션 제목 하나뿐이라 HomeRootView만 쓴다(#283).
```

4탭 콘텐츠 자체(각 Factory의 메인 화면)는 전부 실제 UseCase로 조립돼 있고, 그 안에서 열리는 2차
Expand Down Expand Up @@ -474,6 +477,12 @@ Core/Analytics는 `AnalyticsTracker` 프로토콜만 알고 이 SDK들을 모른
지금 보이는 서브탭을 최상단으로 스크롤한다. **`$selectedTab`로 되돌리면 피드 재탭-최상단이 조용히 깨진다**
— 나머지 탭 전환·딥링크 로직은 `selectedTab`을 그대로 갱신해 영향 없다. 전체 계약(자동 스크롤 흡수 미끼
ScrollView 포함)은 `FeedFeature/CLAUDE.md`가 정본.
- **"나만의 컬렉션을 만들어보세요" 툴팁(#283)은 `MainTabView`가 노출·확인을 판정하고, 홈·피드·서재 Root가
각자 NavigationStack **루트 콘텐츠**에 `.collectionTooltip(isPresented:)`(`Sources/Main/CollectionTooltip.swift`)로 그린다.**
루트 콘텐츠의 하단 safe area가 곧 탭바 상단이라 탭바 위에 붙고, push 화면(탭바 숨김)에선 덮여서 자연히 안 보인다 —
`MainTabView` 전체에 overlay로 걸면 push 화면에서도 허공을 가리키며 떠 있게 되니 옮기지 말 것. 확인 처리는
`tabSelection` setter에서 **툴팁이 떠 있을 때 My를 고른 경우에만** 한다(플래그는 `OnboardingHint.myPageCollectionTooltip`,
초기값은 `MainTabView.init`에서 1회 판정 → 확인 안 하고 앱을 끄면 다음 실행에 다시 뜬다).
- **서재의 "알림 관리"는 설정 목록 전체가 아니라 `SettingFactory.makeNotificationSettingView`로
바로 진입한다**(사용자 확정, #196) — 서재 맥락에서 필요한 건 알림 설정뿐이라 `SettingFactory.makeView`
(설정 메인 목록)를 거치지 않고 그 하위 화면으로 직행한다. `AppDependencies.pushSettingRepository`
Expand Down
32 changes: 32 additions & 0 deletions Projects/App/Sources/Collection/PublicCollectionListAssembly.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// PublicCollectionListAssembly.swift
// WSS-iOS
//
// Created by Guryss on 9/28/26.
// Copyright © 2026 kr.websoso.app. All rights reserved.
//

import SwiftUI

import CollectionDomain
import CollectionFeature

/// 전체 컬렉션뷰("컬렉션 모음.zip", `CollectionFeatureFactory.makePublicCollectionListView`) 조립 —
/// 지금 진입점은 홈 컬렉션 섹션 제목 하나뿐이다(#283).
@MainActor
enum PublicCollectionListAssembly {
static func makeView(
dependencies: AppDependencies,
onAuthenticationRequired: @escaping () -> Void,
onRoute: @escaping (PublicCollectionListRoute) -> Void
) -> some View {
CollectionFeatureFactory.makePublicCollectionListView(
loadPublicCollectionsUseCase: DefaultLoadPublicCollectionsUseCase(
collectionRepository: dependencies.collectionRepository
),
logger: dependencies.logger,
onAuthenticationRequired: onAuthenticationRequired,
onRoute: onRoute
)
}
}
1 change: 1 addition & 0 deletions Projects/App/Sources/DI/AppDependencies.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ final class AppDependencies {
)
self.collectionRepository = CollectionDataFactory.makeRepository(
network: client,
appStorage: UserDefaultsStorage(),
logger: DataLogger(moduleName: "CollectionData", underlying: logger)
)
self.feedRepository = FeedDataFactory.makeFeedRepository(
Expand Down
3 changes: 3 additions & 0 deletions Projects/App/Sources/Feed/FeedRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ struct FeedRootView: View {
let onDeepLinkDestinationDismissed: () -> Void
/// 이 화면이 push하는 작품 상세의 API 호출이 401(갱신 실패 포함)로 막히면 발화 — idempotent해야 한다.
let onAuthenticationRequired: () -> Void
/// "나만의 컬렉션을 만들어보세요" 툴팁 노출 여부(#283) — 판정은 `MainTabView`, 이 Root는 루트 화면에 그리기만 한다.
let showsCollectionTooltip: Bool
/// 피드 탭바의 **현재(피드) 탭 재탭** 신호(`MainTabView`가 커스텀 selection Binding으로 감지해 증가시키는
/// 카운터). `makeSosoFeedView`로 그대로 흘려보내면 지금 보이는 서브탭 목록이 최상단으로 스크롤된다
/// (시스템 자동 "탭 재탭→최상단"이 상시 mount된 두 ScrollView 중 첫 번째=내 피드에만 걸리는 문제 우회).
Expand Down Expand Up @@ -147,6 +149,7 @@ struct FeedRootView: View {
}
}
)
.collectionTooltip(isPresented: showsCollectionTooltip)
.navigationDestination(for: Destination.self) { destination in
Group {
switch destination {
Expand Down
26 changes: 25 additions & 1 deletion Projects/App/Sources/Home/HomeRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ struct HomeRootView: View {
case userLibrary(UserID)
/// 타유저 프로필의 "활동기록 더보기" → 전체 피드 목록(#201, `UserPageAssembly.makeFeedListView`).
case userFeedList(userID: UserID, nickname: String, profileImage: URL?)
/// 타유저 프로필의 컬렉션 미리보기 항목 탭 → 그 컬렉션 상세(`CollectionDetailAssembly`).
/// 타유저 프로필의 컬렉션 미리보기 항목 탭·홈 "컬렉션 모음.zip" 카드 탭·전체 컬렉션뷰 카드 탭(#283)
/// → 그 컬렉션 상세(`CollectionDetailAssembly`).
case collectionDetail(CollectionID)
/// 홈 "컬렉션 모음.zip" 섹션 제목 탭 → 전체 컬렉션뷰(#283, `PublicCollectionListAssembly`).
case publicCollectionList
/// 타유저 프로필의 컬렉션 섹션 헤더 탭 → 그 유저의 컬렉션 목록(`CollectionListAssembly`,
/// "내 컬렉션" 탭만 보이는 모드).
case collectionList(UserID)
Expand Down Expand Up @@ -81,6 +84,8 @@ struct HomeRootView: View {
let onDeepLinkDestinationDismissed: () -> Void
/// 홈의 API 호출이 401(갱신 실패 포함)로 막히면 발화 — idempotent해야 한다(`HomeFeature/CLAUDE.md`).
let onAuthenticationRequired: () -> Void
/// "나만의 컬렉션을 만들어보세요" 툴팁 노출 여부(#283) — 판정은 `MainTabView`, 이 Root는 루트 화면에 그리기만 한다.
let showsCollectionTooltip: Bool

@State private var path = NavigationPath()
/// 딥링크 화면이 놓인 스택 깊이 — `path.count`가 이보다 작아지면 그 화면이 빠진 것(아래 `.onChange(of: path.count)`).
Expand Down Expand Up @@ -114,6 +119,9 @@ struct HomeRootView: View {
loadUnreadNotificationStatusUseCase: DefaultLoadUnreadNotificationStatusUseCase(
repository: dependencies.notificationRepository
),
loadPublicCollectionsUseCase: DefaultLoadPublicCollectionsUseCase(
collectionRepository: dependencies.collectionRepository
),
pushAuthorizationChecker: DefaultPushAuthorizationChecker(),
logger: dependencies.logger,
analyticsTracker: dependencies.analyticsTracker,
Expand All @@ -136,11 +144,16 @@ struct HomeRootView: View {
}
case .preferenceGenreSetting:
path.append(Destination.preferenceGenreSetting)
case .publicCollectionList:
path.append(Destination.publicCollectionList)
case .collectionDetail(let id):
path.append(Destination.collectionDetail(id))
}
},
onAuthenticationRequired: onAuthenticationRequired
)
.toolbar(.hidden, for: .navigationBar)
.collectionTooltip(isPresented: showsCollectionTooltip)
.navigationDestination(for: Destination.self) { destination in
Group {
switch destination {
Expand Down Expand Up @@ -218,6 +231,17 @@ struct HomeRootView: View {
}
}
)
case .publicCollectionList:
PublicCollectionListAssembly.makeView(
dependencies: dependencies,
onAuthenticationRequired: onAuthenticationRequired,
onRoute: { route in
switch route {
case .collectionDetail(let collectionID):
path.append(Destination.collectionDetail(collectionID))
}
}
)
case .editCollection(let id):
editCollectionView(id: id)
case .searchNovelForCollection(let initialSelection):
Expand Down
3 changes: 3 additions & 0 deletions Projects/App/Sources/Library/LibraryRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ struct LibraryRootView: View {
/// 딥링크로 push한 화면이 스택에서 빠지면 발화(`HomeRootView`와 동일 규칙).
let onDeepLinkDestinationDismissed: () -> Void
let onAuthenticationRequired: () -> Void
/// "나만의 컬렉션을 만들어보세요" 툴팁 노출 여부(#283) — 판정은 `MainTabView`, 이 Root는 루트 화면에 그리기만 한다.
let showsCollectionTooltip: Bool

@State private var path = NavigationPath()
@State private var deepLinkDestinationDepth: Int?
Expand Down Expand Up @@ -129,6 +131,7 @@ struct LibraryRootView: View {
},
onAuthenticationRequired: onAuthenticationRequired
)
.collectionTooltip(isPresented: showsCollectionTooltip)
.navigationDestination(for: Destination.self) { destination in
Group {
switch destination {
Expand Down
73 changes: 73 additions & 0 deletions Projects/App/Sources/Main/CollectionTooltip.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
//
// CollectionTooltip.swift
// WSS-iOS
//
// Copyright © 2026 kr.websoso.app. All rights reserved.
//

import SwiftUI

import DesignSystem

/// 탭바 바로 위에서 My 탭을 가리키는 "나만의 컬렉션을 만들어보세요" 툴팁(#283).
/// 노출·확인 판정은 `MainTabView`가 하고, 이 파일은 그리기와 위치만 맡는다.
private struct CollectionTooltip: View {

enum Metric {
static let size = CGSize(width: 186, height: 44)
/// 말풍선 몸통 높이 — 나머지 6pt는 아래로 튀어나온 꼬리.
static let bodyHeight: CGFloat = 38
/// 말풍선 오른쪽 끝 ↔ 꼬리 끝(가운데) 거리. 에셋 원본(회전 전)의 꼬리 중심 x≈31.5.
static let tailFromTrailing: CGFloat = 31.5
}

var body: some View {
Text("나만의 컬렉션을 만들어보세요")
.applyWSSFont(.body3, color: .wssWhite)
.frame(width: Metric.size.width, height: Metric.bodyHeight)
.frame(width: Metric.size.width, height: Metric.size.height, alignment: .top)
.background {
// Figma 원본 에셋은 꼬리가 위·왼쪽이고 화면에선 180° 돌려 배치돼 있다 — 돌리면 꼬리가 아래·오른쪽(My 탭 쪽).
WSSImage.icCollectionTooltip.swiftUIImage
.resizable()
.rotationEffect(.degrees(180))
}
}
}

extension View {
/// 탭 Root의 **NavigationStack 루트 콘텐츠**에 건다 — 루트 콘텐츠의 하단 safe area가 곧 탭바 상단이라
/// 탭바 위에 붙고, push 화면(탭바 숨김)에선 그 화면에 덮여 자연히 안 보인다.
func collectionTooltip(isPresented: Bool) -> some View {
overlay {
if isPresented {
GeometryReader { proxy in
CollectionTooltip()
.padding(.trailing, collectionTooltipTrailingInset(containerWidth: proxy.size.width))
.padding(.bottom, 13)
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottomTrailing)
}
// 아래 콘텐츠 탭을 막지 않는다 — 툴팁 자체엔 탭 동작이 없다.
.allowsHitTesting(false)
.transition(.opacity)
}
}
}
}

/// 꼬리 끝이 My 탭 중심에 오도록 하는 말풍선의 오른쪽 여백.
/// ⚠️ 시스템 탭바의 아이템 위치를 SwiftUI로 읽을 방법이 없어 화면 너비로 계산한다 — Figma의 고정 여백(20)은
/// 화면을 4등분하는 예전 탭바 기준이라, 떠 있는 iOS 26 탭바에선 꼬리가 My 오른쪽으로 크게 벗어났다.
/// - iOS 26+: 탭바가 화면 양옆에서 21pt 들어와 떠 있고 그 안쪽 11pt를 뺀 폭을 4등분한다
/// (iPhone 17 Pro Max 실측 — 아이템 중심 78.5/172.5/266.5/360.5pt, 간격 94pt).
/// - iOS 17~18: 탭바가 화면 폭을 4등분한다.
private func collectionTooltipTrailingInset(containerWidth: CGFloat) -> CGFloat {
let myTabCenterFromTrailing: CGFloat
if #available(iOS 26.0, *) {
let barInset: CGFloat = 21 + 11
myTabCenterFromTrailing = barInset + (containerWidth - barInset * 2) / 8
} else {
myTabCenterFromTrailing = containerWidth / 8
}
return myTabCenterFromTrailing - CollectionTooltip.Metric.tailFromTrailing
}
32 changes: 30 additions & 2 deletions Projects/App/Sources/Main/MainTabView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,24 @@ struct MainTabView: View {
/// 세션을 끝낸 것이라 되살리지 않는다. 어느 탭이 소비했는지도 같이 들어, 다른 탭의 딥링크 화면이 빠질 때
/// 이 값이 지워지지 않게 한다(탭마다 스택이 따로라 홈의 링크 A와 피드의 링크 B가 동시에 살아 있을 수 있다).
@State private var deliveredDeepLink: (tab: MainTab, link: DeepLink)?
/// "나만의 컬렉션을 만들어보세요" 툴팁(#283) — 메인 진입 시(이 뷰가 새로 만들어질 때) 미확인이면 띄운다.
/// 홈·피드·서재 탭을 오가도 유지되고, **떠 있는 동안** My 탭을 눌러야만 확인 처리된다(`tabSelection`).
/// 확인 안 하고 앱을 끄면 다음 실행에 다시 뜬다.
@State private var isCollectionTooltipPresented: Bool

init(
dependencies: AppDependencies,
pendingDeepLink: Binding<DeepLink?>,
onAuthenticationRequired: @escaping () -> Void
) {
self.dependencies = dependencies
self._pendingDeepLink = pendingDeepLink
self.onAuthenticationRequired = onAuthenticationRequired
self._isCollectionTooltipPresented = State(
initialValue: !DefaultOnboardingHintUseCase(repository: dependencies.onboardingHintRepository)
.hasSeen(.myPageCollectionTooltip)
)
}

/// `TabView(selection:)`을 감싼 프록시 — 이미 선택된 피드 탭을 다시 탭하면(newValue == 현재 == .feed)
/// `feedReselectSignal`을 올린다. SwiftUI는 선택된 탭 아이템을 재탭할 때도 이 setter를 같은 값으로 호출한다
Expand All @@ -61,6 +79,13 @@ struct MainTabView: View {
if newValue == .feed && selectedTab == .feed {
feedReselectSignal += 1
}
if newValue == .my && isCollectionTooltipPresented {
DefaultOnboardingHintUseCase(repository: dependencies.onboardingHintRepository)
.markSeen(.myPageCollectionTooltip)
withAnimation(.easeOut(duration: 0.15)) {
isCollectionTooltipPresented = false
}
}
selectedTab = newValue
}
)
Expand Down Expand Up @@ -163,7 +188,8 @@ private extension MainTabView {
deepLink: deepLink(for: .home),
onDeepLinkConsumed: consumeDeepLink,
onDeepLinkDestinationDismissed: { clearDeliveredDeepLink(for: .home) },
onAuthenticationRequired: restoreDeepLinkAndRequireAuthentication
onAuthenticationRequired: restoreDeepLinkAndRequireAuthentication,
showsCollectionTooltip: isCollectionTooltipPresented
)
}

Expand All @@ -174,6 +200,7 @@ private extension MainTabView {
onDeepLinkConsumed: consumeDeepLink,
onDeepLinkDestinationDismissed: { clearDeliveredDeepLink(for: .feed) },
onAuthenticationRequired: restoreDeepLinkAndRequireAuthentication,
showsCollectionTooltip: isCollectionTooltipPresented,
scrollToTopSignal: feedReselectSignal
)
}
Expand All @@ -184,7 +211,8 @@ private extension MainTabView {
deepLink: deepLink(for: .library),
onDeepLinkConsumed: consumeDeepLink,
onDeepLinkDestinationDismissed: { clearDeliveredDeepLink(for: .library) },
onAuthenticationRequired: restoreDeepLinkAndRequireAuthentication
onAuthenticationRequired: restoreDeepLinkAndRequireAuthentication,
showsCollectionTooltip: isCollectionTooltipPresented
)
}

Expand Down
Loading
Loading