Skip to content

Conversation

@LeeCh0129
Copy link
Contributor

@LeeCh0129 LeeCh0129 commented Aug 2, 2025

📌 변경 사항 개요

  • 예약내역 카드와 체험관리 카드에 반응형 디자인을 적용했습니다. 또한 오늘 QA에서 발생한 이슈중 하나인 긴 제목으로 인한 레이아웃 문제와 예약 내역 페이지에서 데이터 존재 유/무에 따라 드롭다운 위치가 달라지는 이슈를 해결했습니다.

📝 상세 내용

  • 예약내역 및 체험관리 카드에 반응형 디자인 적용
  • 예약 내역 및 체험관리 카드에서 긴 제목으로 인한 레이아웃 문제 -> truncate
  • 예약 내역 페이지의 드롭다운 상태별 동일 마진 적용

🔗 관련 이슈

🖼️ 스크린샷(선택사항)

image image image image

💡 참고 사항

  • 추후 예약 현황에서 드롭다운의 긴 제목으로 인한 문제 해결 예정

Summary by CodeRabbit

  • Style
    • 마이페이지의 활동 카드와 예약 카드가 다양한 화면 크기에서 더 잘 보이도록 반응형 레이아웃 및 타이포그래피로 개선되었습니다.
    • 예약 페이지의 제목 및 필터 영역 하단 여백이 늘어나 레이아웃이 더욱 여유롭게 조정되었습니다.

@LeeCh0129 LeeCh0129 self-assigned this Aug 2, 2025
@LeeCh0129 LeeCh0129 added the ✨ Feature 기능구현 label Aug 2, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 2, 2025

Walkthrough

본 변경사항은 예약 내역 및 내 체험 관리 페이지의 카드 컴포넌트와 관련된 레이아웃 및 스타일을 반응형으로 개선하는 작업입니다. Tailwind CSS의 반응형 클래스가 적용되어 다양한 화면 크기에서 레이아웃, 이미지, 타이포그래피, 버튼 등이 유동적으로 조정됩니다. 기능적 로직 변경은 없습니다.

Changes

Cohort / File(s) Change Summary
ActivityCard 반응형 개선
src/app/(with-header)/mypage/activities/components/ActivityCard.tsx
고정된 높이/너비를 반응형 Tailwind 클래스로 변경, 이미지 및 텍스트, 드롭다운, 패딩 등 다양한 요소가 화면 크기에 따라 유동적으로 조정되도록 수정
ReservationCard 반응형 개선
src/app/(with-header)/mypage/reservations/components/ReservationCard.tsx
고정된 레이아웃을 반응형으로 변경, 이미지, 텍스트, 버튼 등 모든 주요 UI 요소의 크기 및 마진, 폰트 사이즈가 화면 크기에 따라 조정되도록 Tailwind 클래스 적용
예약 내역 페이지 여백 조정
src/app/(with-header)/mypage/reservations/page.tsx
로딩 및 에러 상태에서 페이지 타이틀과 필터 컴포넌트의 하단 마진을 기존보다 크게(mb-24mb-48) 변경하여 여백 증가

Sequence Diagram(s)

(해당 변경은 스타일 및 레이아웃에 한정되어 있으므로 시퀀스 다이어그램 생략)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Assessment against linked issues

