Skip to content

fix: 답글 시 CW 자동 동기화#230

Open
deholic wants to merge 1 commit intodevelopfrom
feature/reply-cw-sync
Open

fix: 답글 시 CW 자동 동기화#230
deholic wants to merge 1 commit intodevelopfrom
feature/reply-cw-sync

Conversation

@deholic
Copy link
Owner

@deholic deholic commented Feb 7, 2026

Summary

  • 답글 대상에 CW 메시지를 포함해 ComposeBox로 전달합니다.
  • 답글 대상이 CW를 가진 경우 자동으로 CW 입력을 활성화합니다.
  • 모바일 작성 메뉴에서도 동일한 답글 CW 전달 타입을 유지합니다.

@deholic deholic requested a review from Copilot February 7, 2026 09:33
@deholic deholic self-assigned this Feb 7, 2026
@deholic deholic added the enhancement New feature or request label Feb 7, 2026
@deholic deholic added this to the v0.15.0 milestone Feb 7, 2026
Copy link

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

답글 작성 시 원문에 설정된 CW(스포일러 텍스트)를 ComposeBox로 함께 전달하고, 원문에 CW가 있으면 작성창에서 CW 입력을 자동으로 활성화해 동작을 동기화하는 PR입니다.

Changes:

  • replyingTospoilerText 필드를 추가해 답글 대상의 CW를 전달
  • ComposeBox에서 답글 대상의 spoilerText 유무에 따라 CW를 자동 on/off 및 텍스트 동기화
  • 모바일 작성 메뉴(MobileComposeMenu)에서도 동일한 replyingTo 타입/전달 방식 유지

Reviewed changes

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

File Description
src/ui/components/MobileMenus.tsx MobileComposeMenu의 replyingTo 타입에 spoilerText를 포함하도록 확장
src/ui/components/ComposeBox.tsx 답글 대상 CW가 있으면 CW 입력을 자동 활성화하고 텍스트를 동기화
src/App.tsx ComposeBox/MobileComposeMenu에 replyingTo.spoilerText를 전달하도록 수정

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 50 to 55
spoilerText: string;
}) => Promise<boolean>;
replyingTo: { id: string; summary: string } | null;
replyingTo: { id: string; summary: string; spoilerText: string } | null;
onCancelReply: () => void;
mentionText: string | null;
accountSelector?: React.ReactNode;
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

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

replyingTo의 shape를 { id; summary; spoilerText } 인라인 타입으로 여러 컴포넌트에서 반복 정의하고 있어, 필드 추가/변경 시 누락이 발생하기 쉽습니다(이번 변경도 그 케이스). 공용 타입(예: ReplyTarget/ReplyingTo type alias)을 한 곳에 정의해 ComposeBox/MobileComposeMenu/App에서 재사용하도록 정리하는 게 유지보수에 안전합니다.

Copilot uses AI. Check for mistakes.
Comment on lines +1154 to +1158
replyingTo={
replyTarget
? { id: replyTarget.id, summary: replySummary ?? "", spoilerText: replyTarget.spoilerText }
: null
}
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

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

동일한 replyingTo 객체 리터럴을 이 컴포넌트 내에서 2곳(사이드 ComposeBox, MobileComposeMenu)에서 중복 생성하고 있습니다. const replyingTo = ...처럼 한 번만 만들고 재사용하면 필드 추가 시 누락/불일치 위험을 줄일 수 있습니다.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant