[#42] Feat/42/워크스페이스상세페이지 - #43
Merged
Hidden character warning
The head ref may contain hidden characters: "Feat/42/\uc6cc\ud06c\uc2a4\ud398\uc774\uc2a4\uc0c1\uc138\ud398\uc774\uc9c0"
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
❓이슈
📝 Description
/workspace/[workspaceId]워크스페이스 상세 페이지를 구현한 PR입니다.변경된 파일
receipt.type.tsreceipt.service.tsgetReceiptStats,getReceiptList,exportReceipts추가receipt.queries.tsuseGetReceiptStats,useGetReceiptList,useExportReceipts추가workspace.type.tsWorkspaceMemberStatus,WorkspaceMember,WorkspaceMembersResponse타입 추가workspace.service.tsgetWorkspaceMembers추가workspace.queries.tsworkspaceKeys.members,useGetWorkspaceMembers추가Dropdown.tsxworkspace/[workspaceId]/page.tsx1. 통계 섹션
useGetReceiptStats(workspaceId)로 데이터를 가져와StatCard4개를 그리드로 배치합니다.2. 영수증 목록 섹션
역할 분기
useGetWorkspace로 가져온 워크스페이스 정보의role필드로isAdmin을 도출합니다. 관리자일 때만 다운로드 버튼을 렌더링합니다.필터
Input(search variant),onChange로 실시간 반영useGetWorkspaceMembers(workspaceId, 'ACCEPTED')로 멤버 목록 조회 후Dropdown에 주입전체 / 대기 / 승인 / 반려→WAITING / APPROVED / REJECTED매핑최신순 / 오래된순→LATEST / OLDEST매핑필터 초기값은
null로 관리하여 미선택 시 placeholder가 표시되고,'전체'선택 시 다시null로 리셋됩니다. 필터 변경 시page를 0으로 초기화합니다.레이아웃
다운로드
exportReceipts(workspaceId)mutate 직접 호출 → 응답 Blob을<a download>트리거로 브라우저 다운로드.isPending상태를 버튼loadingprop에 연결합니다.페이지네이션
useMediaQuery('(max-width: 767px)')결과로size를 모바일 5 / PC·태블릿 6으로 분기합니다.3. Dropdown.tsx 수정
value || placeholder에서'전체'같은 빈 문자열이 아닌 값이 있으면 placeholder 무시value를null로 관리,value == null일 때 placeholder 표시overflow: hidden이ul의 padding을 clipoverflow: clip적용overflow: auto와border-radius가 같은 요소에 있으면 WebKit에서 스크롤바가 radius 무시ul로 분리w-고정값default/statusvariant에flex-1 md:flex-none적용, profile variant는 그대로 유지🌀 PR Type
어떤 변경 사항이 있나요?
✅ Checklist
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
Test Checklist