Skip to content

Conversation

@KYM-P
Copy link
Collaborator

@KYM-P KYM-P commented Jan 23, 2026

PR 개요

이슈 번호: #1214

PR 체크리스트

  • Code convention을 잘 지켰나요?
  • Lint check를 수행하였나요?
  • Assignees를 추가했나요?

작업사항

  • 버그 수정
  • 신규 기능
  • 코드 스타일 수정 (포맷팅 등)
  • 리팩토링 (기능 수정 X, API 수정 X)
  • 기타

작업사항의 상세한 설명

분실물 게시글 수정 api 에 잘못된 요청을 수정했습니다.

  • 이미지 삭제 리스트를 List 형태로 바꾸었습니다.
  • 이미지 추가 리스트의 request field name 을 new_images 로 수정했습니다.

분실물 작성 에서의 ui component 를 공용 component 로 이동했습니다.

  • 작성, 수정에서 동시에 사용하기에 write 가 아닌 edit 으로 명칭을 변경한 후 공용 component 로 수정했습니다.

분실물 수정 기능을 추가했습니다.

  • 분실물 수정은 분실물이 not found 상태에서만 가능합니다.
  • uploadImage 를 신규 usecase 로 대체했습니다.

논의 사항

스크린샷

Screenshot_20260123_161003

추가내용

  • develop, sprint 브랜치를 향하고 있습니다
  • production 브랜치를 향하고 있습니다

@KYM-P KYM-P requested a review from a team as a code owner January 23, 2026 07:10
@github-actions github-actions bot added campus BCSD campus ream feature labels Jan 23, 2026
@KYM-P KYM-P self-assigned this Jan 23, 2026
Copy link
Member

@kongwoojin kongwoojin 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 169 to 170
onModifyArticleClick = {
navigateToModify(uiState.id)
Copy link
Member

Choose a reason for hiding this comment

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

외부 변수를 사용하고 있으니 메모이제이션 처리를 하면 좋을 것 같습니다

Comment on lines 178 to 180
val fileType =
context.contentResolver.getType(uri)
?: "image/${fileName.split(".").last()}"
Copy link
Member

Choose a reason for hiding this comment

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

이미지가 아닌 파일을 업로드 시도하는 경우 어떻게 되나요?

Copy link
Collaborator Author

@KYM-P KYM-P Jan 23, 2026

Choose a reason for hiding this comment

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

fileType.startsWith("image/") 으로 판단해서 image 인 경우만 하도록 하겠습니다.
type 이 null 인 경우는 그냥 무시하는게 나으려나요?

Copy link
Member

Choose a reason for hiding this comment

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

이미지가 아닙니다 같은 처리로 가능할 것 같습니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nullable 로 바꾸었습니다. null 일 경우 image 로 판단하지 않고 false 로 판단하여 등록되지 않습니다.
등록되지 않으면 toast message 를 올려줍니다.

Comment on lines 36 to 47
) : ViewModel(),
ContainerHost<LostAndFoundModifyState, LostAndFoundModifySideEffect> {
override val container =
container<LostAndFoundModifyState, LostAndFoundModifySideEffect>(
LostAndFoundModifyState(),
savedStateHandle
) {
val articleId = savedStateHandle.get<Int>(ARTICLE_ID)
checkNotNull(articleId)
fetchLostAndFoundDetail(articleId)
}
private var originImages: List<ArticleLostAndFound.ArticleLostAndFoundImage> = emptyList()
Copy link
Member

Choose a reason for hiding this comment

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

코드 포맷팅이 이상하네요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

container 말씀하시는거죠? 일단 container 고치도록 하겠습니다.

@KYM-P KYM-P requested a review from kongwoojin January 23, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

campus BCSD campus ream feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants