⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@seongwon030
Copy link
Member

@seongwon030 seongwon030 commented Jan 25, 2026

변경사항

공유하기 기능은 웹뷰에서 web share api에서 처리되기에 브리지 작업이 따로 필요없었습니다.

share 관련 코드를 제거했습니다.

  • use-webview-message-handler.ts: share 인터페이스 제거 및 case 조건문에서 로직 제거
  • webview-message-types.ts: share 메세지 타입 제거
  • club-detail-screen.tsx: 상세페이지 공유하기 핸들러 제거

Summary by CodeRabbit

릴리스 노트

  • 버그 수정

    • 웹뷰 메시지 처리 로직 개선으로 메시지 핸들링이 더욱 안정화되었습니다.
  • 개선 사항

    • 내부 코드 최적화를 통해 알림 구독/구독 해제 및 네비게이션 기능의 성능을 개선했습니다.

✏️ Tip: You can customize this high-level summary in your review settings.

@seongwon030 seongwon030 self-assigned this Jan 25, 2026
@coderabbitai
Copy link

coderabbitai bot commented Jan 25, 2026

Walkthrough

WebView 메시지 처리에서 SHARE 기능이 제거되고, 메시지 타입과 훅의 처리 로직이 단순화되었습니다. 전체 코드베이스에서 쿼트 스타일이 일관되게 정규화되었습니다.

Changes

Cohort / File(s) 변경 요약
WebView 메시지 타입 및 핸들러 변경
types/webview-message.types.ts, hooks/use-webview-message-handler.ts
SHARE 메시지 타입 및 관련 처리 로직 제거; onShare 콜백 옵션 삭제; 남은 NAVIGATE_BACK, NOTIFICATION_SUBSCRIBE, NOTIFICATION_UNSUBSCRIBE 메시지만 처리
포맷팅 및 스타일 정규화
types/webview-message.types.ts, hooks/use-webview-message-handler.ts, ui/club-detail/club-detail-screen.tsx
모든 문자열 리터럴의 쿼트 스타일을 단일 쿼트에서 이중 쿼트로 변경; import 문 형식 일관성 조정
UI 컴포넌트 쿼트 정규화
ui/club-detail/club-detail-screen.tsx
JSX 속성, 매개변수 키, 이미지 경로 문자열에서 쿼트 스타일 일관성 유지; 함수형 로직 변경 없음

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • SeongHoonC
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR 제목은 변경사항의 주요 내용을 정확하게 반영하고 있습니다. 웹뷰 공유 기능 브리징 제거라는 핵심 변경사항을 명확하게 요약하고 있습니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

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 and usage tips.

@seongwon030 seongwon030 merged commit 93af5cc into main Jan 25, 2026
1 check was pending
@seongwon030 seongwon030 deleted the fix/share-bridge-delete branch January 25, 2026 08:03
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@types/webview-message.types.ts`:
- Around line 2-7: The WebViewMessageTypes object still includes the obsolete
SHARE entry; remove the SHARE: "SHARE" property from the WebViewMessageTypes
const (and any direct references to WebViewMessageTypes.SHARE) so the runtime
constants match the updated union/type surface and prevent legacy usage—update
or delete any code that still references WebViewMessageTypes.SHARE to use the
new approved message types (e.g., NAVIGATE_BACK, NOTIFICATION_SUBSCRIBE,
NOTIFICATION_UNSUBSCRIBE) or refactor callers to the new API.

Comment on lines 2 to 7
export const WebViewMessageTypes = {
NAVIGATE_BACK: 'NAVIGATE_BACK',
NOTIFICATION_SUBSCRIBE: 'NOTIFICATION_SUBSCRIBE',
NOTIFICATION_UNSUBSCRIBE: 'NOTIFICATION_UNSUBSCRIBE',
SHARE: 'SHARE',
NAVIGATE_BACK: "NAVIGATE_BACK",
NOTIFICATION_SUBSCRIBE: "NOTIFICATION_SUBSCRIBE",
NOTIFICATION_UNSUBSCRIBE: "NOTIFICATION_UNSUBSCRIBE",
SHARE: "SHARE",
} as const;
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

SHARE 상수 제거로 타입/정책 일관성 유지

SHARE 유니온이 제거됐는데 상수는 남아 있어 레거시 사용이 계속될 수 있습니다. 의도대로면 상수도 제거해 API 표면을 정리하는 편이 안전합니다.

🧹 Proposed fix
 export const WebViewMessageTypes = {
   NAVIGATE_BACK: "NAVIGATE_BACK",
   NOTIFICATION_SUBSCRIBE: "NOTIFICATION_SUBSCRIBE",
   NOTIFICATION_UNSUBSCRIBE: "NOTIFICATION_UNSUBSCRIBE",
-  SHARE: "SHARE",
 } as const;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
export const WebViewMessageTypes = {
NAVIGATE_BACK: 'NAVIGATE_BACK',
NOTIFICATION_SUBSCRIBE: 'NOTIFICATION_SUBSCRIBE',
NOTIFICATION_UNSUBSCRIBE: 'NOTIFICATION_UNSUBSCRIBE',
SHARE: 'SHARE',
NAVIGATE_BACK: "NAVIGATE_BACK",
NOTIFICATION_SUBSCRIBE: "NOTIFICATION_SUBSCRIBE",
NOTIFICATION_UNSUBSCRIBE: "NOTIFICATION_UNSUBSCRIBE",
SHARE: "SHARE",
} as const;
export const WebViewMessageTypes = {
NAVIGATE_BACK: "NAVIGATE_BACK",
NOTIFICATION_SUBSCRIBE: "NOTIFICATION_SUBSCRIBE",
NOTIFICATION_UNSUBSCRIBE: "NOTIFICATION_UNSUBSCRIBE",
} as const;
🤖 Prompt for AI Agents
In `@types/webview-message.types.ts` around lines 2 - 7, The WebViewMessageTypes
object still includes the obsolete SHARE entry; remove the SHARE: "SHARE"
property from the WebViewMessageTypes const (and any direct references to
WebViewMessageTypes.SHARE) so the runtime constants match the updated union/type
surface and prevent legacy usage—update or delete any code that still references
WebViewMessageTypes.SHARE to use the new approved message types (e.g.,
NAVIGATE_BACK, NOTIFICATION_SUBSCRIBE, NOTIFICATION_UNSUBSCRIBE) or refactor
callers to the new API.

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.

2 participants