Commit aeb3acd
v3.4.4: Admin settings restructure + curl filelib fixes
Restructured admin settings into a SOLA category with 7 focused pages,
replacing the single scrolling page plus the obsolete JS-based tab hack.
All existing settings preserved, no DB migration, no capability changes.
Pages under Site admin > Plugins > Local plugins > SOLA (AI Course Assistant):
General Enabled toggle, remote config URL, version banner
AI Provider & Models Provider, key, model, temp, system prompt, tokens, history
Content & RAG RAG + embedding + chunk tuning + performance caps
Safety & Moderation Quiz hide, off-topic, wellbeing, integrity
Engagement Study plans, reminders, voice/realtime, surveys, usability, rubrics
Branding & UI Institution name, display name, welcome, avatar, position
Integrations FAQ/Zendesk, Redash, CDN, plugin self-update
Plus 7 external pages (Starter Editor, Survey Editor, Usability Testing Editor,
Rubric Editor, RAG Index, Plugin Updates, Integrity Checks) all listed under
the same SOLA category.
Bug fixes:
- update_admin.php and rag_admin.php reindex path threw "Class curl not found"
fatal errors because \curl is not auto-loaded by Moodle. Added
require_once($CFG->libdir . '/filelib.php') inside every class method that
creates a \curl instance: plugin_updater, reminder_manager, zendesk_client,
embedding_provider\base_embedding_provider, provider\base_provider.
- Removed the obsolete JS tab navigation hack and duplicated top save button
script from the single settings page. Both are now redundant with the native
multi-page admin category layout.
QA:
- All 7 new settings pages render HTTP 200 with zero errors and zero warnings
over authenticated HTTP.
- All 9 admin external pages (analytics, token analytics, rubric editor,
survey editor, usability testing editor, RAG admin, update admin, integrity
admin, starter settings) render HTTP 200 with zero errors and zero warnings.
- 18 analytics methods, survey_manager, usertesting_manager, rubric_manager,
and token_cost_manager all smoke tested without argument or signature errors.
- All 46 lang files lint clean. Mustache template sections still balanced.
CLAUDE.md updated to reflect new version.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3c88dec commit aeb3acd
File tree
8 files changed
+322
-464
lines changed- classes
- embedding_provider
- provider
8 files changed
+322
-464
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| |||
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| 374 | + | |
| 375 | + | |
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
0 commit comments