Skip to content

Conversation

@MyungJiwoo
Copy link
Contributor

@MyungJiwoo MyungJiwoo commented Aug 2, 2025

🧩 관련 이슈 번호

📌 작업 내용

  1. 알림 캐싱 오류 해결
    • 예약 승인/거절로 새로운 알림이 생겼을 때 새로고침을 해야만 확인할 수 있는 오류가 있었습니다.
    • 원인은 Header에 알림 아이콘이 있었고, 알림 아이콘이 화면에 렌더링 될때 알림 API를 요청하고 있었습니다.
    • 이런 이유로 페이지를 이동하거나 새로고침하여 알림 API를 새로 받아야만 했었습니다.
    • 따라서 tanstack query의 enabled으로 팝오버가 뜰 때만 API를 요청하도록 수정했습니다.
  2. 반복 일정 추가 기능 구현
    • 체험 등록/수정시 예약 가능한 일정을 매번 수작업으로 등록하는게 번거로워 도입하게 되었습니다.
    • 반복 기준은 '매주'로, 요일과 시간, 반복 시작 날짜와 종료 날짜를 설정하면 그만큼의 일정이 자동으로 추가됩니다.
    • 날짜와 시간은 모두 종료보다 시작이 이를 수 없도록 예외처리 해두었습니다.
  3. 체험 등록/수정 페이지 추가 리팩토링
    • DatePicker에서 날짜를 선택하면 팝오버가 닫히도록 수정했습니다.
    • 로그인하지 않은 사용자는 체험 등록/수정 페이지에 접근할 수 없습니다.
    • DatePicker에서 날짜가 선택된 상태라면 primary-500으로 구분되게 했습니다.

✅ 체크리스트

  • PR 하기 전에 이슈에서 빼먹은건 없는지 확인했습니다
    • 라벨 및 마일스톤을 사이드 탭에서 등록했습니다.
  • PR을 보내는 브랜치가 올바른지 확인했습니다.
  • 팀원들이 리뷰하기 쉽도록 설명을 자세하게 작성했습니다.
  • 변경사항을 충분히 테스트 했습니다.
  • (함수를 구현 했을 때) JSDoc을 양식에 맞춰서 작성했습니다.
  • 컨벤션에 맞게 구현했습니다.

📷 UI 변경 사항 (선택)

반복일정추가

❓무슨 문제가 발생했나요? (선택)

  • textarea의 높이를 autoHeight으로 설정했는데, rhf의 ref와 연결되면서 textarea의 ref가 잘 작동하지 않습니다... (고쳐보려고 하는데 잘 되지 않네요...) 그래서 부득이하게 우선 높이를 300px로 잡아두었고, 내부에서는 스크롤이 가능합니다.
  • 반복 일정은 별도의 팝오버로 설정할 수 있는데, 이때 모바일이라면 종료 날짜의 DatePicker가 일부 잘리게 됩니다..ㅠㅠ 고치려면 팝오버부터 거슬러 올라가서 대공사라...ㅠ 발표 준비를 좀 해두고 다시 한 번 해보겠습니다..ㅎㅎ (아이폰 se, 6~8시리즈 정도의 높이가 아니라면 달력의 마지막 주까지 나오기 때문에 날짜 선택에는 지장이 없습니다.)

💬 기타 참고 사항 (선택)

  • 알림 오류를 해결하려고 새로운 데이터를 만들다가 갑자기 반복 일정 기능까지 구현하게 돼서... 한 PR에 두 가지 내용이 합쳐진 점 양해 부탁드립니다.. 🥲🙏🏻

Summary by CodeRabbit

  • 신규 기능

    • 반복 일정을 생성할 수 있는 모달이 추가되어, 사용자가 날짜 범위와 요일, 시간대를 지정해 여러 일정을 한 번에 생성할 수 있습니다.
  • 기능 개선

    • 일정 입력란에서 반복 일정 추가 기능이 통합되었습니다.
    • 텍스트 입력 영역의 최소 높이가 증가하여 더 많은 내용을 편하게 입력할 수 있습니다.
    • 날짜 선택기(DatePicker) 사용성이 개선되고, 팝오버 방향 및 스타일이 향상되었습니다.
    • 알림 팝오버는 열려 있을 때만 알림을 불러오도록 변경되었습니다.
  • 버그 수정

    • 팝오버 외부 클릭 시 닫힘 동작이 날짜 선택기 내부 클릭에는 반응하지 않도록 개선되었습니다.
  • UI/문서

    • 일부 안내 문구 및 예시 코드가 화면에서 보이지 않도록 처리되었습니다.
    • 예약 가능한 시간대 라벨이 화면에서 숨겨졌습니다.
  • 접근성 및 보안

    • 경험 생성 페이지 접근 시 인증이 필수로 적용되었습니다.

