-
Notifications
You must be signed in to change notification settings - Fork 2
메인 반영 #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
메인 반영 #58
Conversation
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
- 공통으로 사용되는 api 함수를 커링으로 구현 (api.ts) - postList fetch api 함수 구현 (postApi.ts) - post 타입 정의 (types/post.ts) - env 파일 ignore 처리 - queryClient 설정 Refs: #5
- post list를 가져오는 api의 제네릭을 단일 post에서 post[]로 수정 - useQuery 제네릭으로 사용하기 위해 ApiResponse<T> 타입을 export
- 컴포넌트에 react-query 구현 - mocking posts 데이터 추가 - Home에 style 요소 분리 - api 문서에 맞게 endpoint 수정 Refs: #5
- 게시글 조회 응답에 태그 정보를 추가하였습니다. Refs: #5
- 쿼리 파라미터로 category와 tag를 받으면, 두 조건을 모두 만족하는 게시글 목록을 반환 Refs: #5
- 메모리 사용량을 줄이기 위해 hier 필드 제거 - getHierList 호출되면 일일이 계산하도록 수정 - 그 과정에서 시간이 조금 더 걸릴 수는 있으나 증가량이 미미하고, 시간 복잡도 자체는 같음 - getAllDescendant() 를 함수형 프로그래밍 패러다임에 맞게 고차함수를 이용하도록 변경. Refs: #5
-PostHashTag: 게시글과 해쉬태그의 다대다 관계를 저장하는 테이블을 맵핑하는 엔티티 Refs: #5
FetchType.LAZY -> LAZY 로 사용 가능 Refs: #5
- DB 에서 자동으로 ID를 생성하도록 명시 Refs: #5
- props로 categoryHier 전달 - categoryHier에 맞게 TagContainer 렌더링 - 카테고리 항목을 누르면 이동하도록 Link태그로 작성 Refs: #5
- 빌더 패턴 추가 Refs: #5
- 카테고리로 해쉬태그 조회 api 완성 - 카테고리 api 통합테스트 작성 Refs: #5
- 게시글 조회 응답에 태그 정보를 추가하였습니다. Refs: #5
- 쿼리 파라미터로 category와 tag를 받으면, 두 조건을 모두 만족하는 게시글 목록을 반환 Refs: #5
- 메모리 사용량을 줄이기 위해 hier 필드 제거 - getHierList 호출되면 일일이 계산하도록 수정 - 그 과정에서 시간이 조금 더 걸릴 수는 있으나 증가량이 미미하고, 시간 복잡도 자체는 같음 - getAllDescendant() 를 함수형 프로그래밍 패러다임에 맞게 고차함수를 이용하도록 변경. Refs: #5
Refs: #5
특정 카테고리에 해당하는 해쉬태그 목록 조회 (#5)
메인 페이지 서버 데이터 연동 구현 (#5)
- src/components/Aside/types/category.ts에서 src/types/category.d.ts로 위치 변경
- CategoryId 타입을 number | undefined로 정의 - Category interface의 id 타입을 CategoryId로 변경 - 관련 컴포넌트들의 타입 적용 수정 - ALL_POST의 id값을 undefined로 변경
- Aside 컴포넌트의 카테고리 데이터를 API 호출로 변경 - 기존 목데이터를 public 디렉토리로 이동
- useAside.ts의 API 응답 데이터 변수명을 categories로 변경 - Aside.tsx에서도 매핑되는 부분 수정
- 카테고리 선택 시 1페이지로 이동 - 태그 파라미터는 미사용
게시글 조회에 페이징 추가 (#5)
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hanguswls
approved these changes
Jan 8, 2025
thanhhien234
approved these changes
Jan 8, 2025
- 글 데이터(post)의 상태 관리 - 필드별 데이터 업데이트를 위한 handlePostChange 함수 구현 - 저장 버튼 클릭 시 createPost API 호출 - 필수 입력값 검증 로직(validateRequiredFields)에 이미지 업로드 관련 로직 포함
- selectedCategory 상태를 제거하고, 부모로부터 props로 관리되도록 수정
- NicknamePasswordInput 안의 author와 password 상태를 제거하고, 부모로부터 props로 관리되도록 수정
- useMarkdownEditor 훅의 로직을 props 기반으로 동작하도록 변경 - initialMarkdown, imageIds, onContentChange, onImageIdsChange를 props로 받아 상태와 동기화 - 마크다운 텍스트 처리 공통 로직을 추출하여 getSelectionContext와 updateContent 함수로 구현 - 이미지 업로드 시 content 업데이트 로직 수정 - CreatePost 컴포넌트에서 useMarkdownEditor 훅을 props 기반으로 호출하여 부모 상태와 동기화
- handleIconButtonClick을 onIconButtonClick으로 수정
- 글 생성 함수(createPost) 구현 - post.d.ts에 CreatePostParams 추가 - api.ts에 response body가 없는 경우 상태 코드만 반환하도록 수정
글 저장 기능 구현 (#4)
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.
🔍 개요
작업한 기록들 main에 반영하겠습니다.
✅ 체크리스트
💬 리뷰 요구사항 (option)
문제없는지 다들 한번 확인해주세요.