Skip to content

[캠퍼스] 분실물 상세 페이지 및 최근 분실물 컴포넌트 구현#1131

Merged
ff1451 merged 11 commits intofeat/lost-item-sprintfrom
feat/#1128/lost-item-page
Jan 19, 2026
Merged

[캠퍼스] 분실물 상세 페이지 및 최근 분실물 컴포넌트 구현#1131
ff1451 merged 11 commits intofeat/lost-item-sprintfrom
feat/#1128/lost-item-page

Conversation

@ff1451
Copy link
Contributor

@ff1451 ff1451 commented Jan 18, 2026

What is this PR? 🔍

Changes 📝

  • 최근 분실물 리스트 컴포넌트 구현
  • useInfiniteScroll 훅 구현
  • 기존 분실물 상세 페이지 수정 및 동적 메타태그 적용

Precaution

작업 완료하고 보니 PR이 너무 커져서 3개로 나누어 올리게 되었습니다. 미리 나누지 못한 점 죄송합니다...

Related PRs

✔️ Please check if the PR fulfills these requirements

  • It's submitted to the correct branch, not the develop branch unconditionally?
  • If on a hotfix branch, ensure it targets main?
  • There are no warning message when you run yarn lint

@ff1451 ff1451 changed the title feat: 분실물 상세 페이지 및 최근 분실물 컴포넌트 구현 [캠퍼스] 분실물 상세 페이지 및 최근 분실물 컴포넌트 구현 Jan 18, 2026
@ff1451 ff1451 self-assigned this Jan 18, 2026
@ff1451 ff1451 added the ✨ Feature 기능 개발 label Jan 18, 2026
@github-actions github-actions bot deleted the branch feat/lost-item-sprint January 19, 2026 07:59
@github-actions github-actions bot closed this Jan 19, 2026
@ff1451 ff1451 reopened this Jan 19, 2026
@ff1451 ff1451 changed the base branch from feat/#1128/lost-item-ui to feat/lost-item-sprint January 19, 2026 07:59
@ff1451 ff1451 changed the base branch from feat/lost-item-sprint to feat/#1128/lost-item-ui January 19, 2026 08:00
Copy link
Contributor

@dooohun dooohun left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

Comment on lines +19 to +30
<Head>
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />
<meta property="og:type" content="article" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={image} />
</Head>
Copy link
Contributor

Choose a reason for hiding this comment

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

좋습니다👍 필요한 메타 데이터들을 잘 넣은 거 같아요!

options: UseInfiniteScrollOptions = {},
) => {
const { threshold = 0.3, enabled = true } = options;
const observerRef = useRef<HTMLDivElement>(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const observerRef = useRef<HTMLDivElement>(null);
const observerRef = useRef<HTMLElement>(null);

좀 더 상위 타입을 사용하는 게 좋을 거 같아요.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

0c88d5a

수정했습니다!

Comment on lines 88 to 95
if (token) {
onSuccess();
} else {
portalManager.open((portalOption) => (
<LoginRequiredModal title={modalTitle} description="로그인 후 이용해주세요." onClose={portalOption.close} />
));
}
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (token) {
onSuccess();
} else {
portalManager.open((portalOption) => (
<LoginRequiredModal title={modalTitle} description="로그인 후 이용해주세요." onClose={portalOption.close} />
));
}
};
if (token) {
onSuccess();
return;
}
portalManager.open((portalOption) => (
<LoginRequiredModal title={modalTitle} description="로그인 후 이용해주세요." onClose={portalOption.close} />
));
}
};

사소하지만 else 대신 return하는게 좋을 거 같습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

d6b8904

아래 내용과 함께 수정했습니다!

Comment on lines 109 to 114
if (isMobile) {
navigate(ROUTES.ArticlesReport({ id: String(articleId), isLink: true }));
} else {
openReportModal();
}
});
Copy link
Contributor

Choose a reason for hiding this comment

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

요기도 early-return으로

@ff1451 ff1451 changed the base branch from feat/#1128/lost-item-ui to feat/lost-item-sprint January 19, 2026 16:26
@ff1451 ff1451 merged commit cb28be7 into feat/lost-item-sprint Jan 19, 2026
@github-actions github-actions bot deleted the feat/#1128/lost-item-page branch January 19, 2026 16:31
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.

2 participants