-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: Add On My Own 아키텍쳐 이주 #227
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the Add On My Own architecture and adjusts the bottom sheet design to improve consistency and address a bug in the schedule default time dropdown. Key changes include:
- Migrating Add On My Own components and related styles to the new LectureBottomSheet folder.
- Replacing the EditSchedule modal with an AnimatePresence-powered bottom sheet.
- Updating imports to use the new file structure and removing the old modal-based EditSchedule.
Reviewed Changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/domain/Timetable/components/LectureBottomSheet/DaySelector/index.tsx | Introduces a DaySelector component for day selection. |
src/domain/Timetable/components/LectureBottomSheet/CloseButton/* | Adds a CloseButton component with dedicated styling. |
src/domain/Timetable/components/LectureBottomSheet/AddOnMyOwn/* | Implements the core Add On My Own component and related types/styles. |
src/domain/Timetable/components/LectureBottomSheet/AddClass/* | Updates AddClass components to adjust import paths and utilize the new CloseButton. |
src/components/timetable/Grid/LectureSticker/ScheduledLecture.tsx | Refactors EditSchedule integration using AnimatePresence instead of createPortal. |
src/common/components/TimeSelector/* | Updates TimeSelector to accept and use an initial value via new props. |
Comments suppressed due to low confidence (2)
src/domain/Timetable/components/LectureBottomSheet/AddClass/SerchLectureCard/style.css.ts:1
- The filename 'SerchLectureCard' appears to be a typo; for clarity and consistency, consider renaming it to 'SearchLectureCard'.
import { style } from '@vanilla-extract/css'
src/domain/Timetable/components/LectureBottomSheet/AddClass/SearchResult/index.tsx:7
- The imported component 'SearchLectureCard' is being sourced from a file with a misspelled name ('SerchLectureCard'); the file should be renamed accordingly for consistency.
import SearchLectureCard from '@/domain/Timetable/components/LectureBottomSheet/AddClass/SerchLectureCard'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
대공사인데 고생 많았어유
}) | ||
|
||
const onSubmit = (data: AddOnMyOwnForm) => { | ||
if (timetableId === undefined) return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서 단순 return만 해도 괜찮을까용? 에러 처리 관렪서 handleSubmit 에서 토스트 띄우려면 throw error를 해야하려나 싶은
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
일리있는 말씀이십니다
근데 사실 이거 발생할 가능성이 없는 예외 처린데 왜 해놨었지
타입 상 이슈도 없네..
요 라인 그냥 지워도 될까요
📌 내용
☑️ 체크 사항
❗ Related Issues