Skip to content

[REFACTOR] 홈 화면 로직 변경#239

Open
kwonminsooo wants to merge 2 commits into
developfrom
feat/#238-home-edit-api
Open

[REFACTOR] 홈 화면 로직 변경#239
kwonminsooo wants to merge 2 commits into
developfrom
feat/#238-home-edit-api

Conversation

@kwonminsooo

Copy link
Copy Markdown
Collaborator

📌 PR 개요

  • 스티커 배치 · 배경색 변경을 각각 저장하던 API를 홈 화면 편집(PUT /home/edit) 하나로 통합하고, 더 이상 쓰이지 않는 기존 코드 정리
image

🛠 변경 사항

  • PUT /home/edit에서 배경색 변경 + 스티커 배치를 한 번에 저장하도록 통합 (HomeController, HomeService.editHome, HomeEditRequest)
  • 기존 개별 API 및 관련 코드 삭제
    • StickerController/StickerService/StickerServiceImpl 및 관련 요청·응답 DTO
    • SettingControllerPATCH /users/me/homecolor, SettingService.updateHomeColor() 및 관련 DTO
    • 더 이상 참조되지 않는 StickerErrorCode, HomeColorErrorCode, UserStickerImageQueryRepository

테스트

  • HomeControllerTest 추가: 배경색+스티커 동시 저장, 신규 유저 설정 자동 생성, 재저장 시 기존 스티커 완전 교체, 잘못된 색상 포맷 400, 존재하지 않는 이미지 참조 에러, 미인증 401

⚠️ 리뷰 시 참고 사항

  • 스티커 저장 방식이 "부분 수정"에서 "요청받은 목록으로 전체 교체"(deleteAllByUserId 후 재생성)로 바뀌었는데, 프론트에서 매번 스티커 전체 목록을 보내는 흐름으로 맞춰졌는지 확인 필요
  • 삭제된 스티커/배경색 개별 API를 프론트엔드 등 다른 클라이언트에서 아직 호출하고 있지 않은지 확인 필요

✅ 체크리스트

  • [] 로컬에서 정상 실행됨
  • [] 로그 / 네이밍 정리
  • [] main / develop 직접 커밋 아님

@kwonminsooo kwonminsooo linked an issue Jul 11, 2026 that may be closed by this pull request
4 tasks
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: a8420be6-a66e-4408-a233-d5dbec551db5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/#238-home-edit-api

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

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

@kwonminsooo kwonminsooo changed the title refactor: 홈 화면 로직 변경 [REFACTOR] 홈 화면 로직 변경 Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 홈 화면 편집 통합 API 구현

1 participant