Skip to content

chore: 분실물 진입점 수정#341

Merged
hgjwilly-koreatech merged 2 commits intodevelopfrom
chore/noticelist
Jan 24, 2026
Merged

chore: 분실물 진입점 수정#341
hgjwilly-koreatech merged 2 commits intodevelopfrom
chore/noticelist

Conversation

@hgjwilly-koreatech
Copy link
Copy Markdown
Contributor

#️⃣연관된 이슈

📝작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)

분실물 진입점을 수정했습니다.

  • 게시판 목록에서 분실물을 삭제했습니다.
  • 딥링크 로직을 수정했습니다.

스크린샷 (선택)

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the lost item entry point from the notice board list and updates the deep link logic to navigate directly to the dedicated LostItemListViewController instead of the notice board view.

Changes:

  • Removed the lostItem case from the NoticeListType enum and adjusted the indices of remaining cases
  • Removed the write button visibility logic that was specific to the lost item notice type
  • Updated deep link handling to use LostItemListViewController instead of NoticeListViewController when navigating to /articles/lost-item

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Koin/Domain/Model/NoticeList/NoticeListType.swift Removed lostItem enum case and adjusted indices for remaining cases (all shifted down by 1)
Koin/Presentation/Notice/NoticeList/NoticeListViewController.swift Removed write button visibility logic that was conditional on lostItem notice type
Koin/Apps/SceneDelegate.swift Updated deep link handling in two methods to instantiate LostItemListViewController with proper dependencies instead of NoticeListViewController

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +36 to +41
let userRepository = DefaultUserRepository(service: DefaultUserService())
let lostItemRepository = DefaultLostItemRepository(service: DefaultLostItemService())
let checkLoginUseCase = DefaultCheckLoginUseCase(userRepository: userRepository)
let fetchLostItemItemUseCase = DefaultFetchLostItemListUseCase(repository: lostItemRepository)
let viewModel = LostItemListViewModel(checkLoginUseCase: checkLoginUseCase, fetchLostItemListUseCase: fetchLostItemItemUseCase)
let viewController = LostItemListViewController(viewModel: viewModel)
Copy link

Copilot AI Jan 24, 2026

Choose a reason for hiding this comment

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

There's code duplication between handleIncomingDeepLink (lines 36-41) and the scene continue userActivity method (lines 53-58). Both create identical instances of the same repositories, use cases, view model, and view controller. Consider extracting this duplicated logic into a private helper method to improve maintainability and reduce code duplication.

Copilot uses AI. Check for mistakes.
@hgjwilly-koreatech hgjwilly-koreatech merged commit b69790c into develop Jan 24, 2026
6 checks passed
@hgjwilly-koreatech hgjwilly-koreatech deleted the chore/noticelist branch January 24, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CHORE 그 외 수정 내용

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants