-
Notifications
You must be signed in to change notification settings - Fork 3
Fix/146/gathering detail #149
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
|
Caution Review failedThe pull request is closed. Walkthrough์ด๋ฒ ๋ณ๊ฒฝ ์ฌํญ์ ์ฌ๋ฌ ์ปดํฌ๋ํธ์์ ์ฟผ๋ฆฌ ํ
๊ณผ ์ํ ๊ด๋ฆฌ ๋ก์ง์ ์์ ํ์ฌ UI์ ๋ฐ์ดํฐ ์ฒ๋ฆฌ ๋ฐฉ์์ ๊ฐ์ ํ๋ ๋ฐ ์ค์ ์ ๋์์ต๋๋ค. Changes
Possibly related PRs
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the toolโs configuration or disable the tool if itโs a critical failure. ๐ง eslint
src/components/common/crew-list/crew-card-list.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't determine the plugin "react-hooks" uniquely.
Please remove the "plugins" setting from either config or remove either plugin installation. If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? ๐ชง TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
yulrang
left a comment
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.
๊ณ ์ ๋ง์ผ์ จ์ต๋๋ค!!!! ํ์ดํ
|
๐storybook: https://67206cc6ff9d7a05a3528ff8-ktpzycolru.chromatic.com/ |
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.
Actionable comments posted: 6
๐งน Outside diff range and nitpick comments (19)
src/_queries/gathering/gathering-detail-queries.ts (1)
6-14: JSDoc ๋ฌธ์ํ ์ถ๊ฐ๋ฅผ ์ ์๋๋ฆฝ๋๋ค.ํจ์์ ์ฌ์ฉ ๋ฐฉ๋ฒ๊ณผ ํ๋ผ๋ฏธํฐ์ ๋ํ ์ค๋ช ์ JSDoc์ผ๋ก ์ถ๊ฐํ๋ฉด ๊ฐ๋ฐ์ ๊ฒฝํ์ด ํฅ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
๋ค์๊ณผ ๊ฐ์ ๋ฌธ์ํ๋ฅผ ์ถ๊ฐํด๋ณด์ธ์:
+/** + * ๋ชจ์ ์์ธ ์ ๋ณด๋ฅผ ์กฐํํ๋ ์ฟผ๋ฆฌ ํ + * @param crewId ํฌ๋ฃจ ID + * @param gatheringId ๋ชจ์ ID + * @param options React Query ์ต์ (enabled ํ๋๊ทธ๋ก ์๋ ์คํ ์ ์ด ๊ฐ๋ฅ) + * @returns ๋ชจ์ ์์ธ ์ ๋ณด ์ฟผ๋ฆฌ ๊ฒฐ๊ณผ + */ export function useGetGatheringDetailQuery( crewId: number, gatheringId: number, options?: { enabled?: boolean }, ) {src/components/gathering-list/liked-list-container.tsx (1)
41-41: ๋ก๋ฉ ์ํ UI ๊ฐ์ ์ ์Loader ์ปดํฌ๋ํธ๊ฐ ํ๋ฉด ์ค์์ ์์นํ๋๋ก ์คํ์ผ๋ง์ ์ถ๊ฐํ๋ฉด ์ฌ์ฉ์ ๊ฒฝํ์ด ๋์ฑ ํฅ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
๋ค์๊ณผ ๊ฐ์ด ์์ ํ๋ ๊ฒ์ ์ ์๋๋ฆฝ๋๋ค:
- if (isLoading) return <Loader />; + if (isLoading) return ( + <div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', minHeight: '200px' }}> + <Loader /> + </div> + );src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal/container.tsx (2)
35-35: ์ํ ์ ๋ฐ์ดํธ ์์ ์ด ์ ์ ํฉ๋๋ค๋ง, ์๋ฌ ์ฒ๋ฆฌ๋ฅผ ๊ฐ์ ํ ์ ์์ต๋๋ค.๊ฐ ์์ (์ฐธ์ฌ, ํํด, ์ญ์ ) ์๋ฃ ํ
onUpdateํธ์ถ์ด ์ ์ ํ๊ฒ ๋ฐฐ์น๋์์ต๋๋ค. ํ์ง๋ง ์๋ฌ ๋ฐ์ ์์๋ ๋ถ๋ชจ ์ปดํฌ๋ํธ์ ์๋ฆผ์ด ํ์ํ ์ ์์ต๋๋ค.๋ค์๊ณผ ๊ฐ์ด ์๋ฌ ์ฒ๋ฆฌ๋ฅผ ๊ฐ์ ํ๋ ๊ฒ์ ๊ณ ๋ คํด๋ณด์ธ์:
} catch (error) { if (error instanceof ApiError) { showToast(`์ฐธ์ฌ ์ค ์๋ฌ ๋ฐ์: ${error.message}`, 'error'); + onUpdate(); // ์๋ฌ ์ํ๋ ๋ถ๋ชจ์๊ฒ ์ ๋ฌ } }Also applies to: 47-47, 60-60
Line range hint
1-77: ๋น๋๊ธฐ ์์ ์ ๋ก๋ฉ ์ํ ์ฒ๋ฆฌ๊ฐ ํ์ํฉ๋๋ค.ํ์ฌ ๋น๋๊ธฐ ์์ ์คํ ์ค์ ์ฌ์ฉ์์๊ฒ ๋ก๋ฉ ์ํ๋ฅผ ํ์ํ์ง ์๊ณ ์์ต๋๋ค. ์ด๋ ์ฌ์ฉ์ ๊ฒฝํ์ ์ ํ์ํฌ ์ ์์ต๋๋ค.
๋ค์๊ณผ ๊ฐ์ ๊ฐ์ ์ ์ ์ํฉ๋๋ค:
export default function GatheringDetailModalContainer({ opened, close, data, onUpdate, }: GatheringDetailModalContainerProps) { + const [isLoading, setIsLoading] = useState(false); const handleJoin = async () => { + setIsLoading(true); try { await JoinGathering(data.crewId, data.id); showToast('์ฝ์์ ์ฐธ์ฌํ์ต๋๋ค.', 'success'); close(); onUpdate(); } catch (error) { if (error instanceof ApiError) { showToast(`์ฐธ์ฌ ์ค ์๋ฌ ๋ฐ์: ${error.message}`, 'error'); } + } finally { + setIsLoading(false); } }; return ( <GatheringDetailModalPresenter data={data} opened={opened} onClose={close} onJoin={handleJoin} onExit={handleExit} onDelete={handleDelete} + isLoading={isLoading} /> ); }src/app/(crew)/crew/detail/[id]/_components/create-gathering/index.tsx (1)
41-47: ์ ๊ทผ์ฑ ๊ฐ์ ์ด ํ์ํฉ๋๋ค.๋ ์ด์์ ๊ตฌ์กฐ๋ ์ ๋์ด์์ผ๋, ์ ๊ทผ์ฑ ์ธก๋ฉด์์ ๋ค์๊ณผ ๊ฐ์ ๊ฐ์ ์ด ํ์ํฉ๋๋ค:
- <h2 className="text-2xl font-semibold text-gray-800">์ฝ์ ์ก๊ธฐ</h2> + <h2 className="text-2xl font-semibold text-gray-800" role="heading" aria-level="2">์ฝ์ ์ก๊ธฐ</h2> - <span className="text-base font-semibold text-blue-500"> + <span className="text-base font-semibold text-blue-500" aria-live="polite">๋ํ ์์ ๋๋น๋ฅผ ์ํด ๋ค์ ์ฌํญ๋ ๊ณ ๋ คํด๋ณด์ธ์:
- ํ ์คํธ ์์์ ๋๋น์จ ๊ฒํ (ํนํ ํ๋์ ํ ์คํธ)
- ๋คํฌ ๋ชจ๋ ์ง์ ๊ณ ๋ ค
src/app/(crew)/crew/detail/[id]/_components/gathering-list-section.tsx (1)
47-49: ๋ชจ๋ฌ ์ก์ ํธ๋ค๋ฌ ๊ตฌํ์ ๋ํ ์ ์ํ์ฌ ๊ตฌํ์ ๊ฐ๋จํ์ง๋ง, ์๋ฌ ์ฒ๋ฆฌ๋ฅผ ์ถ๊ฐํ๋ฉด ๋ ๊ฒฌ๊ณ ํด์ง ์ ์์ต๋๋ค.
๋ค์๊ณผ ๊ฐ์ด ์๋ฌ ์ฒ๋ฆฌ๋ฅผ ์ถ๊ฐํ๋ ๊ฒ์ ๊ณ ๋ คํด๋ณด์ธ์:
const handleModalAction = () => { - refetch(); + try { + refetch(); + } catch (error) { + toast.error('๋ฐ์ดํฐ ๊ฐฑ์ ์ค ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.'); + } };src/components/common/crew-list/crew-card-list.tsx (1)
53-57: ์ด๋ฏธ์ง URL ์์ํ๊ฐ ํ์ํฉ๋๋คํ๋์ฝ๋ฉ๋ ์ด๋ฏธ์ง URL์ ์์๋ก ๋ถ๋ฆฌํ์ฌ ๊ด๋ฆฌํ๋ฉด ์ ์ง๋ณด์์ฑ์ด ํฅ์๋ฉ๋๋ค.
+const DEFAULT_IMAGE_URL = 'https://media.istockphoto.com/id/1396814518/vector/image-coming-soon-no-photo-no-thumbnail-image-available-vector-illustration.jpg?s=612x612&w=0&k=20&c=hnh2OZgQGhf0b46-J2z7aHbIWwq8HNlSDaNp2wn_iko='; + imageUrl={ inform?.imageUrl === 'string' - ? 'https://media.istockphoto.com/id/1396814518/vector/image-coming-soon-no-photo-no-thumbnail-image-available-vector-illustration.jpg?s=612x612&w=0&k=20&c=hnh2OZgQGhf0b46-J2z7aHbIWwq8HNlSDaNp2wn_iko=' + ? DEFAULT_IMAGE_URL : inform?.imageUrl }src/components/common/gathering-card/container.tsx (4)
17-17: ์ฝ๋ฐฑ ํจ์์ ์ฉ๋๋ฅผ ๋ฌธ์ํํด์ฃผ์ธ์.
onModalAction์ฝ๋ฐฑ์ ๊ตฌ์ฒด์ ์ธ ํธ์ถ ์์ ๊ณผ ๋ชฉ์ ์ ์ฃผ์์ผ๋ก ์ค๋ช ํ๋ฉด ์ปดํฌ๋ํธ์ ์ฌ์ฉ์ฑ์ด ํฅ์๋ ๊ฒ ๊ฐ์ต๋๋ค.interface GatheringCardContainerProps extends GatheringType { + // ๋ชจ๋ฌ ๋ด์ ๋ฐ์ดํฐ๊ฐ ์ ๋ฐ์ดํธ๋ ๋ ํธ์ถ๋๋ ์ฝ๋ฐฑ onModalAction: () => void; }
57-61: ๋ชจ๋ฌ ์ด๊ธฐ ์ ์ ์๋ฌ ์ฒ๋ฆฌ๋ฅผ ์ถ๊ฐํ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.๋ฐ์ดํฐ fetching์ด ์คํจํ ๊ฒฝ์ฐ๋ฅผ ๋๋นํ ์๋ฌ ์ฒ๋ฆฌ๋ฅผ ์ถ๊ฐํ๋ฉด ์ฌ์ฉ์ ๊ฒฝํ์ด ํฅ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
const openModal = async () => { + try { - refetch(); + await refetch(); open(); + } catch (error) { + toast.error('์์ธ ์ ๋ณด๋ฅผ ๋ถ๋ฌ์ค๋๋ฐ ์คํจํ์ต๋๋ค.'); + } };
73-74: ์๋ฌ ๋ฉ์์ง๋ฅผ ๋ ๊ตฌ์ฒด์ ์ผ๋ก ๊ฐ์ ํ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.ํ์ฌ๋ ์ผ๋ฐ์ ์ธ ์๋ฌ ๋ฉ์์ง๋ง ํ์๋๊ณ ์์ต๋๋ค. ์ข์์/์ทจ์ ๊ฐ๊ฐ์ ๊ฒฝ์ฐ์ ๋ํด ๋ ๊ตฌ์ฒด์ ์ธ ๋ฉ์์ง๋ฅผ ์ ๊ณตํ๋ฉด ์ฌ์ฉ์๊ฐ ๋ฌด์์ด ์๋ชป๋์๋์ง ๋ ์ ์ดํดํ ์ ์์ ๊ฒ ๊ฐ์ต๋๋ค.
} catch (likeError) { - toast.error('์ฐ ์ํ๋ฅผ ์ ๋ฐ์ดํธํ๋ ๋ฐ ์คํจํ์ต๋๋ค.'); + toast.error(isLiked + ? '์ฐํ๊ธฐ ์ทจ์์ ์คํจํ์ต๋๋ค. ์ ์ ํ ๋ค์ ์๋ํด์ฃผ์ธ์.' + : '์ฐํ๊ธฐ์ ์คํจํ์ต๋๋ค. ์ ์ ํ ๋ค์ ์๋ํด์ฃผ์ธ์.' + ); }
78-82: ์๋ฌ ์ฒ๋ฆฌ๋ฅผ ๋ ์์ธํ๊ฒ ๊ฐ์ ํ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.ํ์ฌ์ ์๋ฌ ๋ฉ์์ง๋ ๋๋ฌด ์ผ๋ฐ์ ์ ๋๋ค. API ์๋ฌ์ ์ข ๋ฅ์ ๋ฐ๋ผ ๋ค๋ฅธ ๋ฉ์์ง๋ฅผ ํ์ํ๊ณ , ๊ฐ๋ฅํ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ ์ํ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.
useEffect(() => { if (error) { - toast.error('๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค๋ ๋ฐ ์คํจํ์ต๋๋ค.'); + if (error instanceof ApiError) { + switch (error.status) { + case 404: + toast.error('๋ชจ์์ ์ฐพ์ ์ ์์ต๋๋ค. ์๋ก๊ณ ์นจ ํ ๋ค์ ์๋ํด์ฃผ์ธ์.'); + break; + case 403: + toast.error('์ ๊ทผ ๊ถํ์ด ์์ต๋๋ค. ๋ก๊ทธ์ธ ํ ๋ค์ ์๋ํด์ฃผ์ธ์.'); + break; + default: + toast.error('์ผ์์ ์ธ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค. ์ ์ ํ ๋ค์ ์๋ํด์ฃผ์ธ์.'); + } + } } }, [error]);src/components/common/crew-list/crew-card.tsx (1)
86-86: ์ํ ํ ์คํธ ๋ณ๊ฒฝ์ด ์ ์ ํ ๊ตฌํ๋์์ต๋๋ค!"๊ฐ์ค ํ์ "์์ "๋ชจ์ง ์๋ฃ"๋ก์ ํ ์คํธ ๋ณ๊ฒฝ์ด PR์ ๋ชฉ์ ๊ณผ ์ผ๊ด๋๊ฒ ์ ๊ตฌํ๋์์ต๋๋ค. ์ด๋ ์ฌ์ฉ์์๊ฒ ๋ ๋ช ํํ ์ํ๋ฅผ ์ ๋ฌํ ์ ์์ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค.
๋ค์๊ณผ ๊ฐ์ ๊ฐ์ ์ ๊ณ ๋ คํด๋ณด์๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค:
- <span className="text-sm font-medium"> ๋ชจ์ง ์๋ฃ</span> + <span className="text-sm font-medium">๋ชจ์ง ์๋ฃ</span>ํ ์คํธ ์์ ๋ถํ์ํ ๊ณต๋ฐฑ์ ์ ๊ฑฐํ์ฌ ๋ค๋ฅธ ํ ์คํธ ์คํ์ผ๋ง๊ณผ ์ผ๊ด์ฑ์ ์ ์งํ๋ ๊ฒ์ด ์ข๊ฒ ์ต๋๋ค.
src/components/common/gathering-card/presenter.tsx (2)
75-75: CSS ๋ณ์ ์ฌ์ฉ์ ๊ณ ๋ คํด๋ณด์ธ์ํ์ฌ ํ๋์ฝ๋ฉ๋ min-height ๊ฐ์ CSS ๋ณ์๋ก ๊ด๋ฆฌํ๋ฉด ์ผ๊ด์ฑ ์๋ ์ ์ง๋ณด์๊ฐ ๊ฐ๋ฅํ ๊ฒ ๊ฐ์ต๋๋ค.
+/* styles/variables.css์ ์ถ๊ฐ */ +:root { + --gathering-card-content-height: 220px; +} -<div className="flex min-h-[220px] flex-col justify-between p-4"> +<div className="flex min-h-[var(--gathering-card-content-height)] flex-col justify-between p-4">
86-93: ์ ๊ทผ์ฑ ๊ฐ์ ์ ์ํ ์ ์ํ ์คํธ๊ฐ ์๋ฆด ๋ ์ฌ์ฉ์๊ฐ ์ ์ฒด ๋ด์ฉ์ ํ์ธํ ์ ์๋๋ก title ์์ฑ์ ์ถ๊ฐํ๋ ๊ฒ์ด ์ข๊ฒ ์ต๋๋ค.
-<h3 className="overflow-hidden text-ellipsis whitespace-nowrap pt-1 text-xl font-semibold text-gray-800"> +<h3 + className="overflow-hidden text-ellipsis whitespace-nowrap pt-1 text-xl font-semibold text-gray-800" + title={title} +> {title} </h3>src/app/(crew)/crew/detail/[id]/_components/detail-crew-container.tsx (2)
Line range hint
122-134: ์๋ฌ ์ฒ๋ฆฌ ๋ฐฉ์์ ๊ฐ์ ํด ์ฃผ์ธ์.ํ์ฌ ์๋ฌ ์ฒ๋ฆฌ์ ๋ช ๊ฐ์ง ๊ฐ์ ์ด ํ์ํฉ๋๋ค:
- ์๋ฌ ๋ฉ์์ง๊ฐ ์ฌ์ฉ์ ์นํ์ ์ด์ง ์์ต๋๋ค.
- ์๋ฌ ์ํฉ๋ณ ๊ตฌ์ฒด์ ์ธ ์๋ด๊ฐ ๋ถ์กฑํฉ๋๋ค.
- TODO ์ฃผ์์ด ์์ง๋ง ๊ตฌ์ฒด์ ์ธ ๊ฐ์ ๋ฐฉํฅ์ด ๋ช ์๋์ด ์์ง ์์ต๋๋ค.
๋ค์๊ณผ ๊ฐ์ด ๊ฐ์ ํด ๋ณด์ธ์:
if (fetchError) { if (fetchError instanceof ApiError) { try { const errorData = JSON.parse(fetchError.message); if (errorData.status === 'NOT_FOUND') { - return <p>ํฌ๋ฃจ ์ ๋ณด๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค</p>; + return ( + <div className="text-center py-8"> + <p className="text-lg font-medium text-gray-800"> + ํฌ๋ฃจ๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค ๐ข + </p> + <p className="text-sm text-gray-600 mt-2"> + ์ญ์ ๋์๊ฑฐ๋ ์๋ชป๋ ์ ๊ทผ์ ๋๋ค. + </p> + </div> + ); } } catch (parseError) { - return <p>{`Error ${fetchError.message}`}</p>; + return ( + <div className="text-center py-8"> + <p className="text-lg font-medium text-gray-800"> + ์ผ์์ ์ธ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค ๐ + </p> + <p className="text-sm text-gray-600 mt-2"> + ์ ์ ํ ๋ค์ ์๋ํด ์ฃผ์ธ์. + </p> + </div> + ); } } - return <p>๋ฐ์ดํฐ ํต์ ์ ์คํจํ์ต๋๋ค.</p>; + return ( + <div className="text-center py-8"> + <p className="text-lg font-medium text-gray-800"> + ๋คํธ์ํฌ ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค ๐ + </p> + <p className="text-sm text-gray-600 mt-2"> + ์ธํฐ๋ท ์ฐ๊ฒฐ์ ํ์ธํด ์ฃผ์ธ์. + </p> + </div> + ); }
119-119: ๋ก๋ฉ ์ํ์ UI๋ฅผ ๊ฐ์ ํด ์ฃผ์ธ์.ํ์ฌ
Loader์ปดํฌ๋ํธ๊ฐ ์คํ์ผ๋ง ์์ด ์ฌ์ฉ๋๊ณ ์์ต๋๋ค. ์ฌ์ฉ์ ๊ฒฝํ์ ์ํด ์ค์ ์ ๋ ฌ๊ณผ ์ฌ๋ฐฑ์ ์ถ๊ฐํ๋ ๊ฒ์ด ์ข๊ฒ ์ต๋๋ค.๋ค์๊ณผ ๊ฐ์ด ๊ฐ์ ํด ๋ณด์ธ์:
- return <Loader />; + return ( + <div className="flex justify-center items-center min-h-[200px]"> + <Loader size="lg" /> + </div> + );src/components/gathering-list/crew-gathering-list.tsx (1)
158-158: ์ฝ๋ ์ค๋ณต์ ์ค์ผ ์ ์๋ ๊ธฐํ๊ฐ ์์ต๋๋ค.๋ฐ์คํฌํฑ๊ณผ ๋ชจ๋ฐ์ผ ๋ทฐ์์
GatheringCard์ ์ ๋ฌ๋๋ props๊ฐ ๋์ผํฉ๋๋ค. ๋ค์๊ณผ ๊ฐ์ด ๊ณตํต props๋ฅผ ์ถ์ถํ์ฌ ์ฝ๋ ์ค๋ณต์ ์ค์ด๋ ๊ฒ์ ๊ณ ๋ คํด๋ณด์ธ์:+ const commonCardProps = { + crewId, + onLike: (gatheringId: number) => handleLikeAction('like', gatheringId), + onUnlike: (gatheringId: number) => handleLikeAction('unlike', gatheringId), + onModalAction, + }; // ๋ฐ์คํฌํฑ ๋ทฐ - <GatheringCard - crewId={crewId} - {...card} - className="w-full" - onLike={() => handleLikeAction('like', card.id)} - onUnlike={() => handleLikeAction('unlike', card.id)} - onModalAction={onModalAction} - /> + <GatheringCard + {...commonCardProps} + {...card} + className="w-full" + /> // ๋ชจ๋ฐ์ผ ๋ทฐ - <GatheringCard - crewId={crewId} - {...card} - className="w-full" - onLike={() => handleLikeAction('like', card.id)} - onUnlike={() => handleLikeAction('unlike', card.id)} - onModalAction={onModalAction} - /> + <GatheringCard + {...commonCardProps} + {...card} + className="w-full" + />src/app/(crew)/crew/detail/[id]/_components/detail-crew-presenter.tsx (2)
83-92: ๋ฉ๋ด ๋ฒํผ ์ ๊ทผ์ฑ ๊ฐ์ ํ์๋ฒํผ์ ์๋ฏธ์๋ aria-label์ ์ถ๊ฐํ์ฌ ์ ๊ทผ์ฑ์ ๊ฐ์ ํ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.
๋ค์๊ณผ ๊ฐ์ด ์์ ์ ์ ์๋๋ฆฝ๋๋ค:
- <button type="button" className="cursor-pointer"> + <button + type="button" + className="cursor-pointer" + aria-label="ํฌ๋ฃจ ๊ด๋ฆฌ ๋ฉ๋ด" + >
156-169: UI ํ ์คํธ ๋ณ๊ฒฝ ๋ฐ ์ถ๊ฐ ์ ๋ณด ์ ๊ณต์ด ์ ์ ํจ
- "์ฐธ์ฌ์ธ์"์์ "ํฌ๋ฃจ๋ฉค๋ฒ"๋ก์ ๋ณ๊ฒฝ์ด ๋ ๋ช ํํฉ๋๋ค.
- ๋ชจ์ง ์๋ฃ ์ํ ํ์๊ฐ ์๊ฐ์ ์ผ๋ก ์ ๊ตฌํ๋์์ต๋๋ค.
- ํฌ๋ฃจ์ฅ ์ ์ธ ์ค๋ช ์ถ๊ฐ๋ก ์ฌ์ฉ์์ ์ดํด๋๊ฐ ๋์์ก์ต๋๋ค.
ํ๋์ ์์ ์ ์์ฌํญ์ด ์์ต๋๋ค:
ํ ์คํธ๋ฅผ ์์๋ก ๋ถ๋ฆฌํ์ฌ ๊ด๋ฆฌํ๋ฉด ํฅํ ํ ์คํธ ์์ ์ด๋ ๋ค๊ตญ์ด ์ง์ ์ ์ ์ง๋ณด์๊ฐ ๋ ์ฉ์ดํ ๊ฒ ๊ฐ์ต๋๋ค.
const CREW_TEXTS = { CREW_MEMBERS: 'ํฌ๋ฃจ๋ฉค๋ฒ', RECRUITMENT_COMPLETE: '๋ชจ์ง ์๋ฃ', MEMBERS_EXCLUDE_CAPTAIN: 'ํฌ๋ฃจ์ฅ์ ์ ์ธํ ๋ฉค๋ฒ ๋ชฉ๋ก์ ๋๋ค.', } as const;
๐ Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
๐ Files selected for processing (16)
src/_queries/gathering/gathering-detail-queries.ts(1 hunks)src/app/(crew)/crew/create/_components/create-crew-form/index.tsx(1 hunks)src/app/(crew)/crew/detail/[id]/_components/create-gathering/index.tsx(3 hunks)src/app/(crew)/crew/detail/[id]/_components/detail-crew-container.tsx(7 hunks)src/app/(crew)/crew/detail/[id]/_components/detail-crew-presenter.tsx(5 hunks)src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal/container.tsx(4 hunks)src/app/(crew)/crew/detail/[id]/_components/gathering-list-section.tsx(4 hunks)src/app/(crew)/crew/detail/[id]/page.tsx(1 hunks)src/components/common/crew-list/crew-card-list.tsx(1 hunks)src/components/common/crew-list/crew-card.tsx(1 hunks)src/components/common/gathering-card/container.tsx(5 hunks)src/components/common/gathering-card/presenter.tsx(4 hunks)src/components/gathering-list/crew-gathering-list.tsx(4 hunks)src/components/gathering-list/liked-list-container.tsx(2 hunks)src/components/gathering-list/liked-list-presenter.tsx(1 hunks)src/types/crew-card.d.ts(0 hunks)
๐ค Files with no reviewable changes (1)
- src/types/crew-card.d.ts
โ Files skipped from review due to trivial changes (1)
- src/components/gathering-list/liked-list-presenter.tsx
๐ Additional comments (24)
src/_queries/gathering/gathering-detail-queries.ts (1)
6-9: ํจ์ ์๊ทธ๋์ฒ ๋ณ๊ฒฝ์ด ์ ์ ํฉ๋๋ค!
์ต์ ๋ ํ๋ผ๋ฏธํฐ๋ฅผ ์ถ๊ฐํ์ฌ ์ฟผ๋ฆฌ์ ์๋ ์คํ์ ์ ์ดํ ์ ์๊ฒ ๋ ๊ฒ์ด ์ข์ ๊ฐ์ ์ฌํญ์ ๋๋ค. TypeScript์ ํ์ ์์ ์ฑ๋ ์ ์ ์ง๋์์ต๋๋ค.
src/app/(crew)/crew/detail/[id]/page.tsx (2)
Line range hint 26-31: ๋ ์ด์์ ๊ตฌ์กฐ๊ฐ ์ ์ ํฉ๋๋ค.
CreateGathering ์ปดํฌ๋ํธ์ GatheringListSection์ด ์ ์ ํ ๊ณ์ธต ๊ตฌ์กฐ๋ก ๋ฐฐ์น๋์ด ์์ผ๋ฉฐ, ๋ฐ์ํ ๋์์ธ์ ์ํ ํจ๋ฉ๊ณผ ๋๋น ์ค์ ์ด ์ ๋์ด ์์ต๋๋ค.
26-26: ํค๋ ์น์
์ ๊ฑฐ์ ๋ํ ๊ฒํ ๊ฐ ํ์ํฉ๋๋ค.
ํฌ๋ฃจ ์ฝ์ ํค๋๊ฐ ์ ๊ฑฐ๋์ด ์๊ฐ์ ๊ณ์ธต ๊ตฌ์กฐ๊ฐ ๋ถ๋ช ํํด์ง ์ ์์ต๋๋ค. ๋ค๋ฅธ ์น์ ๋ค๊ณผ์ ์ผ๊ด์ฑ์ ์ํด ํค๋์ ์กด์ฌ ์ฌ๋ถ๋ฅผ ์ฌ๊ฒํ ํด ์ฃผ์ธ์.
๋ค์ ์คํฌ๋ฆฝํธ๋ก ๋ค๋ฅธ ์น์ ๋ค์ ํค๋ ๊ตฌ์กฐ๋ฅผ ํ์ธํด๋ณด์ธ์:
โ Verification successful
ํค๋ ์น์ ์ ๊ฑฐ๋ ์ ์ ํ ๋ณ๊ฒฝ์ผ๋ก ํ๋จ๋ฉ๋๋ค.
๊ฒ์ ๊ฒฐ๊ณผ๋ฅผ ๋ถ์ํด๋ณด๋ฉด, ํด๋น ํ์ด์ง์ ๋ค๋ฅธ ์น์ ๋ค๋ ๋ณ๋์ ํค๋ ์์ด ์ปดํฌ๋ํธ๋ฅผ ์ง์ ๋ ๋๋งํ๋ ๊ตฌ์กฐ๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค. CreateGathering ์ปดํฌ๋ํธ๋ ์์ฒด์ ์ผ๋ก ๋ชจ๋ฌ๊ณผ ํผ์ ํฌํจํ๋ ๋ ๋ฆฝ์ ์ธ ๊ตฌ์กฐ๋ฅผ ๊ฐ์ง๊ณ ์์ด, ์ถ๊ฐ์ ์ธ ํค๋ ์น์ ์ด ๋ถํ์ํ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค.
src/app/(crew)/crew/detail/[id]/page.tsx์ ๋ค๋ฅธ ์น์ ๋ค๋ ๋จ์ํ className ์คํ์ผ๋ง๋ง ์ ์ฉ๋ ๊ตฌ์กฐ์ ๋๋ค.- CreateGathering ์ปดํฌ๋ํธ๋
_components/create-gathering/๋๋ ํ ๋ฆฌ์ ์ ๊ตฌ์กฐํ๋์ด ์์ต๋๋ค.
๐ Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: ๋ค๋ฅธ ์น์
์ ํค๋ ๊ตฌ์กฐ ํ์ธ
# ํ๋ก์ ํธ ๋ด์ section ํ๊ทธ ๋ด๋ถ ๊ตฌ์กฐ ๊ฒ์
rg -U "section.*\{.*\}" --type tsx
Length of output: 64
Script:
#!/bin/bash
# ์น์
๊ตฌ์กฐ ๊ฒ์์ ์ํ ์์ ๋ ๋ช
๋ น์ด
rg -U "<section.*>[\s\S]*?</section>" --type ts --type tsx src/
# CreateGathering ์ปดํฌ๋ํธ์ ๊ตฌ์กฐ๋ ํ์ธ
rg -U "CreateGathering" --type ts --type tsx src/
Length of output: 171
Script:
#!/bin/bash
# ์น์
๊ตฌ์กฐ ๊ฒ์์ ์ํ ์์ ๋ ๋ช
๋ น์ด
rg -U "<section" src/
# CreateGathering ์ปดํฌ๋ํธ ๊ด๋ จ ํ์ผ ๊ฒ์
fd . src/ -e tsx -e ts -x rg -l "CreateGathering" {}
Length of output: 1373
src/components/gathering-list/liked-list-container.tsx (1)
5-5: Mantine Loader ์ปดํฌ๋ํธ ์ถ๊ฐ ์น์ธ
UI/UX ํฅ์์ ์ํด ํ ์คํธ ๋์ Mantine์ Loader ์ปดํฌ๋ํธ๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ์ ์ ํฉ๋๋ค.
src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal/container.tsx (2)
17-17: ์ธํฐํ์ด์ค์ ์ฝ๋ฐฑ ํจ์ ์ถ๊ฐ๊ฐ ์ ์ ํฉ๋๋ค.
๋ถ๋ชจ ์ปดํฌ๋ํธ์ ์ํ๋ฅผ ์ ๋ฐ์ดํธํ๊ธฐ ์ํ ์ฝ๋ฐฑ ํจ์์ ์ถ๊ฐ๋ ์ข์ ์ค๊ณ ๊ฒฐ์ ์ ๋๋ค.
24-24: props ๊ตฌ์กฐ ๋ถํด๊ฐ ์ฌ๋ฐ๋ฅด๊ฒ ๊ตฌํ๋์์ต๋๋ค.
์๋ก์ด onUpdate prop์ด ์ปดํฌ๋ํธ ๋งค๊ฐ๋ณ์์ ์ฌ๋ฐ๋ฅด๊ฒ ํฌํจ๋์์ต๋๋ค.
src/app/(crew)/crew/detail/[id]/_components/create-gathering/index.tsx (1)
5-6: ์ฟผ๋ฆฌ ํ
์ํฌํธ๊ฐ ์ ์ ํ ์ถ๊ฐ๋์์ต๋๋ค!
ํฌ๋ฃจ ์์ธ ์ ๋ณด์ ๋ชจ์ ๋ชฉ๋ก์ ๊ฐ์ ธ์ค๊ธฐ ์ํ ์ฟผ๋ฆฌ ํ ์ด ์ ์ถ๊ฐ๋์์ต๋๋ค.
src/app/(crew)/crew/detail/[id]/_components/gathering-list-section.tsx (4)
6-6: ๋ก๋ฉ ์ํ ๊ฐ์ ์ ์ํ Mantine Loader ์ถ๊ฐ
Mantine์ Loader ์ปดํฌ๋ํธ๋ฅผ ์ฌ์ฉํ์ฌ ๋ก๋ฉ ์ํ๋ฅผ ์๊ฐ์ ์ผ๋ก ํํํ๋ ๊ฒ์ ์ข์ ๊ฐ์ ์ ๋๋ค.
18-18: ๋ฐ์ดํฐ ๊ฐฑ์ ์ ์ํ refetch ๊ธฐ๋ฅ ์ถ๊ฐ
์ฟผ๋ฆฌ ํ ์์ refetch ํจ์๋ฅผ ์ถ์ถํ์ฌ ๋ฐ์ดํฐ ๊ฐฑ์ ๊ธฐ๋ฅ์ ๊ตฌํํ ๊ฒ์ด ์ ์ ํฉ๋๋ค.
55-55: ๋ก๋ฉ ์ํ UI ๊ฐ์
ํ ์คํธ ๋์ Loader ์ปดํฌ๋ํธ๋ฅผ ์ฌ์ฉํ์ฌ ์ฌ์ฉ์ ๊ฒฝํ์ด ๊ฐ์ ๋์์ต๋๋ค.
81-81: ๋ชจ๋ฌ ์ก์
prop ์ ๋ฌ ๊ฒ์ฆ
onModalAction prop์ด CrewGatheringList์ ์ ๋ฌ๋์์ต๋๋ค. ์์ ์ปดํฌ๋ํธ์์์ ์ฌ์ฉ์ด ์ ์ ํด ๋ณด์ ๋๋ค.
โ Verification successful
onModalAction prop์ด ์ฌ๋ฐ๋ฅด๊ฒ ๊ตฌํ๋์ด ์์์ ํ์ธํ์ต๋๋ค
CrewGatheringList ์ปดํฌ๋ํธ์ ์ธํฐํ์ด์ค์ ๊ตฌํ์ ํ์ธํ ๊ฒฐ๊ณผ:
- CrewGatheringListProps ์ธํฐํ์ด์ค์
onModalAction: () => voidprop์ด ์ ์๋์ด ์์ต๋๋ค - ์ปดํฌ๋ํธ ๋ด๋ถ์์ ํ์ ์ปดํฌ๋ํธ๋ก ์ฌ๋ฐ๋ฅด๊ฒ ์ ๋ฌ๋๊ณ ์์ต๋๋ค
- gathering-card/container.tsx์์ ์ต์ข ์ ์ผ๋ก ์ฌ์ฉ๋๋ ๊ฒ์ ํ์ธํ์ต๋๋ค
๐ Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# CrewGatheringList ์ปดํฌ๋ํธ์์ onModalAction prop์ ์ฌ์ฉ์ ํ์ธ
ast-grep --pattern 'interface $_ {
$$$
onModalAction?: () => void;
$$$
}'
Length of output: 81
Script:
#!/bin/bash
# CrewGatheringList ์ปดํฌ๋ํธ์ props ์ธํฐํ์ด์ค์ ์ฌ์ฉ์ ํ์ธ
rg -A 5 "CrewGatheringList"
# onModalAction prop์ ์ฌ์ฉ์ ํ์ธํ๊ธฐ ์ํ ์ถ๊ฐ ๊ฒ์
rg "onModalAction"
Length of output: 5283
src/components/common/gathering-card/container.tsx (3)
9-9: ํ์
์ ์ ์ํฌํธ๊ฐ ์ ์ ํ ์ถ๊ฐ๋์์ต๋๋ค!
๋ชจ์ ์์ธ ๋ฐ์ดํฐ ํ์ ์ ๋ช ์์ ์ผ๋ก ์ํฌํธํ์ฌ ํ์ ์์ ์ฑ์ด ํฅ์๋์์ต๋๋ค.
48-55: ์ฟผ๋ฆฌ ์ต์ ํ๊ฐ ์ ๊ตฌํ๋์์ต๋๋ค!
๋ชจ๋ฌ์ด ์ด๋ฆด ๋๋ง ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค๋๋ก enabled: false ์ต์
์ ์ฌ์ฉํ ๊ฒ์ด ์ฑ๋ฅ ์ธก๋ฉด์์ ์ข์ ์ ๊ทผ์
๋๋ค.
104-109: ๋ชจ๋ฌ ์ปจํ
์ด๋ props ์ ๋ฌ์ด ์ ๊ตฌํ๋์์ต๋๋ค!
๋ชจ๋ฌ์ ์ํ ๋ณ๊ฒฝ์ ๋ถ๋ชจ ์ปดํฌ๋ํธ์ ์ ๋ฌํ๊ธฐ ์ํ onUpdate prop์ด ์ ์ ํ ๊ตฌํ๋์์ต๋๋ค.
src/components/common/gathering-card/presenter.tsx (2)
55-55: ์ปจํ
์ด๋ ๋์ด ์กฐ์ ์ด ์ ์ ํด ๋ณด์
๋๋ค!
์นด๋์ ๋์ด๋ฅผ 380px๋ก ์ฆ๊ฐ์ํจ ๊ฒ์ด ์ฝํ ์ธ ๋ฅผ ๋ ์ ํํํ ์ ์๊ฒ ํด์ค๋๋ค.
106-108: ๋ฐ์ํ ๋์์ธ ๊ด๋ จ ์ฃผ์์ฌํญ
์ข์์ ๋ฒํผ์ ์ ๋ ์์น ์ง์ ์ด ๋ค์ํ ํ๋ฉด ํฌ๊ธฐ์์ ๋ฌธ์ ๋ฅผ ์ผ์ผํฌ ์ ์์ต๋๋ค. ์๋์ ์ธ ์์น ์ง์ ์ ๊ณ ๋ คํด๋ณด์ธ์.
โ Verification successful
Let's analyze the component's structure and positioning patterns to verify the responsive design concerns.
์ข์์ ๋ฒํผ์ ์์น ์ค์ ์ด ์ ์ ํฉ๋๋ค
์นด๋ ์ปดํฌ๋ํธ์ ์ ์ฒด ๊ตฌ์กฐ๋ฅผ ๋ถ์ํ ๊ฒฐ๊ณผ, ํ์ฌ ์ข์์ ๋ฒํผ์ ์ ๋ ์์น ์ง์ ์ ๋ฌธ์ ๊ฐ ๋์ง ์์ต๋๋ค:
- ๋ถ๋ชจ ์ปดํฌ๋ํธ๊ฐ ๊ณ ์ ๋ ๋์ด(
h-[380px])๋ฅผ ๊ฐ์ง๊ณ ์์ด ์์ ์ ์ ๋๋ค - ๋ฒํผ์ ์์น๊ฐ ์นด๋ ๋ด๋ถ์ ๋ค๋ฅธ ์์๋ค๊ณผ ์ ์กฐํ๋ฅผ ์ด๋ฃจ๊ณ ์์ต๋๋ค
- ์ฐ์ธก ํ๋จ ๋ฐฐ์น๋ ์ผ๊ด๋ ์ฌ์ฉ์ ๊ฒฝํ์ ์ ๊ณตํฉ๋๋ค
๐ Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check for responsive design related issues
# Search for absolute positioning in other components
rg -l "absolute.*bottom-\[\d+px\]" --type tsx
Length of output: 75
Script:
#!/bin/bash
# Search for absolute positioning with bottom values in all files
rg "absolute.*bottom-\[.*px\]"
# Also check for any Tailwind classes with bottom positioning
rg "bottom-\[.*px\]"
# Check the specific component file
cat "src/components/common/gathering-card/presenter.tsx"
Length of output: 4309
src/app/(crew)/crew/detail/[id]/_components/detail-crew-container.tsx (2)
6-6: ์ํ ๊ด๋ฆฌ์ UI ํผ๋๋ฐฑ์ด ๊ฐ์ ๋์์ต๋๋ค! โจ
Loader ์ปดํฌ๋ํธ์ ๋์
๊ณผ isConfirmed ์ํ ์ถ๊ฐ๋ก ์ฌ์ฉ์ ๊ฒฝํ์ด ํฅ์๋์์ต๋๋ค.
Also applies to: 24-24
149-149: isConfirmed prop์ ์ฌ์ฉ์ ํ์ธํด ์ฃผ์ธ์.
DetailCrewPresenter์ ์ ๋ฌ๋ isConfirmed prop์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ฌ์ฉ๋๊ณ ์๋์ง ํ์ธ์ด ํ์ํฉ๋๋ค.
โ Verification successful
The code shows that isConfirmed prop is properly used in the DetailCrewPresenter component:
- It's correctly defined in the
DetailCrewPresenterPropsinterface as a boolean - It's properly destructured in the component parameters
- It's used in two places:
- Line 54: In
getJoinButtonText()to return "๋ชจ์ง ์๋ฃ" when true - Line 76: To disable the join button when true
- Line 160-165: To show a completion indicator with check icon when true
- Line 54: In
isConfirmed prop์ด ์ฌ๋ฐ๋ฅด๊ฒ ๊ตฌํ๋์ด ์์ต๋๋ค.
DetailCrewPresenter ์ปดํฌ๋ํธ์์ isConfirmed prop์ด ๋ค์๊ณผ ๊ฐ์ด ์ ์ ํ๊ฒ ์ฌ์ฉ๋๊ณ ์์ต๋๋ค:
- ํฌ๋ฃจ ์ฐธ์ฌ ๋ฒํผ์ ํ ์คํธ๋ฅผ "๋ชจ์ง ์๋ฃ"๋ก ํ์
- ํฌ๋ฃจ ์ฐธ์ฌ ๋ฒํผ์ ๋นํ์ฑํ
- ๋ชจ์ง ์๋ฃ ์ํ ํ์ UI ๋ ๋๋ง
๐ Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# DetailCrewPresenter์์ isConfirmed prop์ ์ฌ์ฉ์ ํ์ธํฉ๋๋ค.
ast-grep --pattern $'interface DetailCrewPresenterProps {
$$$
isConfirmed: $_
$$$
}'
ast-grep --pattern $'function DetailCrewPresenter({ $$$, isConfirmed, $$$ }: DetailCrewPresenterProps) {
$$$
}'
Length of output: 20288
src/components/gathering-list/crew-gathering-list.tsx (3)
17-17: ์ธํฐํ์ด์ค ์์ ์ด ์ ์ ํฉ๋๋ค!
onModalAction ์ฝ๋ฐฑ ํจ์์ ํ์
์ด ๋ช
ํํ๊ฒ ์ ์๋์ด ์์ด ํ์
์์ ์ฑ์ด ์ ๋ณด์ฅ๋์ด ์์ต๋๋ค.
26-26: props ๊ตฌ์กฐ๋ถํด๊ฐ ์ฌ๋ฐ๋ฅด๊ฒ ๋์์ต๋๋ค!
์ธํฐํ์ด์ค์ ์ถ๊ฐ๋ onModalAction prop์ด ์ปดํฌ๋ํธ์ ์ ํํ๊ฒ ์ ๋ฌ๋์์ต๋๋ค.
107-107: ๋ชจ๋ฌ ๋์์ ์ผ๊ด์ฑ ๊ฒ์ฆ์ด ํ์ํฉ๋๋ค.
๋ฐ์คํฌํฑ ๋ทฐ์์ GatheringCard๋ก ์ ๋ฌ๋๋ onModalAction ์ฝ๋ฐฑ์ด ์์๋๋ก ๋์ํ๋์ง ํ์ธํด์ฃผ์ธ์.
โ Verification successful
onModalAction prop์ด ์ผ๊ด๋๊ฒ ๊ตฌํ๋์ด ์์์ ํ์ธํ์ต๋๋ค.
๊ฒ์ฆ ๊ฒฐ๊ณผ:
GatheringCard์ปดํฌ๋ํธ๋onModalActionprop์ ์ฌ๋ฐ๋ฅด๊ฒ ์ ์ํ๊ณ ์์ต๋๋ค- ๋ชจ๋ฐ์ผ๊ณผ ๋ฐ์คํฌํฑ ๋ทฐ ๋ชจ๋์์ ๋์ผํ ๋ฐฉ์์ผ๋ก
onModalAction์ ์ ๋ฌํ๊ณ ์์ต๋๋ค - ์์ ์ปดํฌ๋ํธ์์ ํ์ ์ปดํฌ๋ํธ๋ก ์ผ๊ด๋ ์ฝ๋ฐฑ ์ ๋ฌ์ด ํ์ธ๋์์ต๋๋ค
๐ Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# GatheringCard ์ปดํฌ๋ํธ์์ onModalAction prop์ ์ฌ์ฉ์ ํ์ธ
ast-grep --pattern 'interface GatheringCardProps {
$$$
onModalAction: $_;
$$$
}'
Length of output: 88
Script:
#!/bin/bash
# GatheringCard ์ปดํฌ๋ํธ์ props ์ธํฐํ์ด์ค์ ์ฌ์ฉ ํจํด ๊ฒ์
rg -A 5 "interface GatheringCardProps"
# onModalAction prop์ ์ฌ์ฉ ํจํด ๊ฒ์
rg -A 3 "onModalAction"
# GatheringCard ์ปดํฌ๋ํธ ๊ตฌํ ๊ฒ์
ast-grep --pattern 'const GatheringCard = ({ $$$, onModalAction, $$$ }: GatheringCardProps) => {
$$$
}'
Length of output: 3110
src/app/(crew)/crew/detail/[id]/_components/detail-crew-presenter.tsx (3)
19-19: Props ์ธํฐํ์ด์ค์ isConfirmed ์ถ๊ฐ ์ ์
isConfirmed ํ๋กํผํฐ ์ถ๊ฐ๋ฅผ ํตํด ๋ชจ์ง ์๋ฃ ์ํ๋ฅผ ๋ช
ํํ๊ฒ ๊ด๋ฆฌํ ์ ์๊ฒ ๋์์ต๋๋ค.
Line range hint 54-58: getJoinButtonText ํจ์์ ์กฐ๊ฑด๋ถ ๋ก์ง์ด ๋ช
ํํจ
๋ฒํผ ํ ์คํธ ์ํ ๋ณ๊ฒฝ ๋ก์ง์ด ์ฐ์ ์์์ ๋ง๊ฒ ์ ๊ตฌ์ฑ๋์ด ์์ต๋๋ค:
- ๋ชจ์ง ์๋ฃ
- ์ฐธ์ฌ ์๋ฃ
- ์ฐธ์ฌ ์ค
- ๊ธฐ๋ณธ ์ํ
76-76: ๋ฒํผ ๋นํ์ฑํ ์กฐ๊ฑด์ isConfirmed ์ถ๊ฐ ์ ์
๋ชจ์ง์ด ์๋ฃ๋ ๊ฒฝ์ฐ์๋ ๋ฒํผ์ด ๋นํ์ฑํ๋๋๋ก ํ์ฌ ์ฌ์ฉ์ ๊ฒฝํ์ด ๊ฐ์ ๋์์ต๋๋ค.
| const { data: gatheringList, isLoading, error, refetch } = useGetGatheringListQuery(crewId); | ||
|
|
||
| // totalGatheringCount ์ถ์ถ | ||
| const totalGatheringCount = gatheringList?.length ?? 0; |
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.
๐ ๏ธ Refactor suggestion
๋ก๋ฉ ๋ฐ ์๋ฌ ์ํ ์ฒ๋ฆฌ ๊ฐ์ ์ด ํ์ํฉ๋๋ค.
ํ์ฌ isLoading๊ณผ error ์ํ๋ฅผ ๊ฐ์ ธ์ค๊ณ ์์ง๋ง ์ค์ ๋ก ์ฌ์ฉ๋์ง ์๊ณ ์์ต๋๋ค. ๋ค์๊ณผ ๊ฐ์ ๊ฐ์ ์ฌํญ์ ์ ์๋๋ฆฝ๋๋ค:
const { data: gatheringList, isLoading, error, refetch } = useGetGatheringListQuery(crewId);
const totalGatheringCount = gatheringList?.length ?? 0;
+ if (error) {
+ return <div>๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์ค๋ ์ค ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.</div>;
+ }
+
+ if (isLoading) {
+ return <div>๋ก๋ฉ ์ค...</div>;
+ }Committable suggestion skipped: line range outside the PR's diff.
| const router = useRouter(); | ||
| const [opened, { open, close }] = useDisclosure(false); | ||
|
|
||
| const { data: gatheringList, isLoading, error, refetch } = useGetGatheringListQuery(crewId); |
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.
๐ก Codebase verification
๋ชจ์ ์์ฑ ํ refetch๊ฐ ํธ์ถ๋์ง ์๋ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
ํ์ฌ ์ฝ๋์์ ๋ชจ์์ด ์์ฑ๋ ํ refetch()๊ฐ ํธ์ถ๋์ง ์์ ๋ชฉ๋ก์ด ์๋์ผ๋ก ๊ฐฑ์ ๋์ง ์์ต๋๋ค. CreateGatheringModalContainer์ mutate ํธ์ถ ์ onSuccess ์ฝ๋ฐฑ์ ํตํด refetch()๋ฅผ ํธ์ถํ๋๋ก ์์ ์ด ํ์ํฉ๋๋ค.
src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-modal/container.tsx:mutateํธ์ถ ์onSuccess์ฝ๋ฐฑ ์ถ๊ฐ ํ์
๐ Analysis chain
refetch ํจ์์ ์ฌ์ฉ์ฑ ๊ฒ์ฆ์ด ํ์ํฉ๋๋ค.
refetch ํจ์๊ฐ ๋ชจ์์ด ์์ฑ๋ ํ์ ์ ์ ํ ํธ์ถ๋๋์ง ํ์ธ์ด ํ์ํฉ๋๋ค.
๐ Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check if refetch is called after gathering creation
ast-grep --pattern 'CreateGatheringModalContainer {
$$$
onSuccess={() => {
$$$
refetch();
$$$
}}
$$$
}'
Length of output: 125
Script:
#!/bin/bash
# Search for CreateGatheringModalContainer component and its usage
rg "CreateGatheringModalContainer" -A 10
# Search for any usage of refetch in the file
rg "refetch" "src/app/(crew)/crew/detail/[id]/_components/create-gathering/index.tsx" -A 5
Length of output: 5526
Script:
#!/bin/bash
# Search for the container component implementation to check mutation handling
rg -A 20 "useCreateGatheringQuery" "src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-modal/container.tsx"
# Search for any onSuccess handlers in the modal container
rg "onSuccess" "src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-modal/container.tsx" -A 5
Length of output: 1366
| {crewDataList.map((inform) => { | ||
| // MainCrewList์์๋ง isConfirmed ๊ณ์ฐ | ||
| const isConfirmed = | ||
| inWhere !== 'my-crew' && | ||
| (inform as MainCrewList).participantCount !== undefined && | ||
| (inform as MainCrewList).totalCount !== undefined && | ||
| (inform as MainCrewList).participantCount === (inform as MainCrewList).totalCount; | ||
|
|
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.
๐ ๏ธ Refactor suggestion
ํ์ ์์ ์ฑ ๊ฐ์ ์ด ํ์ํฉ๋๋ค
ํ์ฌ ๊ตฌํ์์ ํ์ ์บ์คํ ์ ์ฌ๋ฌ ๋ฒ ์ฌ์ฉํ๊ณ ์์ด ์ฝ๋๊ฐ ์ฅํฉํ๊ณ ํ์ ์์ ์ฑ์ด ๋จ์ด์ง๋๋ค. ํ์ ๊ฐ๋๋ฅผ ์ฌ์ฉํ์ฌ ๋ ์์ ํ๊ณ ๊ฐ๊ฒฐํ๊ฒ ๊ตฌํํ ์ ์์ต๋๋ค.
- {crewDataList.map((inform) => {
- const isConfirmed =
- inWhere !== 'my-crew' &&
- (inform as MainCrewList).participantCount !== undefined &&
- (inform as MainCrewList).totalCount !== undefined &&
- (inform as MainCrewList).participantCount === (inform as MainCrewList).totalCount;
+ {crewDataList.map((inform) => {
+ const isMainCrewList = (item: MainCrewList | MyCrewList): item is MainCrewList =>
+ 'participantCount' in item && 'totalCount' in item;
+
+ const isConfirmed =
+ inWhere !== 'my-crew' &&
+ isMainCrewList(inform) &&
+ inform.participantCount === inform.totalCount;๐ Committable suggestion
โผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| {crewDataList.map((inform) => { | |
| // MainCrewList์์๋ง isConfirmed ๊ณ์ฐ | |
| const isConfirmed = | |
| inWhere !== 'my-crew' && | |
| (inform as MainCrewList).participantCount !== undefined && | |
| (inform as MainCrewList).totalCount !== undefined && | |
| (inform as MainCrewList).participantCount === (inform as MainCrewList).totalCount; | |
| {crewDataList.map((inform) => { | |
| const isMainCrewList = (item: MainCrewList | MyCrewList): item is MainCrewList => | |
| 'participantCount' in item && 'totalCount' in item; | |
| const isConfirmed = | |
| inWhere !== 'my-crew' && | |
| isMainCrewList(inform) && | |
| inform.participantCount === inform.totalCount; |
| participantCount={ | ||
| inWhere === 'my-crew' | ||
| ? (inform as MyCrewList)?.currentCount | ||
| : (inform as MainCrewList)?.participantCount | ||
| } | ||
| totalGatheringCount={ | ||
| inWhere === 'my-crew' | ||
| ? (inform as MyCrewList)?.totalGathering | ||
| : (inform as MainCrewList)?.totalGatheringCount | ||
| } |
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.
๐ ๏ธ Refactor suggestion
ํ์ ๋ถ๊ธฐ ๋ก์ง ๊ฐ์ ์ด ํ์ํฉ๋๋ค
ํ์ฌ ์ฌ๋ฌ ํ๋กํผํฐ์์ ๋ฐ๋ณต๋๋ ํ์ ๋ถ๊ธฐ ๋ก์ง์ ๋จ์ํํ ์ ์์ต๋๋ค. ์์์์ ํ์ ์ ๋ฏธ๋ฆฌ ํ์ธํ์ฌ ์ฝ๋๋ฅผ ๋ ๊น๋ํ๊ฒ ๋ง๋ค ์ ์์ต๋๋ค.
+ const crewData = inWhere === 'my-crew'
+ ? inform as MyCrewList
+ : inform as MainCrewList;
+
<CrewCard
// ...
participantCount={
- inWhere === 'my-crew'
- ? (inform as MyCrewList)?.currentCount
- : (inform as MainCrewList)?.participantCount
+ inWhere === 'my-crew'
+ ? crewData.currentCount
+ : crewData.participantCount
}
totalGatheringCount={
- inWhere === 'my-crew'
- ? (inform as MyCrewList)?.totalGathering
- : (inform as MainCrewList)?.totalGatheringCount
+ inWhere === 'my-crew'
+ ? crewData.totalGathering
+ : crewData.totalGatheringCount
}Committable suggestion skipped: line range outside the PR's diff.
| if (data) { | ||
| // confirmed ์ํ ๊ณ์ฐ | ||
| if (data.participantCount !== undefined && data.totalCount !== undefined) { | ||
| setIsConfirmed(data.participantCount === data.totalCount); | ||
| } | ||
|
|
||
| // Captain ๋ฐ ๋ฉค๋ฒ ์ฌ๋ถ ํ์ธ (currentUserId ํ์) | ||
| if (currentUserId) { | ||
| const captain = data.crewMembers.find((member) => member.captain); | ||
| const memberExists = data.crewMembers.some((member) => member.id === currentUserId); | ||
|
|
||
| setIsCaptain(captain?.id === currentUserId); | ||
| setIsMember(memberExists); | ||
| setIsCaptain(captain?.id === currentUserId); | ||
| setIsMember(memberExists); | ||
| } |
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.
๐ ๏ธ Refactor suggestion
๋ฐ์ดํฐ ์ ํจ์ฑ ๊ฒ์ฌ๋ฅผ ๊ฐํํด ์ฃผ์ธ์.
ํ์ฌ ๊ตฌํ์์ ๋ช ๊ฐ์ง ๊ฐ์ ์ด ํ์ํ ๋ถ๋ถ์ด ์์ต๋๋ค:
data.participantCount์data.totalCount๊ฐ undefined์ผ ๋์ ๊ธฐ๋ณธ๊ฐ ์ฒ๋ฆฌ๊ฐ ์์ต๋๋ค.crewMembers๋ฐฐ์ด์ด undefined์ผ ๊ฒฝ์ฐ์ ๋ํ ์ฒ๋ฆฌ๊ฐ ํ์ํฉ๋๋ค.
๋ค์๊ณผ ๊ฐ์ด ๊ฐ์ ํด ๋ณด์ธ์:
useEffect(() => {
if (data) {
- if (data.participantCount !== undefined && data.totalCount !== undefined) {
+ const participantCount = data.participantCount ?? 0;
+ const totalCount = data.totalCount ?? 0;
- setIsConfirmed(data.participantCount === data.totalCount);
+ setIsConfirmed(participantCount === totalCount);
- }
if (currentUserId) {
+ const crewMembers = data.crewMembers ?? [];
- const captain = data.crewMembers.find((member) => member.captain);
+ const captain = crewMembers.find((member) => member.captain);
- const memberExists = data.crewMembers.some((member) => member.id === currentUserId);
+ const memberExists = crewMembers.some((member) => member.id === currentUserId);
setIsCaptain(captain?.id === currentUserId);
setIsMember(memberExists);
}
}
}, [currentUserId, data]);๐ Committable suggestion
โผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| if (data) { | |
| // confirmed ์ํ ๊ณ์ฐ | |
| if (data.participantCount !== undefined && data.totalCount !== undefined) { | |
| setIsConfirmed(data.participantCount === data.totalCount); | |
| } | |
| // Captain ๋ฐ ๋ฉค๋ฒ ์ฌ๋ถ ํ์ธ (currentUserId ํ์) | |
| if (currentUserId) { | |
| const captain = data.crewMembers.find((member) => member.captain); | |
| const memberExists = data.crewMembers.some((member) => member.id === currentUserId); | |
| setIsCaptain(captain?.id === currentUserId); | |
| setIsMember(memberExists); | |
| setIsCaptain(captain?.id === currentUserId); | |
| setIsMember(memberExists); | |
| } | |
| if (data) { | |
| const participantCount = data.participantCount ?? 0; | |
| const totalCount = data.totalCount ?? 0; | |
| setIsConfirmed(participantCount === totalCount); | |
| if (currentUserId) { | |
| const crewMembers = data.crewMembers ?? []; | |
| const captain = crewMembers.find((member) => member.captain); | |
| const memberExists = crewMembers.some((member) => member.id === currentUserId); | |
| setIsCaptain(captain?.id === currentUserId); | |
| setIsMember(memberExists); | |
| } | |
| } |
| className="text-base font-semibold text-gray-800 md:text-xl" | ||
| > | ||
| ๋ชจ์ง ์ ์์ ์ ํํด์ฃผ์ธ์. | ||
| ํฌ๋ฃจ ์ต๋ ์ธ์์ ์ ํํด์ฃผ์ธ์. |
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.
๐ก Codebase verification
์ฉ์ด ํต์ผ์ด ํ์ํ ๋ถ๋ถ์ด ํ์ธ๋์์ต๋๋ค.
๊ฒ์ ๊ฒฐ๊ณผ๋ฅผ ํตํด ๋ค์๊ณผ ๊ฐ์ ๋ถ์ผ์น ์ฌํญ์ด ๋ฐ๊ฒฌ๋์์ต๋๋ค:
-
src/app/(crew)/crew/create/_components/create-crew-form/index.tsx- placeholder์ ์ฌ์ ํ "์์ธํ ๋ชจ์ง ์ ์์ ์ ๋ ฅํด์ฃผ์ธ์" ๋ฌธ๊ตฌ๊ฐ ๋จ์์์ต๋๋ค.
-
src/app/(crew)/crew/detail/[id]/_components/create-gathering/create-gathering-form/index.tsx- "๋ชจ์ง ์ ์" ๊ด๋ จ ๋ฌธ๊ตฌ๊ฐ 3๊ณณ์์ ์ฌ์ฉ๋๊ณ ์์ต๋๋ค.
- ์ด๋ ๋ชจ์ ์์ฑ ํผ์ด๋ฏ๋ก, "ํฌ๋ฃจ ์ต๋ ์ธ์"์ด ์๋ "๋ชจ์ง ์ ์"์ด๋ผ๋ ์ฉ์ด๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ๋ ์ ์ ํ ์ ์์ต๋๋ค.
ํฌ๋ฃจ์ ๋ชจ์์ ์๋ก ๋ค๋ฅธ ๊ฐ๋ ์ด๋ฏ๋ก, ๊ฐ๊ฐ์ ์ปจํ ์คํธ์ ๋ง๋ ์ฉ์ด๋ฅผ ์ฌ์ฉํ๋ ์ผ๊ด์ฑ ์๊ฒ ์ ์ฉํ๋ ๊ฒ์ด ์ข๊ฒ ์ต๋๋ค:
- ํฌ๋ฃจ ์์ฑ/์์ ์: "ํฌ๋ฃจ ์ต๋ ์ธ์"
- ๋ชจ์ ์์ฑ/์์ ์: "๋ชจ์ง ์ ์"
๐ Analysis chain
์ฉ์ด ๋ณ๊ฒฝ์ด ์ผ๊ด์ฑ ์๊ฒ ์ ์ฉ๋์๋์ง ํ์ธ์ด ํ์ํฉ๋๋ค.
๋ผ๋ฒจ๊ณผ ์๋ฌ ๋ฉ์์ง์ ์ฉ์ด๊ฐ "๋ชจ์ง ์ ์"์์ "ํฌ๋ฃจ ์ต๋ ์ธ์"์ผ๋ก ๋ณ๊ฒฝ๋์์ต๋๋ค. ์ด๋ PR์ ๋ชฉ์ ์ ๋ถํฉํ๋ ๋ณ๊ฒฝ์ฌํญ์ด์ง๋ง, ๋ค์ ์ฌํญ๋ค์ ํ์ธํด์ฃผ์๊ธฐ ๋ฐ๋๋๋ค:
- NumberInput ์ปดํฌ๋ํธ์ placeholder์๋ "์์ธํ ๋ชจ์ง ์ ์์ ์ ๋ ฅํด์ฃผ์ธ์"๋ผ๋ ๋ฌธ๊ตฌ๊ฐ ์๋๋ฐ, ์ด ๋ถ๋ถ๋ ์ผ๊ด์ฑ ์๊ฒ ๋ณ๊ฒฝ์ด ํ์ํด ๋ณด์ ๋๋ค.
- ๋ค๋ฅธ ๊ด๋ จ ์ปดํฌ๋ํธ๋ ํ์ด์ง์์๋ ๋์ผํ ์ฉ์ด๋ก ํต์ผ์ด ๋์ด์๋์ง ํ์ธ์ด ํ์ํฉ๋๋ค.
Also applies to: 296-296
๐ Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check for inconsistent terminology across the codebase
# Search for any remaining instances of "๋ชจ์ง ์ ์"
rg "๋ชจ์ง\s*์ ์"
# Search for new terminology "ํฌ๋ฃจ ์ต๋ ์ธ์"
rg "ํฌ๋ฃจ\s*์ต๋\s*์ธ์"
Length of output: 744
|
๐storybook: https://67206cc6ff9d7a05a3528ff8-ggtdkxdtbd.chromatic.com/ |
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.
Actionable comments posted: 0
๐งน Outside diff range and nitpick comments (1)
src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal/gathering-detail-modal.stories.tsx (1)
53-58: ๋ชจ๋ฌ ์ปจํ ์ด๋์ ์ ๋ฐ์ดํธ ๊ธฐ๋ฅ์ด ์ฌ๋ฐ๋ฅด๊ฒ ์ฐ๊ฒฐ๋์์ต๋๋ค.์๋ก์ด
onUpdateprop์ด ๊ธฐ์กด props์ ํจ๊ป ์ ๊ตฌ์ฑ๋์ด ์์ต๋๋ค. ํ์ง๋ง ์คํ ๋ฆฌ์ args์๋ ์ด ์๋ก์ด prop์ ๋ํ ์ค๋ช ์ด๋ ์์๊ฐ ์์ผ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.๋ค์๊ณผ ๊ฐ์ด ๊ฐ ์คํ ๋ฆฌ์ args์ onUpdate ์์๋ฅผ ์ถ๊ฐํ๋ ๊ฒ์ ๊ณ ๋ คํด๋ณด์ธ์:
ModalWithUser.args = { opened: false, + onUpdate: () => { + console.log('๋ชจ๋ฌ ์ ๋ฐ์ดํธ ์๋ฃ'); + }, data: { // ... existing data } };
๐ Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
๐ Files selected for processing (2)
src/app/(crew)/crew/detail/[id]/_components/detail-crew.stories.tsx(0 hunks)src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal/gathering-detail-modal.stories.tsx(1 hunks)
๐ค Files with no reviewable changes (1)
- src/app/(crew)/crew/detail/[id]/_components/detail-crew.stories.tsx
๐ Additional comments (1)
src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal/gathering-detail-modal.stories.tsx (1)
46-48: ์
๋ฐ์ดํธ ํธ๋ค๋ฌ๊ฐ ์ ์ ํ ๊ตฌํ๋์์ต๋๋ค.
Storybook action์ ์ฌ์ฉํ์ฌ ์ ๋ฐ์ดํธ ์ด๋ฒคํธ๋ฅผ ์ถ์ ํ๋ ๊ฒ์ด ์ข์ ์ ๊ทผ ๋ฐฉ์์ ๋๋ค. ๋ค๋ฅธ ํธ๋ค๋ฌ๋ค๊ณผ ์ผ๊ด๋ ํจํด์ ์ ์งํ๊ณ ์์ต๋๋ค.
|
๐storybook: https://67206cc6ff9d7a05a3528ff8-nswizifxuc.chromatic.com/ |
|
๐storybook: https://67206cc6ff9d7a05a3528ff8-kveuglutag.chromatic.com/ |
๐ Issue Ticket
#146
โ๏ธ Description
โ Checklist
PR
Test
Summary by CodeRabbit
๋ฆด๋ฆฌ์ค ๋ ธํธ
์๋ก์ด ๊ธฐ๋ฅ
GatheringDetailModalContainer์ ์ ๋ฐ์ดํธ ํ ์ฝ๋ฐฑ ๊ธฐ๋ฅ ์ถ๊ฐ.GatheringCard์CrewGatheringList์ ๋ชจ๋ฌ ์์ ๊ธฐ๋ฅ ์ถ๊ฐ.CreateGathering์ปดํฌ๋ํธ์์ ๋ชจ์ ์๋ฅผ ์ค์๊ฐ์ผ๋ก ํ์.DetailCrewPresenter์ ํฌ๋ฃจ ๋ฉค๋ฒ ํ์ธ ์ํ ์ถ๊ฐ.CreateCrewForm์์ ํ๋ ๋ ์ด๋ธ ๋ฐ ์ ํจ์ฑ ๊ฒ์ฌ ๋ฉ์์ง ๋ณ๊ฒฝ.GatheringListSection์์ ๋ฐ์ดํฐ ์๋ก ๊ณ ์นจ ๊ธฐ๋ฅ ์ถ๊ฐ.LikedList์ปดํฌ๋ํธ์์ ๋ก๋ฉ ์ํ์ ๋ก๋ ์ปดํฌ๋ํธ ์ถ๊ฐ.๋ฒ๊ทธ ์์
UI ๊ฐ์
GatheringCard์ ๋ ์ด์์ ๋ฐ ์คํ์ผ ์กฐ์ .