Repository navigation
refactor(client): Todo·Routine 화면 컨텍스트 분리 - #66
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
tartelettie
force-pushed
the
refactor/todo-routine-flow
branch
from
August 28, 2026 12:46
2303f04 to
6cf6e2b
Compare
tartelettie
changed the base branch from
main
to
refactor/frontend-context-foundation
August 28, 2026 12:46
tartelettie
force-pushed
the
refactor/todo-routine-flow
branch
from
August 29, 2026 01:04
42afeaa to
f8be6e3
Compare
tartelettie
force-pushed
the
refactor/todo-routine-flow
branch
from
August 29, 2026 02:35
e0d1b2e to
da1dd8b
Compare
tartelettie
force-pushed
the
refactor/todo-routine-flow
branch
from
August 29, 2026 02:53
1991681 to
c5960cd
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
2 times, most recently
from
August 29, 2026 03:06
c70b596 to
58461cd
Compare
tartelettie
force-pushed
the
refactor/todo-routine-flow
branch
from
August 29, 2026 03:09
c5960cd to
8b5beed
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 29, 2026 03:22
58461cd to
6d0fd4f
Compare
tartelettie
force-pushed
the
refactor/todo-routine-flow
branch
from
August 29, 2026 03:22
8b5beed to
7660462
Compare
tartelettie
force-pushed
the
refactor/frontend-context-foundation
branch
from
August 29, 2026 03:27
6d0fd4f to
6e71c11
Compare
tartelettie
force-pushed
the
refactor/todo-routine-flow
branch
from
August 29, 2026 03:27
7660462 to
3256ade
Compare
CheHyeonYeong
requested changes
Sep 3, 2026
CheHyeonYeong
left a comment
Owner
There was a problem hiding this comment.
너무 좋아요
component
ㄴ style
*.tsx
으로 나눠주시면 더 좋을 것 같아요
| alignItems: "center", | ||
| paddingVertical: 9, | ||
| borderRadius: 10, | ||
| backgroundColor: "#edf0ed", |
Owner
There was a problem hiding this comment.
REAL 그냥 궁금한건데 님 인공지능 초록색 웰케 좋아해요?
| test: { | ||
| environment: "node", | ||
| include: ["src/domain/**/*.test.ts"], | ||
| include: ["src/**/domain/**/*.test.ts"], |
Owner
There was a problem hiding this comment.
음 domain은 보니까 entity를 만든 것 이고 test는 따로 test로 빼야 할 듯 다음에 이렇게 진행해주세요
Comment on lines
+11
to
+43
| export type TodoInput = { | ||
| title: string; | ||
| scope: Scope; | ||
| parentId?: string | null; | ||
| dueDate?: string | null; | ||
| category?: string | null; | ||
| }; | ||
|
|
||
| export type UseTodosResult = { | ||
| todos: Todo[]; | ||
| today: Date; | ||
| addTodo: (input: TodoInput) => Promise<void>; | ||
| addTodoWithDefaultDueDate: (input: Omit<TodoInput, "parentId">) => Promise<void>; | ||
| patchTodo: (id: string, patch: Partial<Todo>) => Promise<void>; | ||
| deleteTodo: (id: string) => Promise<void>; | ||
| toggleTodo: (todo: Todo) => void; | ||
| }; | ||
|
|
||
| export function useTodos({ | ||
| todos, | ||
| setData, | ||
| reload, | ||
| request, | ||
| createId, | ||
| }: { | ||
| todos: Todo[]; | ||
| setData: SetWorkspaceData; | ||
| reload: ReloadWorkspace; | ||
| request: WorkspaceRequest; | ||
| createId: CreateId; | ||
| }): UseTodosResult { | ||
| const today = new Date(); | ||
|
|
Owner
There was a problem hiding this comment.
저희 아에 type이랑 todo 쪽 function 을 분리하는게 좋을 것 같아요
| @@ -0,0 +1,93 @@ | |||
| import { StyleSheet } from "react-native"; | |||
|
|
|||
| export const styles = StyleSheet.create({ | |||
Owner
There was a problem hiding this comment.
style 을 한 곳에 모와두는 게 좋을 것 같아요
refactor(client): time 흐름 분리
refactor(client): notes 메모 흐름 분리
tartelettie
changed the base branch from
refactor/frontend-context-foundation
to
main
September 3, 2026 10:40
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
이 PR을 어떻게 봐야 하나
이 PR들은 리뷰를 쉽게 하려고 기능 단위로 쌓아 둔 PR입니다.
지금 GitHub 화면에서 #66/#69/#70은
main으로 바로 merge되는 PR이 아닙니다. 선행 PR 브랜치를 base로 둬서 리뷰어가 "이번 PR에서 추가로 바뀐 부분"만 작게 볼 수 있게 해 둔 상태입니다.예를 들어 #66 화면에 이렇게 보이면 정상입니다.
이 상태에서 바로 merge하면
main이 아니라refactor/frontend-context-foundation으로 들어갑니다. 그래서 실제 main merge는 아래 순서로 합니다.즉 리뷰할 때는 지금처럼 stacked PR로 작게 보고, merge할 때만 다음 PR의 base를
main으로 바꿔서 순서대로 넣습니다.왜
Todo/Routine 화면 로직이
Screens.tsx와useAppData.ts에 섞여 있었습니다. 리뷰 기준은 기능별 폴더가 자기 화면, hook, domain 규칙을 소유하는 구조입니다.이 PR은 todo/routine 범위만 분리해서 후속 notes/time PR과 변경 범위를 섞지 않도록 합니다.
무엇을 했나
TodoScreen,TodoItem,TodoCalendar를client/src/todo/components/로 분리했습니다.useTodos로 정리했습니다.RoutineEditor를client/src/routines/components/로 분리했습니다.useRoutines로 정리했습니다.TodoScreen/TodoItem/RoutineEditor는todoActions,routineActions같은 묶음 객체 대신todos,today,onAddTodo,onPatchRoutine같은 명시적 props를 받게 했습니다.calendar.ts,todo.ts와 테스트를client/src/todo/domain/으로 이동했습니다.shared/ui/Card.tsx로 분리했습니다.src/**/domain/**/*.test.ts로 조정했습니다.어떻게 바뀌었나
Screens.tsx가 todo 화면, calendar 렌더링, routine editor UI, 여러 handler를 직접 가졌습니다.todo/components, todo 상태/handler 조립은todo/hooks/useTodos, todo 계산 규칙은todo/domain이 담당합니다.routines/hooks/useRoutines만 분리했습니다.Actions라는 넓은 이름의 객체 prop은 사용하지 않습니다.todo/domain/calendar.ts로 모으고, 현재 날짜는 hook/호출부에서 주입하는 형태로 유지했습니다.유지한 내용
useAppData의 workspace data, cache, loading, request helper 소유권일부러 제외한 내용
AGENTS.md변경검증
cd client && npm test -- --runcd client && npm run typecheckcd client && npm run format:check