Add Exercise Enrichment Admin API and Update Documentation
Deploy Development / deploy (push) Successful in 41s
Test Suite / pytest-backend (push) Successful in 40s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m17s

- Introduced the `exercise_enrichment_admin` API for batch exercise enrichment, allowing superadmins to filter candidates, preview, and apply skills.
- Updated the access layer documentation to include the new endpoint and its exempt status.
- Enhanced the frontend with a new admin page for exercise enrichment and updated navigation to include this feature.
- Incremented version to 0.8.179 and updated changelog to reflect these additions and improvements.
This commit is contained in:
Lars committed 2026-05-23 07:35:45 +02:00
1 parent d1d8539b42
commit f4196c3580
12 files changed
+2263 -5

No files matched your search

+49
View File
@@ -388,6 +388,50 @@ export async function deleteAiSkillRetrievalProfile(profileId) {
return request(`/api/admin/ai-skill-retrieval-profiles/${profileId}`, { method: 'DELETE' })
}
/** Superadmin: Übungs-Anreicherung per KI (Batch Skills) */
export async function listExerciseEnrichmentCandidates(params = {}) {
const q = new URLSearchParams()
Object.entries(params).forEach(([k, v]) => {
if (v === undefined || v === null || v === '') return
if (typeof v === 'boolean') q.set(k, v ? 'true' : 'false')
else q.set(k, String(v))
})
const qs = q.toString()
return request(`/api/admin/exercise-enrichment/candidates${qs ? `?${qs}` : ''}`)
}
export async function previewExerciseEnrichment(body) {
return request('/api/admin/exercise-enrichment/preview', {
method: 'POST',
body: JSON.stringify(body),
})
}
export async function applyExerciseEnrichment(body) {
return request('/api/admin/exercise-enrichment/apply', {
method: 'POST',
body: JSON.stringify(body),
})
}
export async function listExerciseEnrichmentCandidateIds(params = {}) {
const q = new URLSearchParams()
Object.entries(params).forEach(([k, v]) => {
if (v === undefined || v === null || v === '') return
if (typeof v === 'boolean') q.set(k, v ? 'true' : 'false')
else q.set(k, String(v))
})
const qs = q.toString()
return request(`/api/admin/exercise-enrichment/candidate-ids${qs ? `?${qs}` : ''}`)
}
export async function analyzeExerciseEnrichment(body) {
return request('/api/admin/exercise-enrichment/analyze', {
method: 'POST',
body: JSON.stringify(body),
})
}
/** Superadmin: KI Prompt-Templates (ai_prompts) */
export async function listAdminAiPrompts() {
return request('/api/admin/ai-prompts')
@@ -844,6 +888,11 @@ export const api = {
createAiSkillRetrievalProfile,
updateAiSkillRetrievalProfile,
deleteAiSkillRetrievalProfile,
listExerciseEnrichmentCandidates,
previewExerciseEnrichment,
applyExerciseEnrichment,
listExerciseEnrichmentCandidateIds,
analyzeExerciseEnrichment,
listAdminAiPrompts,
getAdminAiPrompt,
updateAdminAiPrompt,