feat: implement content management dashboard and update proxy configurations to support AI-assisted learning material generation
All checks were successful
On Push to Main / test (push) Successful in 23s
On Push to Main / publish (push) Successful in 50s
On Push to Main / deploy-dev (push) Successful in 1m22s

This commit is contained in:
RaymondVerhoef
2026-05-15 12:53:53 +02:00
parent aaafe413f6
commit 0a73ab3466
8 changed files with 75 additions and 45 deletions

View File

@@ -16,8 +16,8 @@ const ContentManager = () => {
const [actionState, setActionState] = useState({}); // { [topicId]: { loading, error, success } }
const [refineText, setRefineText] = useState('');
const refresh = () => {
const fresh = getAllGeneratedContent();
const refresh = async () => {
const fresh = await getAllGeneratedContent();
setItems(fresh);
// Keep detail view in sync if its topic was updated
if (selected) {
@@ -56,8 +56,8 @@ const ContentManager = () => {
}
};
const handleDelete = (topicId) => {
deleteCachedContent(topicId);
const handleDelete = async (topicId) => {
await deleteCachedContent(topicId);
if (selected?.topic.id === topicId) setSelected(null);
setActionState(prev => { const n = { ...prev }; delete n[topicId]; return n; });
refresh();