Commit 2d8a276
[Feat] 회의실 예약 api 연동 (#158)
* Feat: reservation api 경로 변경 및 API ENDPOINTS 적용
* Chore: reservation api rename(복수)
* Feat: items api 구현
* Feat: meeting main에서 회의실, 해당 날짜 예약 현황 useQuery 작성
* Feat: ScheduleTable api 연동
* Feat: ScheduleTableDesktop api 연동
* Feat: ScheduleTableMobile api 연동
* Feat: ScheduleRow api 연동 및 time api에 맞게 수정
* Feat: Tooltip props children으로 변경
* Feat: ScheduleItem type 수정(api에 맞게)
* Feat: DesktopReservationSheet interface 수정(api에 맞게)
* Feat: MobileReservationSheet interface 수정(api에 맞게)
* Feat: ReservationForm interface 수정 (api에 맞게)
* Chore: 날짜 문자열 처리를 위한 date-fns install
* Feat: parseISO 적용
* Feat: 현재 userId와 schedule의 userId 비교하여 표현(css 및 사이드바)
* Feat: 예약되어 있는 회의 클릭 시 내용 표시
* Chore: query data, loading 이름 변경
* Fix: lint error(import 순서)
* Feat: scheduletype 수정 및 room _id props로 전달
* Feat: ReservationForm rooms query로 데이터 연결
* Feat: getAllUser API 함수 구현
* Feat: getAllUser query로 데이터 연동
* Feat: 전체 사용자 Dropdown 선택 가능 기능 구현
* Fix: Dropdown storybook state type error
* Feat: MultiSelectDropdown wrapper className props 추가
* Style: Profile className 추가(전역으로 h-auto 설정되는 문제 해결을 위해)
* Feat: response에 맞게 데이터 조정 및 불필요한 코드 삭제
* Feat: createReservationMutation 구현 및 Form을 통해 예약되는 기능 구현
* Chore: createReservation interface 및 data 수정
* Remove: Modal notify remove(mutation에 존재하므로 삭제)
* Fix: 09:00 이후의 시간대만 표시되는 문제 해결(parseISO에서 Date 사용)
* Feat: 시작 시간에서 30분 뒤의 종료시간 자동 설정, error 처리
* Feat: ReservationForm 제출 데이터 state type 설정
* Feat: 예약 시 이미 예약된 스케줄을 침범하는 경우 error 표시
* Feat: ScheduleItem 대신 Slot에서 예약된 스케줄도 표시하도록 변경
* Feat: 예약 내용을 수정할updateReservation 함수 생성
* Feat: 예약된 스케줄을 클릭할 경우 버튼을 수정하기로 표시
* Fix: reservationId 전달되지 않던 error 수정
* Feat: deleteReservation 구현
* Feat: ReservationModal title, content 받을 수 있게 수정
* Feat: ReservationSheetContent 컴포넌트 생성으로 인한 로직 분리
* Feat: invalidateQueries를 통한 데이터 최신화(생성, 수정, 삭제 시)
* Feat: ReservationForm 삭제하기 버튼 및 기능 구현
* Test: 예약 시간들 text로 확인해보기(임시)
* Fix: type 및 자동 수정
* Feat: useRoomsData hooks 구현
* Feat: useMeetingsData hook 구현
* Feat: meetingroomstype 상수화 및 formatDate 유틸함수 생성
* Refactor: MeetingRoomSchedule 리팩토링
* Remove: query hook delete
* Feat: getRoomSchedules 생성 및 컴포넌트 적용
* Feat: RoomName children 수정
* Feat: CurrentTimeLabel 컴포넌트 리팩토링
* Feat: useSlotReservations hook 구현
* Feat: timeToMinutes util 함수 생성
* Refactor: ScheduleRow 컴포넌트 리팩토링
* Refactor: ReservationSheetContent 리팩토링
* Feat: reservationForm 내부 컴포넌트 리팩토링
* Feat: Form Type, constants, 유틸 함수 생성
* Refactor: Form, sheet 리팩토링
* Fix: 시간 파싱 에러로 인한 getRoomSchedule 삭제
* Fix: eslint error 해결
* Chore: pnpm install
* Fix: build error 해결(import)
* Feat: TimeText skeleton 제작
* Feat: RoomName skeleton 제작
* Feat: Slot Skeleton 제작 및 디자인에 맞게 구현
* Feat: skeleton 적용
* Fix: eslint error
* Fix: Mobile Date 수정
* Style: TimeIndicator 수정
---------
Co-authored-by: 김보경 <rlaqhrud6263@naver.com>1 parent 9a6554b commit 2d8a276
48 files changed
Lines changed: 1670 additions & 713 deletions
File tree
- apps/web
- api
- app
- _hooks
- api
- constants
- meetings
- _components
- Reservation
- ReservationForm
- Schedule
- ScheduleRow
- ScheduleTable
- skeleton
- types
- utils
- components/common/Profile
- packages/ui/src/components/common/Dropdown
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
5 | 29 | | |
6 | 30 | | |
7 | 31 | | |
| |||
17 | 41 | | |
18 | 42 | | |
19 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
20 | 97 | | |
21 | 98 | | |
22 | 99 | | |
| |||
29 | 106 | | |
30 | 107 | | |
31 | 108 | | |
| 109 | + | |
32 | 110 | | |
33 | 111 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments