Spaces:
Sleeping
Sleeping
Commit History
-
Avoid duplicate PDF indexing for recap
391859f
-
feat: Fix at-risk scoring with 3-source model
quachtiensinh27- Quiz không làm = 0 điểm, làm sau deadline = không tính - Tích hợp FastAPI signals vào scanAtRiskStudents() - Auto-resolve snapshot khi học viên về safe - Cải thiện reason generation với đầy đủ risk factors - Fix normalization formula boundaries - Trust backend level field in dashboard - Add error handling for quiz avg calculationcdd8339 -
refactor: Remove unused senderId parameter from callAgentWithFile
quachtiensinh2722b6390 -
feat: Simplify chat-with-file endpoint to only require file and query
quachtiensinh27Backend (ta.service.ts, ta.controller.ts): - Removed senderId and conversationId parameters - Only file and query are now required - Hardcoded senderId to 'TA' for recap workflow Frontend (ta.service.js, TADashboard.jsx): - Updated callAgentWithFile signature to only accept spaceId, query, file - Removed senderId and conversationId from API calls2bc4877 -
refactor: Clean up debug logs and add Swagger docs for conversationId
quachtiensinh27- Removed debug console.log statements from ta.service.js - Removed redundant FormData append for conversationId (only use query param) - Added @ApiQuery decorators for proper Swagger documentation - Fixed URL construction to only use query parametercedf0da -
feat: Add optional conversationId parameter to chat-with-file API
quachtiensinh27- Backend now accepts optional conversationId query parameter - If not provided, reuses existing space conversation or creates new one - Frontend service updated to pass conversationId when available - Ready for room-based file uploads from ChatInput5901859
-
fix: Fix at-risk scoring bugs and update UI
quachtiensinh27**Backend Fixes:** - Fix quiz_attempts column name: score → total_score - Simplify quiz percentage calculation (total_score is already 0-100) - Fix normalizeFastApiSignals formula: use correct divisors (2 and 3 instead of 10) - Change null quiz handling: return 0 (neutral) instead of 10 (max risk) - Fix explicit warning count logic - Remove duplicate endpoint decorator **UI Updates:** - Redesign RiskCard to show 3-source score breakdown - Add interactive tooltip showing normalized scores for each source - Display risk score prominently with color-coded level badge - Show signal chips for absence, stuck signals, and low quiz scores - Remove deprecated getRiskColor prop060577f -
feat: Implement 3-source at-risk scoring with normalization and weights
quachtiensinh27- Add at_risk_settings table for configurable weights/thresholds - Add score_breakdown and weights_applied to at_risk_snapshots - Implement normalization functions: - normalizeLastSeen: 0-10 scale based on hours offline - normalizeFastApiSignals: 0-10 scale based on signal count/weight - normalizeQuizAvg: 0-10 inverted scale (low score = high risk) - Implement weighted scoring: total = (last*0.3) + (fastapi*0.4) + (quiz*0.3) - Default thresholds: warning=3.0, critical=6.0 - Add getAtRiskSettingsForUi and updateAtRiskSettings methods - Add API endpoints: GET/POST /ta/at-risk/settings - Calculate quiz average from last 30 days for each student - Store score breakdown for transparency41c548e -
fix: Fix TypeScript build errors in PDF indexing
quachtiensinh274767783 -
feat: Implement PDF indexing to Qdrant and improve quiz send notification
quachtiensinh27- Add indexPdfToQdrant method in ta.service.ts - Add indexPdf endpoint in FastApiClient - Auto-index PDF slides when uploaded (background task) - Include space_name in quiz send response - Update toast messages to show both room and space name - Fix Vietnamese text localization in quiz list - Add delete quiz button with confirmation - Improve handleSendQuizFromList with loading state and error handlingdb4ecbb -
Thêm tính năng phân tích học viên có nguy cơ và tích hợp FastAPI cho việc tạo quiz
quachtiensinh278596926 -
feat: add QuizResults component for displaying quiz results and analytics
quachtiensinh27feat: implement QuizWorkflow component for quiz creation and management feat: create StudentQuizPage for student quiz interaction and display2a3577c
-
fix: Fix TypeScript errors in Quiz implementation
quachtiensinh27- Add missing imports (Put, NotFoundException, DTOs) - Fix quizData type checking with proper guards - Fix summary data access after API format change - Fix createMessageDto metadata issue - Add QuizQuestionDto and SendQuizDto imports to servicec206b01 -
feat: Add Quiz Interactive feature - Phase 1 (Database + Backend)
quachtiensinh27- Database: quizzes, questions, quiz_attempts, quiz_summaries tables - RLS policies for TA/student access control - Backend API: generate, edit, send, submit, summary endpoints - AI integration for quiz generation from recap content - Fixed all security issues from code review - Added checkSpaceMembership for student endpoints - Prompt injection protection (topic validation) - Quiz mutability check after attempts - JSON parsing error handling - API response format standardization - Bulk insert optimization - Added composite index for summaries83f8a81
-
feat: implement TA dashboard backend controller and UI components with AI-driven at-risk monitoring and messaging features
quachtiensinh27d4a87c0 -
sửa prompt của TA AI DM
quachtiensinh279705fa5 -
update danh sách quán lý thông báo và recap 1
quachtiensinh278924be7
-
feat: implement TA Dashboard architecture with schema updates, core services, and UI integration
quachtiensinh27722bd5c -
feat: implement TA dashboard recap workflow, AI analysis integration, and backend service modules
quachtiensinh27c7ff5ed
-
bản TA dashboard chưa kết nối api agent
quachtiensinh278da07c9
-
cập nhật backend dashboard TA
quachtiensinh275be4180