Skip to content

fix(web): 채팅 이미지 업로드 경로를 Bruno 명세(/file/chat)와 동기화#512

Merged
manNomi merged 1 commit intomainfrom
codex/fix-chat-upload-route-sync
May 3, 2026
Merged

fix(web): 채팅 이미지 업로드 경로를 Bruno 명세(/file/chat)와 동기화#512
manNomi merged 1 commit intomainfrom
codex/fix-chat-upload-route-sync

Conversation

@manNomi
Copy link
Copy Markdown
Contributor

@manNomi manNomi commented May 3, 2026

작업 배경

  • 채팅 이미지 업로드 요청이 POST /file/chat/post로 나가면서 백엔드에서 No static resource file/chat/post 오류가 발생했습니다.
  • Bruno 명세(채팅 사진 업로드) 기준 경로는 POST /file/chat이며, multipart key는 files, 응답은 배열 형태입니다.

변경 내용

  • 채팅 업로드 API를 프로필 업로드 API와 분리했습니다.
  • postUploadProfileImage는 다시 POST /file/profile/post로 복원했습니다.
  • 신규 postUploadChatImages(files: File[]) 추가
    • 경로: POST /file/chat
    • multipart key: files
    • 배열 응답을 string[](fileUrl 목록)로 정규화
  • 신규 훅 useUploadChatImages 추가 및 export
  • 채팅 화면에서 useUploadProfileImage 사용을 제거하고 useUploadChatImages로 교체
  • 이미지 업로드를 Promise.all 단건 반복 호출에서 다건 1회 호출로 변경

검증

  • pnpm --filter @solid-connect/web run lint:check 통과
  • pnpm --filter @solid-connect/web run typecheck:ci 통과
  • pre-push 훅의 @solid-connect/web ci:check + next build 통과
  • 코드 검색 기준 file/chat/post 호출 0건 확인

기대 효과

  • Bruno 명세와 실제 프론트 업로드 라우트가 일치합니다.
  • 채팅 이미지 업로드 실패(No static resource file/chat/post)를 방지합니다.

@manNomi manNomi requested review from enunsnv and wibaek as code owners May 3, 2026 14:49
@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
solid-connection-web Ready Ready Preview, Comment May 3, 2026 2:51pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
solid-connect-web-admin Skipped Skipped May 3, 2026 2:51pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 3, 2026

Warning

Rate limit exceeded

@manNomi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 28 minutes and 53 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ea5325d8-70b8-499c-b315-8b977fec1ec8

📥 Commits

Reviewing files that changed from the base of the PR and between 49ba3d3 and da04707.

📒 Files selected for processing (4)
  • apps/web/src/apis/image-upload/api.ts
  • apps/web/src/apis/image-upload/index.ts
  • apps/web/src/apis/image-upload/postUploadChatImages.ts
  • apps/web/src/app/mentor/chat/[chatId]/_ui/ChatContent/index.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-chat-upload-route-sync

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
Review rate limit: 0/1 reviews remaining, refill in 28 minutes and 53 seconds.

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

@github-actions github-actions Bot added the web label May 3, 2026
@manNomi manNomi merged commit 874fc51 into main May 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant