Repository navigation
feat: 자유기록 종료 시 이름 입력 모달 제거 - #228
Conversation
자유기록을 마치면 "자유기록 이름을 정해주세요" 모달이 떠 입력을 받고 그 값을 complete 요청에 실어 보냈다. 모달 없이 바로 마감하고 이름은 서버 기본값(260723_닉네임의코스1 형태)을 쓴다. 기록 상세 화면에서 언제든 제목을 고칠 수 있다. 이름을 넘기지 않으면 useCompleteTrackingSession이 body를 생략하고 서버가 기본 이름을 채우므로, 코스 기록과 같은 경로로 합쳐진다. 쓰이지 않게 된 runCompleteSession의 name 파라미터와 관련 상태 (showCourseNameModal, freeRecordCourseName, handleCourseNameSubmit)를 함께 제거한다. CourseNameInputModal 컴포넌트는 기록 상세의 제목 수정에서 계속 쓰므로 남긴다.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough자유기록 종료 시 코스 이름을 입력받는 흐름을 제거했습니다. 종료 시간이 60초 미만이면 세션을 폐기하고, 60초 이상이면 이름 없이 완료 요청을 보냅니다. Changes트래킹 세션 완료
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to Free recordings of at least 60 seconds now complete without a name prompt and rely on server-side default naming. No concrete failure is evidenced, though the server’s default-name behavior could not be verified in this repository. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change reuses the existing session-completion path without adding an endpoint, privilege, or identity source. No newly introduced security weakness was established. Remaining uncertainty concerns server handling of unnamed completion and recovery after failed or repeated requests; those behaviors and the device flow were not verified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. 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. Comment |
무엇을
자유기록을 마치면 뜨던 "자유기록 이름을 정해주세요" 모달을 없앱니다.
종료하면 바로 마감되고, 기록 이름은 서버 기본값을 씁니다.
모달 placeholder로 보이던
260723_닉네임의코스1이 서버가 붙이는 기본 이름입니다.이름을 바꾸고 싶으면 기록 상세에서 제목 수정이 가능합니다 (#223).
왜
종료 흐름에 입력 단계가 하나 끼어 있었는데, 대부분 기본값 그대로 저장합니다.
이름은 나중에 기록 상세에서 고칠 수 있으므로 종료 시점에 받을 이유가 없습니다.
어떻게
useCompleteTrackingSession은 이름을 받지 않으면 body를 생략하고 서버가 기본이름을 채웁니다. 그래서 자유기록도 코스 기록과 같은 종료 경로로 합쳐졌습니다.
쓰이지 않게 된 것들을 함께 제거했습니다.
showCourseNameModal,freeRecordCourseName상태handleCourseNameSubmitrunCompleteSession의name파라미터 (항상undefined가 됨)CourseNameInputModal컴포넌트는 기록 상세의 제목 수정에서 계속 쓰므로 남겼습니다.변경 범위
app/(tabs)/tracking.tsx1파일, +2/−34확인
서버에 기록이 남는 작업이라, 리뷰 시 한 번 봐주시면 좋겠습니다.
Summary by CodeRabbit