@MyungJiwoo MyungJiwoo added this to the 5차 스프린트 milestone Aug 2, 2025
@MyungJiwoo MyungJiwoo self-assigned this Aug 2, 2025
@MyungJiwoo MyungJiwoo added ✨ Feat 기능 구현 🐞 Bug 버그 관련 labels Aug 2, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 2, 2025

📝 Walkthrough

Walkthrough

여러 컴포넌트에 반복 일정 생성 기능이 추가되고, DatePicker 및 Popover의 동작과 스타일이 개선되었습니다. 라우터에 인증 가드가 적용되었으며, 일부 문서 파일과 UI 요소가 주석 처리되었습니다. NotificationPopover의 데이터 fetch 조건이 명확하게 변경되었습니다.

Changes

Cohort / File(s) Change Summary
반복 일정 생성 및 통합
apps/what-today/src/components/experiences/RecurringScheduleModal.tsx, apps/what-today/src/components/experiences/ScheduleInput.tsx
반복 일정 생성 모달 컴포넌트가 새로 추가되고, ScheduleInput에서 해당 모달을 통해 여러 일정을 한 번에 추가할 수 있도록 통합 로직 및 UI/상태 관리 코드가 추가됨.
DatePicker 및 Popover 개선
packages/design-system/src/components/DatePicker.tsx, packages/design-system/src/components/popover/PopoverRoot.tsx
DatePicker의 Popover 오픈 상태를 명시적으로 관리하고, 방향 및 스타일이 개선됨. PopoverRoot의 외부 클릭 처리에 date-picker 영역 예외가 추가됨.
Notification 데이터 fetch 조건 변경
apps/what-today/src/components/notification/NotificationPopover.tsx
useInfiniteQuery의 enabled 옵션에 open 상태를 반영하여, 팝오버가 열릴 때만 알림 데이터를 요청하도록 변경됨.
경험 생성 라우터 인증 가드 적용
apps/what-today/src/routes/index.tsx
experiences/create 및 experiences/create/:id 경로가 authGuardLoader로 감싸져 인증된 사용자만 접근 가능하도록 라우터 구조가 변경됨.
UI/문서 주석 처리
apps/what-today/src/pages/experiences/index.tsx, packages/design-system/src/pages/MypageProfileHeaderDoc.tsx, packages/design-system/src/pages/MypageSummaryCardDoc.tsx, packages/design-system/src/pages/OngoingExperienceCardDoc.tsx, packages/design-system/src/pages/UpcomingScheduleDoc.tsx
예약 가능 시간대 안내 문구와 문서 예시 코드가 주석 처리되어 UI 및 문서에서 비활성화됨.
Textarea 최소 높이 조정
apps/what-today/src/components/experiences/DescriptionTextarea.tsx
textarea의 최소 높이 클래스가 min-h-100에서 min-h-300으로 상향 조정됨.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ScheduleInput
    participant RecurringScheduleModal
    participant ParentComponent

    User->>ScheduleInput: "반복 일정 추가" 버튼 클릭
    ScheduleInput->>RecurringScheduleModal: 모달 오픈
    User->>RecurringScheduleModal: 요일, 날짜, 시간 선택 후 "일정 생성" 클릭
    RecurringScheduleModal->>ScheduleInput: 생성된 일정 목록 전달
    ScheduleInput->>ParentComponent: onChange로 일정 목록 업데이트
    ScheduleInput->>User: 성공 토스트 노출 및 UI 갱신
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20분

Possibly related PRs

  • 데이트 피커 리팩토링 #139: DatePicker 컴포넌트의 제어 및 스타일 개선 관련 PR로, 본 PR의 DatePicker 개선과 직접적으로 관련됨.
  • 데이트 피커 구현 #125: DatePicker 컴포넌트의 최초 도입 PR로, 본 PR의 DatePicker 개선이 해당 코드 기반 위에서 이루어짐.
  • 체험 등록 페이지 #134: 경험 생성 및 편집 페이지와 라우팅 관련 변경사항이 본 PR과 동일 파일 및 기능을 다루어 밀접한 관련이 있음.

