Repository navigation
[FEAT] TODO 삭제 API 날짜 파라미터 업데이트 - #338
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
삭제 요청 날짜 전달 apps/timo-web/hooks/todo-modal/detail/use-delete-todo-submit.ts, apps/timo-web/containers/todo-modal/detail/DetailTodoModalContainer.tsx |
handleDelete가 date를 인자로 받고 삭제 요청에 전달합니다. 호출부는 currentDate를 넘깁니다. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
- Team-Timo/Timo-client#336 — 삭제 요청에
date쿼리 파라미터를 전달하라는 목표를 이 변경이 반영합니다.
Suggested labels: ⏰ Timo-web, 🐛 Bug
Suggested reviewers: jjangminii
Merge Risk: 
Minimal · up to fd68e
-
No merge-blocking client issue was identified. Recurring deletion behavior on the server remains unverified.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 inconclusive Passed checks: 4 passed-
Full details: Out of Scope Changes check
-
Explanation
확인된 변경은 모두 [
#337] 범위에 속합니다.use-delete-todo-submit.ts:handleDelete에date인자를 추가하고 삭제 요청에 전달합니다. 이슈의 "삭제 훅이 TODO ID와 삭제 대상 날짜를 함께 전달" 항목에 해당합니다.DetailTodoModalContainer.tsx:deleteTodo호출에currentDate를 추가합니다. 이슈의 "삭제 호출부에 삭제 대상 TODO의 날짜를 연결" 항목에 해당합니다.- 제외 파일(
apps/timo-web/generated/**)의 변경은 이슈의 "Orval API 및 Zod 코드 재생성" 항목에 해당합니다. 이 파일들의 내용은 확인하지 않았습니다. PR 설명의 "재생성 결과 중 필요한 부분만 반영" 주장은 제외 파일 내용으로 검증되지 않았습니다.
확인된 변경 중 범위 밖 변경은 없습니다. 제외 파일 내부의 범위 밖 변경 여부는 확인 불가이며, 이는 요구사항 평가에서 다룹니다.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files.
-
Full details: Linked Issues check
-
Explanation
[
#337] TODO 삭제 API에date쿼리 파라미터를 반영하는 요구사항을 검토했습니다.확인된 구현 (PR 요약 근거)
useDeleteTodoSubmit의handleDelete가date: string인자를 추가로 받습니다. 삭제 요청에todoId와date를 함께 전달합니다. 이전에는todoId만 전달했습니다.DetailTodoModalContainer.tsx의deleteTodo호출에 상세 모달의currentDate를 전달합니다. 오늘 날짜를 고정하지 않습니다.- 일반 TODO와 반복 TODO 모두 같은 호출 경로를 사용하므로
date가 함께 전달됩니다.
확인 불가 항목
- Orval 및 Zod 재생성 결과는 제외 파일입니다. 제외 규칙:
!**/generated/**. 대상 경로:apps/timo-web/generated/endpoints/todo/todo.ts,apps/timo-web/generated/endpoints/todo/todo.zod.ts,apps/timo-web/generated/models/deleteTodoParams.ts,apps/timo-web/generated/models/index.ts. 따라서date의 필수 여부, 요청 경로, Zod 스키마의YYYY-MM-DD형식을 확인할 수 없습니다. handleDelete의 전체 호출부 목록은 요약에 없습니다. 상세 모달 외 다른 삭제 호출부가 있는지 확인할 수 없습니다.#337은호출부 전체 확인을 요구합니다.currentDate의 타입과 값 형식(YYYY-MM-DD)을 요약만으로 확인할 수 없습니다.
비코딩 항목
- 웹 배포 및 삭제 동작 수동 확인은 평가에서 제외했습니다.
- 이슈에 자동 테스트 요구사항은 없습니다.
칭찬
- 훅 시그니처 변경을 상세 모달 호출부까지 일관되게 연결했습니다. 깔끔한 연결입니다.
Resolution
다음 정보가 있으면 판정을 확정할 수 있습니다.
- 제외 파일 중
deleteTodoParams와 삭제 함수 정의의 내용 또는 diff. 이를 통해date필수 여부와 요청 경로를 확인합니다. - Zod 스키마에서
date의 형식 정의.YYYY-MM-DD형식인지 확인합니다. handleDelete와 삭제 API 함수의 전체 호출부 목록(검색 결과 또는 참조 목록). 모든 호출부가date를 전달하는지 확인합니다.currentDate의 타입 정의와 생성 경로.
참고 문서: Orval 설정 및 생성 결과 https://orval.dev/ , Zod 스키마 문서 https://zod.dev/
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Timo Performance ReportBundle Size — timo-web
Lighthouse — timo-web
Image Optimization — timo-web
측정 커밋: |
ISSUE 🔗
close #337
What is this PR? 🔍
TODO 삭제 API 변경에 맞춰
date쿼리 파라미터를 추가했습니다.To Reviewers
오늘 날짜를 고정해서 보내지 않고, 상세 모달에서 조회 중인 TODO의
currentDate를 전달하도록 했습니다.전체 API 재생성 결과 중 이번 삭제 API 변경에 필요한 부분만 반영했습니다.
Screenshot 📷
Test Checklist ✔