Skip to content
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

totalPages => paginationSizes 로 변경 #906

Merged
merged 5 commits into from
Nov 15, 2024

Conversation

Hain-tain
Copy link
Contributor

@Hain-tain Hain-tain commented Nov 13, 2024

⚡️ 관련 이슈

📍주요 변경 사항

  • 검색 성능을 올리기 위해 백엔드와 함께 api를 변경하였습니다. 이에 따라 totalPages와 totalElements 를 제거하고, paginationSizes를 적용하였습니다. (paginationSizes 는 현재 페이지를 포함하여 다음에 몇 페이지까지 있는지를 반환하는 number 입니다.)

  • <<, <, >, >> 버튼 모두 삭제하였습니다.

🎸기타

🍗 PR 첫 리뷰 마감 기한

11/14 12:30

@Hain-tain Hain-tain added FE 프론트엔드 refactor 요구사항이 바뀌지 않은 변경사항 labels Nov 13, 2024
@Hain-tain Hain-tain added this to the 7차 스프린트 💭 milestone Nov 13, 2024
@Hain-tain Hain-tain self-assigned this Nov 13, 2024
@Hain-tain Hain-tain changed the title totalPages => maxPages 로 변경 totalPages => paginationSizes 로 변경 Nov 13, 2024
Copy link
Contributor

@Jaymyong66 Jaymyong66 left a comment

Choose a reason for hiding this comment

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

'>', '<' 버튼 관련 이야기에 답변만 들으면 merge해도 될 것 같네요~! 고생하셨습니다 헤인~!

Comment on lines 64 to 65
const totalElements = filteredTemplates.length;
const totalPages = Math.ceil(totalElements / size);
const paginationSizes = Math.min(Math.ceil(totalElements / size - page + 1), 5);
Copy link
Contributor

Choose a reason for hiding this comment

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

그럼 여기서 totalElements도 필요 없을까요?!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

오 맞습니다! 삭제할게요! 👍

@healim01
Copy link
Collaborator

멋져요!!

Copy link
Collaborator

@healim01 healim01 left a comment

Choose a reason for hiding this comment

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

굳 멋쟁이 선생님들~!

@healim01 healim01 merged commit 459ad89 into dev/fe Nov 15, 2024
1 check passed
@healim01 healim01 deleted the refactor/899-remove-totalPages branch November 15, 2024 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE 프론트엔드 refactor 요구사항이 바뀌지 않은 변경사항
Projects
Status: Weekend Done
Development

Successfully merging this pull request may close these issues.

3 participants