Merged
Conversation
1. LogoutButton 컴포넌트 추가 - 토큰 삭제 및 로그인 페이지 리다이렉트 기능 - 재사용 가능한 Button 컴포넌트 활용 2. `useFetchGetGoal` 훅 개선 - 컴포넌트 마운트 시 자동으로 목표 데이터 조회 - 로딩 상태명을 isLoading으로 통일 3. MainPage 컴포넌트 리팩토링 - 로그아웃 로직을 별도 컴포넌트로 분리 - useAutoLogout 훅을 통한 자동 로그아웃 처리 - 목표 조회 훅 연동으로 데이터 자동 로딩
1. `CreateGoalForm` 컴포넌트 프레임 작성 - react-hook-form을 활용한 폼 상태 관리 구조 설계 2. `CreateGoalFormData` 타입 정의 - 목표 생성에 필요한 데이터 구조 설계 - duration, beforeAfter, plans 등 확장 가능한 타입 구조 3. MainPage 레이아웃 구조 개선 - 컴포넌트 분리로 관심사 분리 및 재사용성 향상 - CreateGoalForm과 LogoutButton 컴포넌트 통합 - 전체 화면 레이아웃 및 스타일링 기반 구축
1. main 페이지에 목표추가 버튼 추가 2. /main/create-goal 페이지 추가 및 라우팅 작업 3. '목표생성' 페이지 퍼블리싱 작업 및 레이아웃 작업
1. 목표 생성 폼 상단에 SectionMessage(경고/안내 메시지) 임시 컴포넌트 추가 2. 디자인토큰에 맞춰 스타일작업 추가 3. Badge 임시 컴포넌트 추가 및 기간 영역에 적용 4. Sidebar 스타일 및 로고 적용
1. DatePicker와 DatePanel에 allowedDaysOfWeek prop 추가
- 특정 요일만 선택 가능하도록 제한 (0: 일요일, 1: 월요일, ..., 6: 토요일)
- 선택 불가능한 날짜는 비활성화 스타일 적용
2. `minDate` prop 추가로 최소 선택 가능 날짜 설정
- minDate 포함하여 선택 가능하도록 개선
- 시간 정보 제거하여 정확한 날짜 비교
3. CreateGoalPage에서 시작날짜/종료날짜 선택 기능 구현
- 시작날짜: 월요일만 선택 가능, 과거 날짜 선택 불가
- 종료날짜: 시작날짜 기준 4주 후 자동 계산, 비활성화
4. Storybook 스토리 추가
- WeekdaysOnly, WeekendOnly, SpecificDays 등 다양한 선택 제한 예시
- MinDateInclusive로 최소 날짜 포함 기능 테스트
1. 목표 생성 API 연동 구현
- useFetchPostCreateGoal 훅 추가 (로딩, 성공, 실패 상태 관리)
- postCreateGoal API 함수 추가
- 성공 시 토스트 메시지 표시 후 main 페이지로 자동 이동
- 실패 시 에러 토스트 메시지 표시
2. ConfirmGoalBottomBar 컴포넌트 개선
- 로딩 상태 및 에러 상태 처리 추가
- 실패 시 "다시 시도" 버튼으로 변경하여 재시도 가능
3. DatePicker form submit 버그 수정
- DatePicker 및 DatePanel의 모든 버튼에 type="button" 명시적 설정
- form 내부 버튼 클릭 시 의도하지 않은 form 제출 방지
- DatePicker 클릭 시 패널만 열리고 form 제출되지 않도록 수정
> 추가적으로, `목표생성API` 제대로 동작하는지 BE 분들과 이야기 필요
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.
No description provided.