From 37e361b1e962846a34e03405a7e371a4cc35b05d Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 17 Mar 2026 11:29:05 +0900 Subject: [PATCH] =?UTF-8?q?fix(community):=20=EC=9C=A0=EB=A3=8C=20?= =?UTF-8?q?=EB=AF=B8=EA=B5=AC=EB=A7=A4=20=EA=B2=8C=EC=8B=9C=EB=AC=BC=20?= =?UTF-8?q?=EB=A1=B1=ED=94=84=EB=A0=88=EC=8A=A4=20=EB=A9=94=EB=89=B4=20?= =?UTF-8?q?=EB=85=B8=EC=B6=9C=EC=9D=84=20=EC=B0=A8=EB=8B=A8=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../All/CreatorCommunityAllView.swift | 1 + ...20260317_커뮤니티그리드롱프레스구매조건수정.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 docs/20260317_커뮤니티그리드롱프레스구매조건수정.md diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift index 222f0f9..e8789d9 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift @@ -181,6 +181,7 @@ struct CreatorCommunityAllView: View { } } .onLongPressGesture(minimumDuration: 0.5) { + guard item.price <= 0 || item.existOrdered else { return } viewModel.openReportMenu(item: item) } .onAppear { diff --git a/docs/20260317_커뮤니티그리드롱프레스구매조건수정.md b/docs/20260317_커뮤니티그리드롱프레스구매조건수정.md new file mode 100644 index 0000000..835905f --- /dev/null +++ b/docs/20260317_커뮤니티그리드롱프레스구매조건수정.md @@ -0,0 +1,15 @@ +# 커뮤니티 그리드 롱프레스 구매 조건 수정 + +- [x] `CreatorCommunityAllView`의 기존 롱프레스/구매 상태 분기 패턴을 확인한다. +- [x] `gridContentView`에서 유료 미구매 게시물은 롱프레스 보조 메뉴가 열리지 않도록 조건을 추가한다. +- [x] 변경 파일 진단과 빌드/테스트를 실행해 회귀가 없는지 확인한다. +- [x] 검증 결과를 문서 하단 검증 기록에 남긴다. + +--- + +## 검증 기록 + +- `grep "existOrdered|price\\s*>\\s*0|openReportMenu\\(" SodaLive/Sources`: 커뮤니티 유료/구매 여부 분기 패턴과 보조 메뉴 진입 지점을 확인. +- `lsp_diagnostics` (`SodaLive/Sources/Explorer/Profile/CreatorCommunity/All/CreatorCommunityAllView.swift`): SourceKit 인덱싱 한계로 파일 전역의 기존 심볼 미해결 오류가 다수 표시되었고, 이번 변경 라인(`guard item.price <= 0 || item.existOrdered`) 자체의 신규 오류는 확인되지 않음. +- `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" -configuration Debug build`: 성공 (`** BUILD SUCCEEDED **`). +- `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" test`: 실패 (`Scheme SodaLive is not currently configured for the test action.`)로 스킴 테스트 액션 미구성 상태를 확인.