feat: implement micro-learning generation service and UI components for interactive topic-based learning
All checks were successful
On Push to Main / test (push) Successful in 32s
On Push to Main / publish (push) Successful in 59s
On Push to Main / deploy-dev (push) Successful in 1m33s

This commit is contained in:
RaymondVerhoef
2026-05-25 22:17:26 +02:00
parent f16438c1bc
commit a653812cd8
10 changed files with 227 additions and 263 deletions

View File

@@ -1,4 +1,4 @@
import { getOrGenerateMicroLearning, regenerateMicroLearning, getExistingTypes } from '../lib/microLearningService';
import { getOrGenerateMicroLearning, regenerateMicroLearning } from '../lib/microLearningService';
export function useMicroLearnings() {
/**
@@ -16,13 +16,5 @@ export function useMicroLearnings() {
return regenerateMicroLearning(topicId, type);
};
/**
* Check which micro learning types already exist for a given topic.
* Returns { concept_explainer: true, scenario_quiz: false, ... }
*/
const checkExistingTypes = async (topicId) => {
return getExistingTypes(topicId);
};
return { getOrGenerate, regenerate, checkExistingTypes };
return { getOrGenerate, regenerate };
}