Skip to content

Comments

refactor: 기획 변경에 따른 홈화면 아티클 영역 제거 (#130)#131

Merged
wkdtnqls0506 merged 1 commit intomainfrom
refactor/PRODUCT-242
Aug 13, 2025
Merged

refactor: 기획 변경에 따른 홈화면 아티클 영역 제거 (#130)#131
wkdtnqls0506 merged 1 commit intomainfrom
refactor/PRODUCT-242

Conversation

@wkdtnqls0506
Copy link
Contributor

@wkdtnqls0506 wkdtnqls0506 commented Aug 13, 2025

✅ 이슈 번호

close #130


🪄 작업 내용 (변경 사항)

  • 가게에 담긴 이야기 컴포넌트 제거
  • 이번주 인기 가게 컴포넌트 제거

📸 스크린샷

스크린샷 2025-08-14 오전 12 35 30

💡 설명


🗣️ 리뷰어에게 전달 사항

  • 백엔드 분들의 요청으로 PR 먼저 올렸습니다~! 🙇🏻‍♀️

📍 트러블 슈팅

Summary by CodeRabbit

  • Refactor
    • 홈 화면 레이아웃을 단순화했습니다. 스토리 소개 영역과 최근 지원한 스토어 목록 섹션을 제거해 핵심 콘텐츠에 집중할 수 있고 스크롤 길이를 줄였습니다.
    • 나머지 화면 구성과 흐름은 동일하며, 불필요한 섹션이 사라져 가독성과 접근성이 개선되었습니다.

@vercel
Copy link
Contributor

vercel bot commented Aug 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
26th-web-team-1-fe Ready Preview Comment Aug 13, 2025 3:36pm

@coderabbitai
Copy link

coderabbitai bot commented Aug 13, 2025

Walkthrough

홈 화면 페이지에서 StoreStory와 RecentlySupportedStores 컴포넌트의 임포트 및 JSX 사용을 제거했습니다. 나머지 레이아웃과 흐름은 변경되지 않았습니다.

Changes

Cohort / File(s) Summary
홈 화면 컴포넌트 정리
src/app/(home)/page.tsx
StoreStory, RecentlySupportedStores 임포트 및 JSX 제거; ./_components 임포트 목록을 RecentCheers, RegisterPopup, Story로 축소. 기타 레이아웃/흐름 변경 없음.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Assessment against linked issues

Objective Addressed Explanation
홈 화면 아티클 영역 제거 [#130]
가게에 담긴 이야기 제거 [#130]
이번주 인기 가게 제거 [#130]

Poem

토끼 발로 탁탁, 코드에 먼지 훅—
기사 영역 사라져, 홈은 더 쏙쏙!
이야기·인기 가게 조용히 굿바이—
깔끔한 화면에 바람이 살랑 하이.
띠용! 캐럿 들고 나도 축하의 춤 🥕✨

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/PRODUCT-242

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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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

🎨 Storybook Preview: https://685a32a1c0bbd269fdb67af4-nqascgwjeb.chromatic.com/
🔗 Chromatic Build: https://www.chromatic.com/build?appId=685a32a1c0bbd269fdb67af4&number=199
🕖 Updated at: 2025년 08월 14일 00시 37분 02초

@wkdtnqls0506 wkdtnqls0506 removed the request for review from Seojunhwan August 13, 2025 15:39
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 (1)
src/app/(home)/page.tsx (1)

17-21: 여백 과잉 및 단일 자식 VStack 제거 제안

컴포넌트 제거 이후에도 Spacer가 2개(12, 32) 연속이고, VStack은 자식이 1개뿐이라 불필요합니다. 섹션 간 여백을 1개로 유지하고, VStack을 제거해 DOM 복잡도를 줄이는 것을 권장합니다.

아래처럼 단순화할 수 있습니다:

-      <Spacer size={12} />
-      <Spacer size={32} />
-      <VStack gap={40}>
-        <RecentCheers />
-      </VStack>
+      <Spacer size={32} />
+      <RecentCheers />

추가로, 위 변경을 적용한다면 상단 import의 VStack도 함께 제거하세요(라인 5 인근):

import { Bleed } from "@/components/ui/Bleed";
import { Spacer } from "@/components/ui/Spacer";
// import { VStack } from "@/components/ui/Stack"; // 제거
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 186e9f8 and 6b678ce.

📒 Files selected for processing (1)
  • src/app/(home)/page.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (.cursor/rules/nextjs-folder-structure.mdc)

All files must use TypeScript.

Files:

  • src/app/(home)/page.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: test
🔇 Additional comments (2)
src/app/(home)/page.tsx (2)

7-7: 임포트 정리 LGTM — 제거 대상 컴포넌트 반영 완료

StoreStory/RecentlySupportedStores 제거 의도대로 임포트가 정리되었습니다. 남은 사용 컴포넌트만 명시되어 명확합니다.


7-21: PR 설명과 구현 상태 불일치 가능성 확인 요청

PR 설명에는 “이번주 인기 가게 컴포넌트 제거 (not completed)”로 표기되어 있으나, 본 파일 기준으로는 해당 영역이 보이지 않습니다. 실제로 전역에서 완전히 제거되었는지, 아니면 다른 화면에 잔존하는지 확인 후 PR 설명/체크리스트를 최신 상태로 맞춰 주세요.

StoreStory,
Story,
} from "./_components";
import { RecentCheers, RegisterPopup, Story } from "./_components";
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

제거된 컴포넌트의 사용처/재-export/파일 잔존 여부 점검 권장

홈 페이지에서는 제거되었지만, 레포 전반에서 StoreStory/RecentlySupportedStores 관련 잔존 코드(다른 페이지 사용, _components/index 재-export, 파일 자체)가 있는지 확인해 주세요. 아래 스크립트로 자동 점검 가능합니다. 필요 시 잔여 파일/라인 제거도 도와드릴게요.


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "1) 코드베이스에서 제거된 컴포넌트/카피 검색"
rg -n -S 'StoreStory|RecentlySupportedStores|이번주\s*인기' || true

echo
echo "2) home 하위 _components/index.ts(x) 재-export 잔존 여부 확인"
fd -a -t f --glob 'src/app/(home)/**/_components/**/index.{ts,tsx}' | while read -r idx; do
  echo " - $idx"
  rg -n 'export\s+\{[^}]*\b(StoreStory|RecentlySupportedStores)\b' "$idx" || true
done

echo
echo "3) 컴포넌트 파일 자체가 남아있는지 확인"
fd -a -t f '(StoreStory|RecentlySupportedStores)\.(ts|tsx)' src || true

Length of output: 2498


StoreStory 및 RecentlySupportedStores 관련 잔존 코드 삭제 필요

아래 경로에서 홈 페이지에서 제거된 두 컴포넌트가 여전히 re-export 또는 파일 형태로 남아있습니다. 사용되지 않는다면 관련 코드를 삭제해주세요.

  • src/app/(home)/_components/index.ts
    • 2행: export { RecentlySupportedStores } from "./RecentlySupportStories";
    • 4행: export { StoreStory } from "./StoreStory";
  • src/app/(home)/_components/RecentlySupportStories/RecentlySupportStories.tsx
    • RecentlySupportedStores 컴포넌트 구현 및 연관 파일 잔존
  • src/app/(home)/_components/StoreStory/StoreStory.tsx
    • StoreStory 컴포넌트 구현 및 연관 파일 잔존

위 파일 및 re-export 문 제거 후 빌드 및 기능에 영향이 없는지 확인 부탁드립니다.

🤖 Prompt for AI Agents
In src/app/(home)/page.tsx around line 7, the import still references components
that were removed from the homepage; remove the unused import { RecentCheers,
RegisterPopup, Story } (or delete the specific removed names if others remain)
and then delete the stale re-exports and component files: remove the export
lines for RecentlySupportedStores and StoreStory from
src/app/(home)/_components/index.ts and delete the folders/files
src/app/(home)/_components/RecentlySupportStories/RecentlySupportStories.tsx and
src/app/(home)/_components/StoreStory/StoreStory.tsx (and any related
assets/tests). After removal, run the build and run the app to confirm no
remaining imports or references cause errors.

@wkdtnqls0506 wkdtnqls0506 merged commit 69ddced into main Aug 13, 2025
9 checks passed
@wkdtnqls0506 wkdtnqls0506 deleted the refactor/PRODUCT-242 branch August 13, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ refactor 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PRODUCT-242] 기획 변경에 따른 홈화면 아티클 영역 제거

2 participants