feat(students): add active/paused/left status with hidden filter

This commit is contained in:
dev
2026-10-23 09:14:19 +03:00
parent 1da6b5e107
commit c2cc7db26d
9 changed files with 132 additions and 36 deletions
+2
View File
@@ -1,3 +1,4 @@
const { normalizeStudentStatus } = require('./lib/students');
const PHOTO_JOB_ACTIONS = new Set(['ai', 'ai_face', 'ai_upscale', 'enhance', 'restore', 'rollback']);
const LESSON_REPORT_TEXT_MAX = 5000;
const LESSON_REPORT_TOPIC_MAX = 300;
@@ -320,6 +321,7 @@ function normalizeRestoreData(data) {
group_id: optInt(x.group_id, 0, 2147483647),
photo_path: optUploadPath(x.photo_path, 255),
profile: sanitizeStudentProfile(x.profile),
status: normalizeStudentStatus(x.status) || 'active',
deleted_at: optTs(x.deleted_at),
purge_at: optTs(x.purge_at),
}));