[refactor] 어드민 홈 개선 - #215
Merged
Merged
Conversation
서버 블로킹 API를 요약 데이터 1개로 줄이고, 진행률/미완료 평가자 조회는 클라이언트 Suspense 경계로 분리해 섹션별로 독립 렌더링되도록 함
AuthLayout이 role과 무관하게 조직 목록을 useSuspenseQuery로 조회해 어드민에서도 서버에 없는 데이터를 클라이언트에서 다시 fetch하며 레이아웃 전체가 서스펜드되던 문제를 role이 USER일 때만 조회하도록 수정
|
🚀 Storybook 확인하기 🚀 |
|
✅ Vercel Preview: https://withus-krwwr6znq-chaewons-projects-dcb1665e.vercel.app |
같은 컴포넌트에서 useSuspenseQuery를 순서대로 두 번 호출하면 첫 번째 쿼리가 응답하기 전까지 두 번째 쿼리가 시작되지 않아 서류/면접 진행률이 순차로 로드되던 문제를 useSuspenseQueries로 묶어 병렬 요청되도록 수정
어드민 홈 대시보드에 적용한 loading.tsx + 섹션별 Container/Skeleton + useSuspenseQueries 패턴을 문서화하고, api-ssr-pattern.md의 예시를 현재 코드와 일치하도록 갱신
|
🚀 Storybook 확인하기 🚀 |
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.
이슈 넘버
구현 사항
Need Review
📸 스크린샷
Reference