Objective Addressed Explanation
예약 내역 페이지 반응형 (#123)
내 체험 관리 페이지 반응형 (#123)

Assessment against linked issues: Out-of-scope changes

(요구사항 외의 기능적 코드 변경 없음)

Possibly related PRs

Suggested labels

🎨 design

Suggested reviewers

  • BokyungCodes
  • minimo-9

Poem

🐰
반응형 바람이 불어와,
카드들이 춤을 춰요!
크고 작은 화면 위
예쁘게 맞춰 앉았지요.
토끼는 귀 쫑긋 세우고
"리뷰어님, 이 변화 어때요?"
🌸✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/123

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 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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

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

🔭 Outside diff range comments (1)
src/app/(with-header)/mypage/activities/components/ActivityCard.tsx (1)

70-75: button 요소에 type="button" 명시 필요

<button>의 기본 typesubmit이라 폼 내부에 포함될 경우 예기치 않게 submit 이벤트를 발생시킬 수 있습니다.
메뉴 토글 버튼과 드롭다운 내 두 개의 액션 버튼 모두 form 컨텍스트에서 안전하게 동작하도록 아래처럼 명시적인 타입을 지정해 주세요.

-<button
-  onClick={() => setIsMenuOpen(!isMenuOpen)}
-  className='flex h-40 w-40 items-center justify-center rounded-full hover:bg-gray-100'
->
+<button
+  type="button"
+  onClick={() => setIsMenuOpen(!isMenuOpen)}
+  className='flex h-40 w-40 items-center justify-center rounded-full hover:bg-gray-100'
+>
...
-<button
-  onClick={handleEdit}
-  className='flex h-50 w-full items-center justify-center border-b border-gray-300 px-4 py-3 text-center text-base font-medium text-gray-900 hover:bg-gray-50 sm:h-62 sm:px-46 sm:py-18 sm:text-lg'
->
+<button
+  type="button"
+  onClick={handleEdit}
+  className='flex h-50 w-full items-center justify-center border-b border-gray-300 px-4 py-3 text-center text-base font-medium text-gray-900 hover:bg-gray-50 sm:h-62 sm:px-46 sm:py-18 sm:text-lg'
+>
...
-<button
-  onClick={handleDelete}
-  className='flex h-50 w-full items-center justify-center px-4 py-3 text-center text-base font-medium text-gray-900 hover:bg-gray-50 sm:h-62 sm:px-46 sm:py-18 sm:text-lg'
->
+<button
+  type="button"
+  onClick={handleDelete}
+  className='flex h-50 w-full items-center justify-center px-4 py-3 text-center text-base font-medium text-gray-900 hover:bg-gray-50 sm:h-62 sm:px-46 sm:py-18 sm:text-lg'
+>

Also applies to: 85-96

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 214c0a8 and b036ad8.

📒 Files selected for processing (3)
  • src/app/(with-header)/mypage/activities/components/ActivityCard.tsx (2 hunks)
  • src/app/(with-header)/mypage/reservations/components/ReservationCard.tsx (3 hunks)
  • src/app/(with-header)/mypage/reservations/page.tsx (2 hunks)
🧰 Additional context used
🪛 Biome (2.1.2)
src/app/(with-header)/mypage/activities/components/ActivityCard.tsx

[error] 87-91: Provide an explicit type prop for the button element.

The default type of a button is submit, which causes the submission of a form when placed inside a form element. This is likely not the behaviour that you want inside a React application.
Allowed button types are: submit, button or reset

(lint/a11y/useButtonType)

🔇 Additional comments (3)
src/app/(with-header)/mypage/reservations/components/ReservationCard.tsx (2)

78-87: text-2lg 유틸리티가 Tailwind 설정에 존재하는지 확인 필요

Tailwind 기본 preset에는 text-2lg가 없습니다.
커스텀 사이즈가 설정되지 않았다면 컴파일 시 해당 클래스가 제거되어 글자가 기본 크기로 표시됩니다.
tailwind.config.jstheme.fontSize2lg가 정의되어 있는지 확인해 주세요.


91-96: 커스텀 사이징(h-43, w-144) 사용 시 공통 유틸리티 정의 여부 확인

h-43, w-144 등은 Tailwind 기본 스케일에 존재하지 않는 값입니다.
사내 디자인 시스템에서 공통 유틸리티로 확장한 것이라면 문제 없지만, 아니라면 CSS가 적용되지 않을 수 있습니다.
동일한 이유로 lg:h-43, lg:w-144 도 함께 확인해 주세요.

src/app/(with-header)/mypage/reservations/page.tsx (1)

160-166: 마진 증가는 OK – 로딩·에러 UI 일관성 유지 확인

mb-24mb-48로 변경하여 여백을 확장한 것은 시각적으로 더 여유로운 레이아웃을 제공합니다.
로딩·에러·정상 렌더링 세 곳 모두 동일한 여백을 적용했으므로 UI 일관성 측면에서도 문제 없습니다.

Also applies to: 182-188

Comment on lines +56 to 60
<div className='mt-2 sm:mt-4 lg:mt-6'>
<h3 className='text-nomad truncate text-sm font-bold sm:text-lg lg:text-xl'>
{title}
</h3>
</div>
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

잘린(title) 텍스트에 대한 접근성 보완 제안

truncate로 긴 제목을 숨기면 키보드·스크린리더 사용자는 전체 제목을 알 수 없습니다.
title 속성이나 aria-label, 혹은 Tooltip 컴포넌트를 활용해 전체 제목을 노출해 주시면 접근성이 향상됩니다.

🤖 Prompt for AI Agents
In src/app/(with-header)/mypage/activities/components/ActivityCard.tsx around
lines 56 to 60, the title text is truncated visually but lacks accessibility
support for keyboard and screen reader users. To fix this, add a title attribute
or aria-label to the h3 element or wrap the title with a Tooltip component so
that the full title is accessible and can be read by assistive technologies.

Copy link
Contributor

@BokyungCodes BokyungCodes left a comment

Choose a reason for hiding this comment

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

레이아웃이 더 깔끔해지겠네요!😊

Copy link
Contributor

@evaain706 evaain706 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!
반응형도 잘 해주셨고
truncate라는것으로 글자길이를 해결할수있었군요

@LeeCh0129 LeeCh0129 merged commit 658ba01 into develop Aug 3, 2025
2 checks passed
@LeeCh0129 LeeCh0129 deleted the feat/123 branch August 3, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능구현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 예약 내역, 체험 관리 페이지 반응형

4 participants