From 78bb30e42f313f1a0dd2f3e56567a68e80e4666d Mon Sep 17 00:00:00 2001 From: ifedan-ed Date: Wed, 1 Apr 2026 18:16:00 +0000 Subject: [PATCH] v2.2: Remove milestone admin UI, add CMS content refresh button REMOVED: - Milestone editing UI from Admin Panel (per user request) - Milestones will be managed via hardcoded static data only - Kept backend routes and database support for future use ADDED: - Refresh button in Learning Hub CMS content list - Manual refresh for AI-generated content updates - Better discoverability of content refresh functionality FIXES: - AI learning content now has visible refresh button - Users can manually refresh content list after AI generation - Cleaner admin panel without milestone management clutter NOTE: - Developmental milestones still work via static fallback - Edit milestones by modifying public/js/milestonesData.js - Backend API still supports milestone management if needed later --- public/components/admin.html | 66 ------------------------------------ public/components/cms.html | 9 +++-- public/js/learningHub.js | 1 + 3 files changed, 7 insertions(+), 69 deletions(-) diff --git a/public/components/admin.html b/public/components/admin.html index 4d6e3e5..9edf3e8 100644 --- a/public/components/admin.html +++ b/public/components/admin.html @@ -263,72 +263,6 @@ - -
-
-

Developmental Milestones

- -
-
- - - - -
- - - - -
- - -
- - - -
-
-

Reset Settings

diff --git a/public/components/cms.html b/public/components/cms.html index 18c89a0..17f969d 100644 --- a/public/components/cms.html +++ b/public/components/cms.html @@ -51,9 +51,12 @@
- diff --git a/public/js/learningHub.js b/public/js/learningHub.js index 8ffd891..793ebb8 100644 --- a/public/js/learningHub.js +++ b/public/js/learningHub.js @@ -64,6 +64,7 @@ } // ── CMS events ───────────────────────────── + if (e.target.closest('#btn-lh-refresh-content')) { loadCmsContent(); loadCmsStats(); return; } if (e.target.closest('#btn-lh-add-cat')) { addCategory(); return; } if (e.target.closest('#btn-lh-new-content')) { openEditor(null, 'article'); return; } if (e.target.closest('#btn-lh-new-quiz')) { openEditor(null, 'quiz'); return; }