Skip to content

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

Merged
merged 6 commits into from
May 23, 2025

Conversation

halionaz
Copy link
Member

📌 내용

  • 바뀐 바텀 시트 디자인에 적합하게 Add On My Own을 수정해요.
Screenshot 2025-05-13 at 8 48 41 PM
  • 피그마엔 나와있지 않지만 Edit창도 모달보다는 바뀐 바텀시트로 띄워주는게 서비스 일관성에 맞아서, 디자인을 맞췄어요.
  • 코드 이주하면서 원래 일정의 시간이 default값으로 드롭다운에 들어가지 않던 기존 컴포넌트 버그가 있었는데 수정했습니다.
Screenshot 2025-05-13 at 8 48 46 PM

☑️ 체크 사항

  • [ ]

❗ Related Issues

Copy link

@Copilot Copilot AI left a 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'

Copy link
Contributor

@Virtuso1225 Virtuso1225 left a 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
Copy link
Contributor

Choose a reason for hiding this comment

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

여기서 단순 return만 해도 괜찮을까용? 에러 처리 관렪서 handleSubmit 에서 토스트 띄우려면 throw error를 해야하려나 싶은

Copy link
Member Author

Choose a reason for hiding this comment

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

일리있는 말씀이십니다

근데 사실 이거 발생할 가능성이 없는 예외 처린데 왜 해놨었지
타입 상 이슈도 없네..
요 라인 그냥 지워도 될까요

@halionaz halionaz merged commit 7192932 into #168/refactor-timetable May 23, 2025
1 check passed
@halionaz halionaz deleted the #168/fix-add-my-own branch May 23, 2025 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants