Skip to content

[refactor/MAT-783] 집중학습 카드 발급 - 취약도 API로 교체#333

Open
anjm1020 wants to merge 1 commit into
developfrom
refactor/MAT-783
Open

[refactor/MAT-783] 집중학습 카드 발급 - 취약도 API로 교체#333
anjm1020 wants to merge 1 commit into
developfrom
refactor/MAT-783

Conversation

@anjm1020
Copy link
Copy Markdown
Contributor

Linear

MAT-783 - 관리자페이지 - 집중학습 카드 발급 취약점 API로 변경

Summary

  • 집중학습 카드 발급 페이지의 '학생 취약점' 섹션이 호출하던 GET /api/admin/analytics/concept-history/{studentId}GET /api/admin/vulnerability/students/{studentId}/weak-actions 로 교체
  • 기존 API는 단순 정답/오답 누적 집계라 발급 기준으로는 부정확. 신규 API는 가중치·난이도·최근성이 반영된 서버 계산 vulnerability 점수를 그대로 노출
  • 응답 스키마에 맞춰 컬럼/표시 재매핑: conceptNodeName · 난이도 배지(difficultyLevel) · vulnerability 점수 · problemCount · lastCalculatedAt
  • 정렬은 서버에서 vulnerability 내림차순으로 보장되므로 FE 정렬·필터 로직 제거하고 상위 5개만 slice

변경 파일

  • apps/admin/src/apis/controller/vulnerability/ 신규 (getStudentWeakActions)
  • apps/admin/src/apis/controller/analytics/ 제거 (getConceptHistory)
  • apps/admin/src/apis/index.ts export 정리
  • apps/admin/src/routes/_GNBLayout/focus-card/issuance/index.tsx 섹션 UI/매핑 교체

Test plan

  • 학생 미선택 상태 → '학생을 선택해 주세요' 빈 상태 노출
  • 학생 선택 시 약점 액션 카드 5개가 vulnerability 내림차순으로 노출
  • 산정된 약점 액션이 없는 학생: '산정된 약점 액션이 없습니다.' 빈 상태
  • 난이도 배지(LOW/MEDIUM/HIGH)·취약도 색상 임계값(0.7 / 0.4)·문제수·산정시각 표기 확인
  • 카드 발급/자동 발급 기존 동작 회귀 없음

🤖 Generated with Claude Code

…ions API

MAT-783. The previous concept-history endpoint only aggregated raw
correct/incorrect counts and was inaccurate as a focus-card issuance
signal. The vulnerability API exposes server-computed action-level
weakness scores (sorted desc) which directly model the issuance domain.

- drop apis/controller/analytics
- add apis/controller/vulnerability with getStudentWeakActions
- remap the issuance page's '취약점' summary to render conceptNodeName,
  difficulty badge, vulnerability score, problemCount, lastCalculatedAt

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear Bot commented May 19, 2026

MAT-783

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

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

Project Deployment Actions Updated (UTC)
pointer-admin Ready Ready Preview, Comment May 19, 2026 7:13am

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.

1 participant