Skip to content

Feat/39 separate new topic#49

Merged
E0min merged 3 commits intodevelopfrom
feat/39-separate-new-topic
Nov 19, 2025
Merged

Feat/39 separate new topic#49
E0min merged 3 commits intodevelopfrom
feat/39-separate-new-topic

Conversation

@SangHyun01
Copy link
Contributor

새 토픽으로 분리

주요 변경 사항

  1. "새 토픽으로 분리" (Split & Create) 구현
  • 특정 질문 줄기가 현재 토픽의 맥락과 맞지 않을 때, 이를 새로운 토픽으로 분리해내는 기능을 구현했습니다.
  • UX: FocusViewHeader의 "새 토픽으로 분리" 버튼 → 노드 선택 → 확인 모달 → 분리 실행.

로직:

  • getAllIdsFromNode 헬퍼 함수로 선택한 노드와 하위 줄기 ID 전체를 수집합니다.
  • separateQuestions API (POST /api/questions/separations)를 호출하여 새 토픽을 생성하고 ID를 발급받습니다.
  • copyQuestions API로 데이터를 새 토픽으로 복사합니다.
  • deleteQuestionsBatch API로 원본 데이터를 삭제합니다.
  • 작업 완료 후 fetchTopics로 사이드바를 갱신하고, router.push로 새 토픽 페이지로 이동합니다.

@E0min E0min merged commit f7f446c into develop Nov 19, 2025
1 check passed
@SangHyun01 SangHyun01 deleted the feat/39-separate-new-topic branch November 19, 2025 11:44
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