Suggested labels

♻️ Refactor, 🎨 Design

Suggested reviewers

  • Taeil08
  • kjhyun0830

Poem

🐇
반복 일정이 척척,
달력 팝오버도 똑똑!
인증 가드로 문을 지키고,
알림은 열릴 때만 쏙쏙.
주석 속 문구는 잠시 쉬고,
토끼는 오늘도 코드를 뛰논다!
🥕✨


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ab379bb and 8022426.

📒 Files selected for processing (1)
  • apps/what-today/src/pages/experiences/index.tsx (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/what-today/src/pages/experiences/index.tsx
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/mongdiwoo/212

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary or @coderabbitai 요약 to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions
Copy link

github-actions bot commented Aug 2, 2025

🚀 오늘뭐해 Preview Deploy 완료!
👉 미리보기 링크

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (5)
packages/design-system/src/pages/MypageSummaryCardDoc.tsx (1)

6-6: 불필요한 주석된 코드 제거 권장

문서 파일이라 하더라도 사용하지 않는 코드가 주석으로 남아 있으면 가독성이 떨어집니다. 추후 예시 코드가 필요 없다면 해당 줄을 완전히 삭제해 주세요.

packages/design-system/src/pages/OngoingExperienceCardDoc.tsx (1)

6-6: 불필요한 주석된 코드 제거 고려

code 상수가 더 이상 사용되지 않는다면 완전히 삭제해도 문서 예제 렌더링에 영향이 없습니다. 주석으로 남겨두면 향후 유지보수 시 불필요한 노이즈가 될 수 있습니다.

packages/design-system/src/pages/UpcomingScheduleDoc.tsx (1)

5-8: code 상수 주석 처리로 Playground 예시 코드 기능이 무력화됨

상단 주석에서 Playground에서 사용할 예시 코드를 작성하라고 안내하지만 실제로 code 변수를 주석 처리해 Playground 기능을 못 쓰게 만들었습니다.
Playground 기능을 유지하려면 다음 중 하나를 선택해 주세요.

  1. code 상수를 복원하고 <DocCode code={code} /> 형태로 전달
  2. 주석과 Playground 관련 안내 문구를 삭제하여 의도적으로 비활성화했음을 명확히 표현
-// const code = `예시 코드를 작성해주세요.`;
+const code = `<UpcomingSchedule variant="primary">Click me</UpcomingSchedule>`;
...
-      <DocCode code={`<UpcomingSchedule variant="primary">Click me</UpcomingSchedule>`} />
+      <DocCode code={code} />
apps/what-today/src/components/experiences/DescriptionTextarea.tsx (1)

11-11: 임시 높이 고정값 적용 확인

PR 설명에 언급된 대로 react-hook-form ref 충돌로 인한 임시 조치로 300px 고정 높이가 적용되었습니다. 향후 autoHeight 기능이 정상 작동하도록 개선이 필요합니다.

apps/what-today/src/components/experiences/RecurringScheduleModal.tsx (1)

70-84: 날짜 검증 로직에서 일관성 있는 동작을 보장하세요.

시작 날짜 변경 시 종료 날짜를 초기화하는 동작이 사용자에게 혼란을 줄 수 있습니다. 종료 날짜 핸들러와 일관성을 위해 변경사항을 적용하지 않는 방식을 고려해보세요.

일관된 동작을 위해 다음과 같이 수정을 고려해보세요:

const handleStartDateChange = (date: Dayjs | null) => {
-  setStartDate(date);
-
  // 시작 날짜가 설정되고 종료 날짜가 있을 때 검증
  if (date && endDate) {
    if (date.isAfter(endDate, 'day')) {
      toast({
        title: '날짜 설정 오류',
        description: '시작 날짜는 종료 날짜보다 빨라야 합니다.',
        type: 'error',
      });
-      setEndDate(null); // 종료 날짜 초기화
+      return; // 변경사항 적용하지 않음
    }
  }
+
+  setStartDate(date);
};
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e499f65 and b6b59da.

📒 Files selected for processing (12)
  • apps/what-today/src/components/experiences/DescriptionTextarea.tsx (1 hunks)
  • apps/what-today/src/components/experiences/RecurringScheduleModal.tsx (1 hunks)
  • apps/what-today/src/components/experiences/ScheduleInput.tsx (3 hunks)
  • apps/what-today/src/components/notification/NotificationPopover.tsx (1 hunks)
  • apps/what-today/src/pages/experiences/index.tsx (1 hunks)
  • apps/what-today/src/routes/index.tsx (1 hunks)
  • packages/design-system/src/components/DatePicker.tsx (2 hunks)
  • packages/design-system/src/components/popover/PopoverRoot.tsx (1 hunks)
  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx (1 hunks)
  • packages/design-system/src/pages/MypageSummaryCardDoc.tsx (1 hunks)
  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx (1 hunks)
  • packages/design-system/src/pages/UpcomingScheduleDoc.tsx (1 hunks)
🧰 Additional context used
🧠 Learnings (14)
📓 Common learnings
Learnt from: kjhyun0830
PR: What-Today-FE/What-Today#77
File: apps/what-today/src/pages/mypage/manage-activities/index.tsx:50-63
Timestamp: 2025-07-19T01:23:56.149Z
Learning: User kjhyun0830 follows an incremental development approach in What-Today project, implementing UI first and adding functionality in later iterations, as confirmed in PR #77 for the experience management page.
Learnt from: MyungJiwoo
PR: What-Today-FE/What-Today#119
File: apps/what-today/src/pages/mypage/edit-profile/index.tsx:63-92
Timestamp: 2025-07-24T08:30:12.556Z
Learning: MyungJiwoo indicated they will implement validation checks for the edit profile page (password confirmation validation) immediately after PR #119 is merged, following their incremental development approach.
Learnt from: MyungJiwoo
PR: What-Today-FE/What-Today#90
File: apps/what-today/src/pages/signup/index.tsx:67-71
Timestamp: 2025-07-21T05:32:48.443Z
Learning: MyungJiwoo plans to implement form validation using zod and react-hook-form in a future iteration rather than adding quick validation checks in the current signup page implementation in apps/what-today/src/pages/signup/index.tsx.
Learnt from: kjhyun0830
PR: What-Today-FE/What-Today#169
File: apps/what-today/src/hooks/useMyActivitiesQuery.ts:23-25
Timestamp: 2025-07-29T14:50:14.117Z
Learning: kjhyun0830은 What-Today 프로젝트에서 토스터 알림과 같은 UI 일관성이 필요한 기능들을 여러 페이지에 걸쳐 한 번에 수정하는 접근 방식을 선호한다.
Learnt from: Taeil08
PR: What-Today-FE/What-Today#125
File: packages/design-system/src/components/DatePicker.tsx:25-28
Timestamp: 2025-07-24T13:33:33.202Z
Learning: packages/design-system/src/components/DatePicker.tsx에서 Taeil08은 sr-only 클래스를 가진 div 요소가 달력 트리거 버튼의 세로 정렬에 필요하다고 설명했음. 이 요소를 제거하면 버튼 정렬이 깨지는 레이아웃 의존성이 있음.
Learnt from: MyungJiwoo
PR: What-Today-FE/What-Today#63
File: packages/design-system/src/pages/NoResultDoc.tsx:8-8
Timestamp: 2025-07-17T11:29:24.913Z
Learning: MyungJiwoo indicated that code duplication in documentation files (like design system documentation) is acceptable and doesn't need to be fixed, as it's not actual service code but rather demo/documentation code with different standards.
📚 Learning: the mainpage component in apps/what-today/src/pages/main/index.tsx contains placeholder/example code...
Learnt from: MyungJiwoo
PR: What-Today-FE/What-Today#43
File: apps/what-today/src/pages/main/index.tsx:7-7
Timestamp: 2025-07-14T13:36:17.941Z
Learning: The MainPage component in apps/what-today/src/pages/main/index.tsx contains placeholder/example code that will be modified later, including the fixed height class 'h-1400' which the user indicated is temporary.

Applied to files:

  • packages/design-system/src/pages/UpcomingScheduleDoc.tsx
  • apps/what-today/src/components/experiences/DescriptionTextarea.tsx
  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx
  • apps/what-today/src/pages/experiences/index.tsx
  • apps/what-today/src/components/experiences/RecurringScheduleModal.tsx
  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx
  • packages/design-system/src/pages/MypageSummaryCardDoc.tsx
  • apps/what-today/src/routes/index.tsx
📚 Learning: kjhyun0830 프로젝트에서 @what-today/design-system 패키지의 reservationstatus 타입이 calendar/index.ts에서 re-export...
Learnt from: kjhyun0830
PR: What-Today-FE/What-Today#91
File: apps/what-today/src/pages/mypage/reservations-status/index.tsx:2-2
Timestamp: 2025-07-22T03:59:52.657Z
Learning: kjhyun0830 프로젝트에서 @what-today/design-system 패키지의 ReservationStatus 타입이 calendar/index.ts에서 re-export되지 않아 메인 엔트리 포인트에서 접근할 수 없는 문제가 있음. DayCell.tsx에서 정의된 타입들을 calendar 모듈에서 명시적으로 export해야 함.

Applied to files:

  • packages/design-system/src/pages/UpcomingScheduleDoc.tsx
  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx
  • apps/what-today/src/pages/experiences/index.tsx
  • packages/design-system/src/components/DatePicker.tsx
  • apps/what-today/src/components/experiences/RecurringScheduleModal.tsx
  • apps/what-today/src/components/experiences/ScheduleInput.tsx
  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx
  • packages/design-system/src/pages/MypageSummaryCardDoc.tsx
📚 Learning: packages/design-system/src/components/datepicker.tsx에서 taeil08은 sr-only 클래스를 가진 div 요소가 달력 트리거 버튼의 세...
Learnt from: Taeil08
PR: What-Today-FE/What-Today#125
File: packages/design-system/src/components/DatePicker.tsx:25-28
Timestamp: 2025-07-24T13:33:33.202Z
Learning: packages/design-system/src/components/DatePicker.tsx에서 Taeil08은 sr-only 클래스를 가진 div 요소가 달력 트리거 버튼의 세로 정렬에 필요하다고 설명했음. 이 요소를 제거하면 버튼 정렬이 깨지는 레이아웃 의존성이 있음.

Applied to files:

  • packages/design-system/src/pages/UpcomingScheduleDoc.tsx
  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx
  • apps/what-today/src/pages/experiences/index.tsx
  • packages/design-system/src/components/DatePicker.tsx
  • apps/what-today/src/components/experiences/RecurringScheduleModal.tsx
  • apps/what-today/src/components/experiences/ScheduleInput.tsx
  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx
  • packages/design-system/src/pages/MypageSummaryCardDoc.tsx
  • packages/design-system/src/components/popover/PopoverRoot.tsx
📚 Learning: myungjiwoo indicated that code duplication in documentation files (like design system documentation)...
Learnt from: MyungJiwoo
PR: What-Today-FE/What-Today#63
File: packages/design-system/src/pages/NoResultDoc.tsx:8-8
Timestamp: 2025-07-17T11:29:24.913Z
Learning: MyungJiwoo indicated that code duplication in documentation files (like design system documentation) is acceptable and doesn't need to be fixed, as it's not actual service code but rather demo/documentation code with different standards.

Applied to files:

  • packages/design-system/src/pages/UpcomingScheduleDoc.tsx
  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx
  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx
  • packages/design-system/src/pages/MypageSummaryCardDoc.tsx
📚 Learning: in packages/design-system/src/components/button/index.tsx, harryseop uses handleclick wrapper for se...
Learnt from: HarrySeop
PR: What-Today-FE/What-Today#53
File: packages/design-system/src/components/button/index.tsx:32-41
Timestamp: 2025-07-16T06:51:15.152Z
Learning: In packages/design-system/src/components/button/index.tsx, HarrySeop uses handleClick wrapper for security purposes to prevent execution when users remove disabled attributes via developer tools. The onClick handler should be extracted from rest props before spreading to avoid being overwritten.

Applied to files:

  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx
  • packages/design-system/src/components/DatePicker.tsx
  • packages/design-system/src/pages/MypageSummaryCardDoc.tsx
  • packages/design-system/src/components/popover/PopoverRoot.tsx
📚 Learning: taeil08이 what-today 프로젝트의 체험 등록 페이지(apps/what-today/src/pages/experiences/iindex.tsx)에서 주소 입력 컴포넌트가 ...
Learnt from: Taeil08
PR: What-Today-FE/What-Today#134
File: apps/what-today/src/pages/experiences/iindex.tsx:11-16
Timestamp: 2025-07-25T03:14:08.579Z
Learning: Taeil08이 What-Today 프로젝트의 체험 등록 페이지(apps/what-today/src/pages/experiences/iindex.tsx)에서 주소 입력 컴포넌트가 아직 만들어지지 않아서 상태 관리를 나중에 추가할 예정이라고 언급함. 이는 프로젝트의 점진적 개발 접근법에 따른 것임.

Applied to files:

  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx
  • apps/what-today/src/pages/experiences/index.tsx
  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx
  • packages/design-system/src/pages/MypageSummaryCardDoc.tsx
  • apps/what-today/src/routes/index.tsx
📚 Learning: in the selectroot component (packages/design-system/src/components/select/selectroot.tsx), myungjiwo...
Learnt from: MyungJiwoo
PR: What-Today-FE/What-Today#57
File: packages/design-system/src/components/select/SelectRoot.tsx:37-38
Timestamp: 2025-07-17T01:20:26.915Z
Learning: In the SelectRoot component (packages/design-system/src/components/select/SelectRoot.tsx), MyungJiwoo questioned the need for implementing controlled component pattern. The current implementation only handles internal→external state changes via onChangeValue callback, but doesn't handle external→internal changes when the value prop is updated, which breaks the typical React controlled component contract.

Applied to files:

  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx
  • apps/what-today/src/pages/experiences/index.tsx
  • packages/design-system/src/components/DatePicker.tsx
  • apps/what-today/src/components/experiences/ScheduleInput.tsx
  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx
  • packages/design-system/src/pages/MypageSummaryCardDoc.tsx
  • packages/design-system/src/components/popover/PopoverRoot.tsx
📚 Learning: user kjhyun0830 prefers to keep temporary mock data inline in components when api integration is pla...
Learnt from: kjhyun0830
PR: What-Today-FE/What-Today#77
File: apps/what-today/src/pages/mypage/manage-activities/index.tsx:2-37
Timestamp: 2025-07-19T01:02:08.026Z
Learning: User kjhyun0830 prefers to keep temporary mock data inline in components when API integration is planned soon, rather than creating separate files for short-term code that will be deleted.

Applied to files:

  • packages/design-system/src/pages/OngoingExperienceCardDoc.tsx
  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx
📚 Learning: user kjhyun0830 follows an incremental development approach in what-today project, implementing ui f...
Learnt from: kjhyun0830
PR: What-Today-FE/What-Today#77
File: apps/what-today/src/pages/mypage/manage-activities/index.tsx:50-63
Timestamp: 2025-07-19T01:23:56.149Z
Learning: User kjhyun0830 follows an incremental development approach in What-Today project, implementing UI first and adding functionality in later iterations, as confirmed in PR #77 for the experience management page.

Applied to files:

  • apps/what-today/src/pages/experiences/index.tsx
📚 Learning: popovertrigger component in controlled mode (when open and onopenchange props are provided to popove...
Learnt from: MyungJiwoo
PR: What-Today-FE/What-Today#117
File: apps/what-today/src/components/notification/NotificationPopover.tsx:21-21
Timestamp: 2025-07-24T08:18:09.297Z
Learning: PopoverTrigger component in controlled mode (when open and onOpenChange props are provided to PopoverRoot) does not automatically toggle the popover state on click. The developer must provide a manual onClick handler to manage the state toggle, as the internal handleClick only works when !isControlled.

Applied to files:

  • apps/what-today/src/components/notification/NotificationPopover.tsx
  • packages/design-system/src/components/DatePicker.tsx
  • apps/what-today/src/components/experiences/ScheduleInput.tsx
  • packages/design-system/src/components/popover/PopoverRoot.tsx
📚 Learning: in korean react calendar components, it's common to use english weekday abbreviations (s, m, t, etc....
Learnt from: kjhyun0830
PR: What-Today-FE/What-Today#31
File: packages/design-system/src/components/calendar/CalendarGrid.tsx:13-13
Timestamp: 2025-07-12T16:11:37.214Z
Learning: In Korean React calendar components, it's common to use English weekday abbreviations (S, M, T, etc.) while keeping month/year displays in Korean format. CalendarGrid can use dayjs.locale('en') for weekdays while CalendarHeader uses hardcoded Korean format strings like 'YYYY년 MM월', and these don't conflict since the Korean text is hardcoded in the format string.

Applied to files:

  • packages/design-system/src/components/DatePicker.tsx
  • apps/what-today/src/components/experiences/RecurringScheduleModal.tsx
  • apps/what-today/src/components/experiences/ScheduleInput.tsx
📚 Learning: in the radiogroup component (packages/design-system/src/components/radiogroup.tsx), the input type s...
Learnt from: Taeil08
PR: What-Today-FE/What-Today#35
File: packages/design-system/src/components/RadioGroup.tsx:0-0
Timestamp: 2025-07-13T13:18:33.545Z
Learning: In the RadioGroup component (packages/design-system/src/components/RadioGroup.tsx), the input type should be 'checkbox' rather than 'radio' to support the intended toggle behavior where users can click a selected option again to deselect it. The handleChange function already implements this toggle logic with `onSelect?.(isSelected ? '' : value);`.

Applied to files:

  • packages/design-system/src/components/DatePicker.tsx
📚 Learning: profileimageinput 컴포넌트(packages/design-system/src/components/profileimageinput.tsx)에서 previewurl은 의도...
Learnt from: MyungJiwoo
PR: What-Today-FE/What-Today#79
File: packages/design-system/src/components/ProfileImageInput.tsx:44-45
Timestamp: 2025-07-19T17:03:39.193Z
Learning: ProfileImageInput 컴포넌트(packages/design-system/src/components/ProfileImageInput.tsx)에서 previewUrl은 의도적으로 내부 상태로 관리됩니다. 이는 미리보기 이미지 관리와 API로 받아온 원본 이미지와의 비교를 위한 용도로, 외부에서 제어할 필요가 없는 uncontrolled 컴포넌트 + 콜백 패턴입니다.

Applied to files:

  • packages/design-system/src/pages/MypageProfileHeaderDoc.tsx
🔇 Additional comments (16)
packages/design-system/src/pages/MypageProfileHeaderDoc.tsx (1)

6-6: 불필요한 상수 주석 처리로 ESLint 경고 예방
사용되지 않는 code 상수를 주석 처리하여 불필요한 변수 선언이 제거되었습니다. 문서 페이지에서는 중복 코드가 허용된다는 이전 합의와도 충돌하지 않으며, 빌드·린팅 단계에서 발생할 수 있는 경고를 방지해 가독성과 품질을 높이는 적절한 수정입니다.

packages/design-system/src/pages/UpcomingScheduleDoc.tsx (1)

25-30: variant, children prop 사용 여부 확인 필요

27 라인의 예시 코드와 실제 29 라인의 렌더링이 상이합니다.

  • 예시: <UpcomingSchedule variant="primary">Click me</UpcomingSchedule>
  • 실제: <UpcomingSchedule />

UpcomingSchedule 컴포넌트가
variant, children 등을 지원하지 않으면 예시 코드가 오해를 줄 수 있고,
• 지원한다면 29 라인에서도 동일한 prop을 전달해 일관성을 유지해야 합니다.

구현체를 다시 확인해 문서와 실코드가 일치하도록 조정해 주세요.

apps/what-today/src/components/notification/NotificationPopover.tsx (1)

75-75: 알림 캐싱 오류 해결이 올바르게 구현되었습니다

enabled: open 옵션 추가로 팝오버가 열릴 때만 API 요청이 실행되도록 하여, 페이지 새로고침 없이도 최신 알림을 확인할 수 있게 되었습니다. React Query의 조건부 쿼리 기능을 적절히 활용한 해결책입니다.

apps/what-today/src/pages/experiences/index.tsx (1)

314-314: 주석 처리된 라벨의 의도 확인 필요

"예약 가능한 시간대" 라벨이 주석 처리되었습니다. 새로운 반복 일정 기능과 관련된 UI 조정인지, 아니면 임시 조치인지 확인이 필요합니다.

packages/design-system/src/components/popover/PopoverRoot.tsx (1)

153-155: 날짜 선택기 영역 클릭 시 팝오버 닫힘 방지 로직 추가

.date-picker 클래스를 가진 요소 내부 클릭 시 팝오버가 닫히지 않도록 하는 로직이 추가되었습니다. 기존 .select-content 처리와 동일한 패턴으로 일관성 있게 구현되었습니다.

apps/what-today/src/routes/index.tsx (1)

40-46: 체험 생성/수정 페이지에 인증 가드 적용

체험 생성 및 수정 페이지가 authGuardLoader로 보호되어 로그인한 사용자만 접근할 수 있도록 변경되었습니다. 보안과 사용자 경험 개선에 적절한 조치입니다.

packages/design-system/src/components/DatePicker.tsx (3)

17-24: 팝오버 상태 관리 및 자동 닫힘 기능 개선

명시적인 isOpen 상태 관리와 날짜 선택 시 팝오버가 자동으로 닫히는 handleDateChange 함수가 추가되어 사용자 경험이 크게 개선되었습니다.


29-44: 제어된 팝오버 구현 및 접근성 개선

팝오버가 제어된 방식으로 구현되어 openonOpenChange props를 통해 상태를 동기화합니다. disabled 상태를 고려한 클릭 핸들러도 적절히 구현되었습니다.


46-71: 달력 스타일링 및 날짜 상태 표시 개선

twMerge를 사용한 조건부 스타일링으로 선택된 날짜(primary-500), 오늘 날짜, 과거 날짜(비활성화)에 대한 시각적 피드백이 명확하게 구현되었습니다. .date-picker 클래스 추가로 PopoverRoot의 외부 클릭 처리와도 연동됩니다.

apps/what-today/src/components/experiences/RecurringScheduleModal.tsx (3)

5-14: 인터페이스 정의가 적절합니다.

TimeSchedule 인터페이스가 명확하게 정의되어 있고, 컴포넌트 전반에서 일관되게 사용되고 있습니다.


140-187: 일정 생성 로직의 무한루프 방지가 잘 구현되었습니다.

1000일 제한을 통한 무한루프 방지와 날짜별 요일 확인 로직이 적절히 구현되어 있습니다. 스케줄 생성 후 폼 초기화와 성공 피드백도 적절합니다.


190-254: 팝오버 UI 구조가 잘 설계되었습니다.

반응형 레이아웃과 접근성을 고려한 레이블링, 적절한 버튼 스타일링이 적용되어 있습니다. 모바일에서 종료 날짜 선택기가 잘릴 수 있다는 PR 설명의 문제는 향후 수정 예정으로 현재는 수용 가능합니다.

apps/what-today/src/components/experiences/ScheduleInput.tsx (4)

3-5: 컴포넌트 임포트가 적절합니다.

useState 추가와 RecurringScheduleModal 임포트가 올바르게 되어 있습니다.


44-58: 반복 일정 처리 로직이 잘 구현되었습니다.

기존 스케줄과 새 스케줄을 합치는 로직이 적절하고, 빈 행을 필터링하는 부분도 올바르게 처리되었습니다. 성공 토스트도 적절히 표시됩니다.


144-153: 헤더 섹션 추가가 UX를 개선합니다.

"예약 가능한 시간대" 레이블과 반복 일정 추가 버튼을 나란히 배치한 레이아웃이 직관적입니다. 팝오버 상태 관리도 적절히 연결되어 있습니다.


154-210: 기존 스케줄 렌더링 로직이 잘 유지되었습니다.

반복 일정 기능 추가에도 불구하고 기존의 스케줄 입력, 검증, 삭제 로직이 그대로 유지되어 있어 기존 기능에 영향을 주지 않습니다. 조건부 버튼 렌더링도 적절합니다.

@github-actions
Copy link

github-actions bot commented Aug 2, 2025

🚀 오늘뭐해 Preview Deploy 완료!
👉 미리보기 링크

@MyungJiwoo MyungJiwoo linked an issue Aug 2, 2025 that may be closed by this pull request
@Taeil08
Copy link
Contributor

Taeil08 commented Aug 2, 2025

예약 거절 알림 해결하셨군요 캐싱 너무 잘하시는데요? ㅋㅋㅋㅋ

@MyungJiwoo MyungJiwoo merged commit 175a686 into develop Aug 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 Bug 버그 관련 ✨ Feat 기능 구현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

알림 캐싱 오류 해결 & 반복 일정 추가 기능 구현

3 participants