feat(feedback): 피드백 공유 — 공개 링크로 비인증 조회#68
Merged
Conversation
피드백을 본인만 보던 것을, 공유 토큰 링크로 로그인 없이 볼 수 있게 함.
Core:
- V11: session_feedbacks.share_token (UUID, nullable, UNIQUE)
- SessionFeedback.enableShare(token) 멱등 발급 + repo.findByShareToken
- SecurityConfig: /api/public/** permitAll
- POST /api/sessions/{id}/feedback/share (소유자, 멱등) → 토큰 발급
- GET /api/public/feedbacks/{token} (비인증, PublicFeedbackController) → FeedbackResponse
- 공개 응답은 점수/강약점/키워드만(transcript·PII 없음). openapi 재생성.
Front:
- useCopyToClipboard 훅
- feedbackApi enableShare/getSharedFeedback, useShareFeedback/useSharedFeedback
- FeedbackReport: shareable prop → '공유' 버튼(토큰 발급 후 /share/{token} 링크 복사).
공개 페이지에선 shareable=false 라 버튼 숨김
- pages/SharedFeedback(공개) + /share/:token 라우트(RequireAuth 없이), FeedbackReport 재사용
- generated.ts 재생성
검증: backend compile + OpenApiSpec BUILD SUCCESSFUL(엔드포인트 2개), 프론트 build 통과, lint 클린.
v1은 발급+조회. 공유 해제·만료는 다음(컬럼 nullable).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
피드백을 본인만 보던 것을, 공유 토큰 링크로 로그인 없이 볼 수 있게 함.
Core:
Front:
검증: backend compile + OpenApiSpec BUILD SUCCESSFUL(엔드포인트 2개), 프론트 build 통과, lint 클린. v1은 발급+조회. 공유 해제·만료는 다음(컬럼 nullable).
변경 사항