feat(feedback): 피드백 핵심 부분 하이라이트#131
Merged
Merged
Conversation
피드백 리포트에서 중요한 부분을 하이라이트하기 위한 데이터. AI가 강점/개선점 본문에서 핵심 구절 3~6개를 그대로 발췌(부분 문자열 매칭 보장: 실제 substring 만 통과) → FeedbackCallbackPayload.highlights → DB(V21 JSONB) → 피드백 응답(소유자+공유 모두) 노출. - AI: feedback_synthesis 프롬프트 highlights, FeedbackResult/SynthesisResult.highlights, _filter_highlights(본문 substring·dedup·cap6), consumer 매핑. 테스트 추가. - Backend: V21 session_feedbacks.highlights JSONB, SessionFeedback 필드, FeedbackCallbackService 영속, FeedbackResponse 노출. OpenAPI 재생성. - 백엔드 전체 테스트 통과, AI 300 passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
피드백 리포트에서 중요한 부분을 <mark> 로 강조해 스캔성 개선(UX). AI 가 고른 핵심 구절(highlights) ∪ 다음에 채울 키워드(improvementKeywords)를 강점/개선점/패널 detail/ 학습방향 문단에서 자동 하이라이트. - HighlightedText: 정규식 이스케이프 + 긴 구절 우선 매칭 + 대소문자 무시, html2canvas(PDF) 렌더 OK. - FeedbackReport 의 강점·개선점·각 detail·학습방향에 적용. - 프론트 타입 재생성, npm run build 통과 / lint clean(신규 파일). 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.
변경 사항
피드백 리포트가 긴 문단이라 핵심이 묻히는 문제 → 중요한 부분을
<mark>로 하이라이트(UX 스캔성 개선). "둘 다" 요청대로 AI가 고른 핵심 구절 + 다음에 채울 키워드 둘 다 강조.AI → Core → DB → API (highlights 필드)
highlights3~6개를 강점/개선점 본문에서 그대로 발췌._filter_highlights가 실제 substring 만 통과(부분 문자열 매칭 보장·dedup·cap6) → 프론트가 못 맞추는 구절 없음.FeedbackCallbackPayload.highlights→FeedbackCallbackService영속(V21session_feedbacks.highlightsJSONB) →FeedbackResponse.highlights(소유자GET /api/sessions/{id}/feedback+ 공유GET /api/public/feedbacks/{shareToken}모두).Frontend
HighlightedText: terms =highlights∪improvementKeywords. 정규식 이스케이프 + 긴 구절 우선 매칭(겹침 방지) + 대소문자 무시.<mark>(bg-warning-50)로 강조 — html2canvas PDF 에서도 렌더.FeedbackReport의 강점·개선점·직무적합도/이해도/첫인상/패널 detail·학습방향에 적용.검증
./gradlew test통과, AIpytest300 passed + flake8 clean, 프론트npm run build통과 / lint clean(신규 파일). OpenAPI·프론트 타입 재생성.🤖 Generated with Claude Code