Skip to content

Conversation

@nirii00
Copy link
Collaborator

@nirii00 nirii00 commented Mar 5, 2025

✅ 요약

  • resolved feat: 좋아요 기능 구현 #59
  • 게시판 목록 내용 1차 기능 구현
    • 아직 상세 내용은 데이터가 없어서 확인을 못했습니다.
  • reissue 로직 수정
    • reissue 되는 경우 에러 캐치가 안되는 부분 수정 했습니다(진짜로)

🪄 변경사항

  • client.ts 로직
  • 공유 관련 type 파일 만듦
    • share.ts에 있는 타입을 옮겨뒀습니다.
  • 게시판에서 무한 스크롤 구현
  • 마이페이지 게시판, 게시판 페이지 분리
    • 마이페이지는 페이징 처리가 없어서 데이터 처리방식이 조금 달라서 그냥 분리해버렸습니다..!

🖼️ 결과 화면 (선택)

💬 리뷰어에게 전할 말 (선택)

  • 지금은 reissue에서 access token이 만료됐을 경우 401 에러가 뜨는데 이 부분 영섭님이 수정해주신다고 하십니다!

nirii00 and others added 16 commits March 4, 2025 17:39
- client.ts의 interceptors.response.use 구문 내에서 api 호출및 데이터 가공을 함수 밖으로 꺼냄
- isClosed 상태를 반대로 받아와서 상태를 잘못 보여주는 문제 해결
- 소숫점 이하 자리로 인해 에러가 날 경우가 있을 것 같아서 . 기준 split 추가
- sharePost 요청 요청자 id 삭제
- 상세 페이지 api 경로 수정
- 우편함 상세체이지 날짜 잘못표기하는 에러 수정
* refactor: 읽지 않은 편지 수 조회 기능 리팩토링

* rename: NewLetterModal 을 UnreadLetterModal로 파일명 및 함수명 변경

* fix: 읽지 않은 편지가 존재할 때 다른 우체통 이미지 보여주도록 수정

* fix: 오고 있는 편지 모달에서 편지 항목 눌렀을 때 보드로 이동하는 에러 해결
* fix: ShowShareAccessModal에서 undefined 배열 map 호출 오류 해결

* fix: 공유 상세 보기 페이지에서 발신자 데이터 바인딩 문제 해결

* fix: 글 작성자 배경색이 적용되지 않는 오류 해결

* design: 공유 상세 보기 페이지 하단 블러 이미지 위치 조정
- client.ts의 interceptors.response.use 구문 내에서 api 호출및 데이터 가공을 함수 밖으로 꺼냄
- isClosed 상태를 반대로 받아와서 상태를 잘못 보여주는 문제 해결
- sharePost 요청 요청자 id 삭제
- 상세 페이지 api 경로 수정
- 우편함 상세체이지 날짜 잘못표기하는 에러 수정
- reissue 401에러 시에 진행 안되는 문제 해결
- retry flag의 위치 변경
- 게시판에 무한 스크롤 반영
- 게시판 데이터 바인딩
- myPage와 게시판 화면 분리
- header에 myPage 링크
Copy link
Collaborator

@wldnjs990 wldnjs990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!!!!👍👍👍👍👍👍👍🥕🥕🥕🥕🥕

Comment on lines +18 to +32
// let failedQueue: FailedRequest[] = [];

// const processQueue = (error: unknown, token: string | null = null) => {
// failedQueue.forEach((prom) => {
// if (error) {
// prom.reject(error);
// } else {
// if (token) {
// prom.resolve(token);
// }
// }
// });

// failedQueue = [];
// };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 주석들은 임시처리인가요 아니면 삭제될 코드들인가요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

임시 처리입니다! 혹시 요청이 여러번 생기는 경우에 어떻게 될지 몰라서 일단은 이 로직을 참고하려고 놔뒀어요!

Comment on lines +77 to +89
// try {
// return new Promise((resolve, reject) => {
// failedQueue.push({
// resolve: (token: string) => {
// originalRequest.headers.Authorization = `Bearer ${token}`;
// resolve(client(originalRequest));
// },
// reject: (err: unknown) => reject(err),
// });
// });
// } catch (e) {
// return Promise.reject(e);
// }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요것두!

@nirii00 nirii00 merged commit cbe92b0 into develop Mar 6, 2025
@nirii00 nirii00 deleted the 59-feat-like branch March 6, 2025 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 좋아요 기능 구현

4 participants