Skip to content

Comments

fix: 템플릿 질문 리스트 질문 추가 과정에서 나오는 "질문 수정을 취소하시겠어요" 모달을 이전 화면 과정에서 이탈시 나오게 제공#798

Merged
prgmr99 merged 2 commits intodevelopfrom
795-템플릿-질문-리스트-질문-추가-과정에서-나오는-질문-수정을-취소하시겠어요-모달을-이전-화면-과정에서-이탈시-나오게-제공
Feb 4, 2026

Hidden character warning

The head ref may contain hidden characters: "795-\ud15c\ud50c\ub9bf-\uc9c8\ubb38-\ub9ac\uc2a4\ud2b8-\uc9c8\ubb38-\ucd94\uac00-\uacfc\uc815\uc5d0\uc11c-\ub098\uc624\ub294-\uc9c8\ubb38-\uc218\uc815\uc744-\ucde8\uc18c\ud558\uc2dc\uaca0\uc5b4\uc694-\ubaa8\ub2ec\uc744-\uc774\uc804-\ud654\uba74-\uacfc\uc815\uc5d0\uc11c-\uc774\ud0c8\uc2dc-\ub098\uc624\uac8c-\uc81c\uacf5"
Merged

fix: 템플릿 질문 리스트 질문 추가 과정에서 나오는 "질문 수정을 취소하시겠어요" 모달을 이전 화면 과정에서 이탈시 나오게 제공#798
prgmr99 merged 2 commits intodevelopfrom
795-템플릿-질문-리스트-질문-추가-과정에서-나오는-질문-수정을-취소하시겠어요-모달을-이전-화면-과정에서-이탈시-나오게-제공

Conversation

@prgmr99
Copy link
Member

@prgmr99 prgmr99 commented Feb 1, 2026

질문 수정 취소 모달 플로우 개선


🏄🏼‍♂️‍ Summary (요약)

  • 데스크탑 커스텀 회고 템플릿의 질문 수정 화면에서 사용자 경험을 개선하기 위해 모달 취소 플로우를 변경했습니다.
  • 질문 추가 화면에서는 모달 없이 바로 이전 화면으로 돌아가고, 질문 리스트 편집 화면에서만 변경사항이 있을 때 확인 모달을 표시하도록 수정했습니다.

🫨 Describe your Change (변경사항)

  • 질문 추가 화면 뒤로가기 플로우 변경
  • 질문 추가 화면에서 뒤로가기 버튼 클릭 시 별도 모달 없이 즉시 질문 리스트 화면으로 복귀
  • handleAddQuestionCancel 함수를 제거하고, 질문 추가 모드 진입 시점에 인라인 cancelCallback으로 통합
  • 질문 리스트 편집 후 뒤로가기 또는 닫기 버튼 클릭 시 "질문 수정을 취소하시겠어요?" 모달 표시
  • 닫기 버튼(X) 클릭 시에도 모달이 즉시 닫히지 않도록 disabledClose: true 설정
  • 질문 추가 모드에서 뒤로가기 시 기존 질문들이 사라지는 클로저 이슈 해결
  • 질문 리스트 화면의 onClose 핸들러를 useEffect에서 handleCancel로 연결하여 일관된 동작 보장

🧐 Issue number and link (참고)

📚 Reference (참조)

2026-02-01.3.42.47.mov

@prgmr99 prgmr99 self-assigned this Feb 1, 2026
@prgmr99 prgmr99 added 🚀 feature New feature or request 👾 desktop labels Feb 1, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 1, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • Not Rabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 795-템플릿-질문-리스트-질문-추가-과정에서-나오는-질문-수정을-취소하시겠어요-모달을-이전-화면-과정에서-이탈시-나오게-제공

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist.


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.

}));
}
}, [editingQuestions, isAddMode]);
}, [isAddMode, handleCancel, setModalDataState]);
Copy link
Member

Choose a reason for hiding this comment

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

여기 의존성 배열에 setter 함수를 넣은 이유는 무엇인지 궁금해요!

Copy link

@johnyeom24 johnyeom24 Feb 4, 2026

Choose a reason for hiding this comment

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

지금 exhaustive-deps 규칙이 꺼져있지는 않은거 같은데, 표기가 안되어서 습관처럼 setter 함수도 넣어준거 같습니다.

크게 의도한 바는 아니긴 합니다..!

Claude code랑 검토해본 결과, setModalDataState은 Primitive atom의 setter라서 참조가 안정적이라고 합니다.

그래서 넣어도 문제가 없고, 빼도 문제가 없다고 하네요!!
-> 빼도록 하겠습니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

공부용

image

@@ -105,17 +105,34 @@ export default function QuestionEditSection({ onClose }: QuestionEditSectionProp
if (questions.length >= 10) return;
Copy link
Member

Choose a reason for hiding this comment

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

큰건아니지만 10 매직넘버 상수화 해도 좋을 듯합니다요!

Choose a reason for hiding this comment

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

사용된 곳이 꽤 많아서... 꽤 큰 듯합니다..!!ㅋㅎㅋㅎ
피드백 감사합니다 :)

Copy link
Member

@klmhyeonwoo klmhyeonwoo left a comment

Choose a reason for hiding this comment

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

Good 갓승준-

@prgmr99 prgmr99 force-pushed the 795-템플릿-질문-리스트-질문-추가-과정에서-나오는-질문-수정을-취소하시겠어요-모달을-이전-화면-과정에서-이탈시-나오게-제공 branch from 142c7a5 to b448e2d Compare February 4, 2026 00:56
@prgmr99 prgmr99 merged commit 184061e into develop Feb 4, 2026
2 checks passed
@prgmr99 prgmr99 deleted the 795-템플릿-질문-리스트-질문-추가-과정에서-나오는-질문-수정을-취소하시겠어요-모달을-이전-화면-과정에서-이탈시-나오게-제공 branch February 18, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👾 desktop 🚀 feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants