Skip to content

fix : 장소 접근 토큰·곡 상세 로딩 및 MY 장소 상세 열람 - #272

Merged
kim3360 merged 2 commits into
developfrom
fix/270-feed-place-token-my-detail
Aug 9, 2026
Merged

kim3360 merged 2 commits into
developfrom
fix/270-feed-place-token-my-detail

Conversation

@kim3360

@kim3360 kim3360 commented Aug 9, 2026 •

Copy link
Copy Markdown
Member

변경 내용

  • 친구 피드 장소 접근 토큰을 해당 장소 곡 상세 요청에만 전달하도록 정리
  • 내 피드/MY 장소 상세에는 잔여 토큰이 붙지 않도록 분리
  • 지도에서 MY 장소(내가 등록한 장소)의 곡 상세 열람 허용
  • 곡 상세 진입 시 좌표·토큰 전달 및 로딩/접근 가드 보완

관련 이슈

Closes #270

변경 사항

  • 새로운 기능 추가
  • 버그 수정
  • UI/UX 개선
  • 리팩토링
  • 문서 업데이트

테스트

  • 브라우저에서 정상 동작 확인
  • 기존 기능에 영향 없음 확인

스크린샷 (UI 변경시)

체크리스트

  • 코드가 정상적으로 동작합니다
  • 새로운 에러나 경고가 없습니다
  • 필요시 문서를 업데이트했습니다
  • 코드 포맷팅을 실행했습니다 (pnpm format)
  • ESLint 검사를 통과했습니다 (pnpm lint:fix)

코드 품질 확인
PR 제출 전에 다음 명령어를 실행하여 코드 품질을 확인해주세요:

pnpm lint:fix
pnpm format

Summary by CodeRabbit

  • 개선 사항
    • 피드 또는 본인이 등록한 장소 여부에 따라 곡 상세 접근 가능 여부를 안내합니다.
    • 친구 피드 장소의 접근 권한을 유지해 장소 및 곡 상세 정보를 정상적으로 확인할 수 있습니다.
    • 현재 위치가 없어도 선택한 장소나 지도 핀 위치를 기준으로 곡 상세 화면에 진입할 수 있습니다.

@kim3360
kim3360 requested review from JeongGyul, L0521 and onebone August 9, 2026 17:17
@kim3360 kim3360 self-assigned this Aug 9, 2026
@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@kim3360, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 40 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b31cb41f-5c9e-4d7b-b60f-0207541d0b4d

📥 Commits

Reviewing files that changed from the base of the PR and between 9a7abcc and 4e06a11.

📒 Files selected for processing (2)
  • src/features/pin/hooks/useOpenPinPlaceOnMap.ts
  • src/pages/MapPage.tsx
📝 Walkthrough

Walkthrough

장소 접근 토큰을 지도 라우팅 state로 전달하고, 곡 상세 및 핀 목록 조회에 사용합니다. 피드 진입 장소와 본인 등록 장소의 곡 상세 접근 조건을 반영합니다. 현재 위치가 없으면 선택 장소 또는 핀 좌표를 사용합니다.

Changes

장소 곡 상세 접근 흐름

Layer / File(s) Summary
접근 토큰 계약 및 장소 해석
src/features/pin/types.ts, src/features/pin/hooks/useOpenPinPlaceOnMap.ts
PinSearchPlace에 placeAccessToken을 추가합니다. 친구 피드 장소 접근 응답의 토큰을 해석된 장소에 저장합니다.
지도에서 상세 화면으로 상태 전달
src/pages/MapPage.tsx
지도와 핀 시트가 현재 위치가 없을 때 선택 장소 또는 핀 좌표를 사용합니다. 장소 검색 경로는 placeAccessToken을 라우팅 state에 포함합니다.
상세 접근 정책 및 토큰 조회
src/features/pin/components/PinListSheet.tsx, src/pages/PinDetailPage.tsx
피드 진입 또는 본인 등록 장소일 때 곡 상세 접근을 허용합니다. 상세 및 핀 목록 조회는 라우팅 state의 placeAccessToken을 사용합니다.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related issues

Possibly related PRs

Suggested labels: feature

Suggested reviewers: onebone, jeonggyul

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive 변경 요약은 [#270]의 토큰 전달과 MY 장소 접근 허용을 반영하지만, place-tracks 403 제외와 상세 로딩 가드 수정은 확인되지 않습니다. place-tracks 403 처리와 곡 상세 로딩 가드 수정의 구현 여부를 확인하고, 누락되었다면 변경 사항을 추가하십시오.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목은 장소 접근 토큰, 곡 상세 로딩, MY 장소 열람이라는 주요 변경 사항을 명확하게 요약합니다.
Out of Scope Changes check ✅ Passed 모든 변경 사항이 [#270]의 토큰 전달, 좌표 보완, MY 장소 접근 허용 범위와 관련됩니다.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/270-feed-place-token-my-detail

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

https://pr-272.plimap.kr

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/features/pin/hooks/useOpenPinPlaceOnMap.ts`:
- Around line 116-123: `resolvePlace`에서 확정한 `place.isMine`을 최종 소유권 기준으로 사용하도록 토큰
발급 조건을 수정하세요. 호출 시점의 `isMine`만으로 `postFeedPlaceAccessRequest`를 실행하지 말고,
`placeDetail.pinnedByMe`로 계산된 장소 소유권을 확인한 뒤 타인 장소일 때만 토큰을 저장하고 전달하세요.

In `@src/pages/MapPage.tsx`:
- Around line 484-517: Update the PinListSheet detailLocation calculation to use
the same currentLocation and selectionLocation fallbacks, then fall back to
selectedMapPlace.coordinates and the selectedMapPin coordinates as applicable.
Ensure this resolved location is passed to PinListSheet so usePlaceDetail and
usePlaceTrack remain enabled and pin clicks work when higher-priority locations
are unavailable.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b9f0df3e-d39e-43c7-9dec-fafcb52f5032

📥 Commits

Reviewing files that changed from the base of the PR and between fbe6ae7 and 9a7abcc.

📒 Files selected for processing (5)
  • src/features/pin/components/PinListSheet.tsx
  • src/features/pin/hooks/useOpenPinPlaceOnMap.ts
  • src/features/pin/types.ts
  • src/pages/MapPage.tsx
  • src/pages/PinDetailPage.tsx

Comment thread src/features/pin/hooks/useOpenPinPlaceOnMap.ts Outdated
Comment thread src/pages/MapPage.tsx
@kim3360
kim3360 merged commit 2cf5337 into develop Aug 9, 2026
4 checks passed
@kim3360
kim3360 temporarily deployed to preview-maintenance August 9, 2026 17:41 — with GitHub Actions Inactive

This branch was successfully deployed

1 active and 1 inactive deployments
preview-maintenance — 4e06a113 Deployed Aug 9, 2026 by kim3360 via cleanup #444
preview — 4e06a113 Deployed Aug 9, 2026 by kim3360 via deploy #443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

장소 접근 토큰·곡 상세 로딩 및 MY 장소 상세 열람

1 participant