Skip to content

Commit bf55fff

Browse files
caswelltomclaude
andcommitted
Fix Quick Study chip label and move to top-left position
- Reorder starters: Quick Study (top-left), Quiz Me (top-right), Explain This (row 2), remaining chips in original order - Version bump to 2026030701 to force cache refresh and fix [[chat:starter_quick_study]] missing string on dev Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 712a3da commit bf55fff

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

db/upgrade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ function xmldb_local_ai_course_assistant_upgrade($oldversion) {
189189
upgrade_plugin_savepoint(true, 2025022600, 'local', 'ai_course_assistant');
190190
}
191191

192-
if ($oldversion < 2026030700) {
192+
if ($oldversion < 2026030701) {
193193
// v1.0.16: JS-only changes (typewriter animation, AudioContext TTS, Quick Study chip).
194194
// No schema changes needed.
195-
upgrade_plugin_savepoint(true, 2026030700, 'local', 'ai_course_assistant');
195+
upgrade_plugin_savepoint(true, 2026030701, 'local', 'ai_course_assistant');
196196
}
197197

198198
return true;

templates/chat_widget.mustache

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@
204204

205205
{{! Conversation starters — hidden once a message is sent }}
206206
<div class="local-ai-course-assistant__starters" aria-label="{{#str}}chat:starters_label, local_ai_course_assistant{{/str}}">
207+
<button class="local-ai-course-assistant__starter" data-starter="quick-study">
208+
<span class="aica-starter-icon" aria-hidden="true">
209+
{{! Timer icon — Quick Study }}
210+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A7.73 7.73 0 0 0 12 4a8 8 0 1 0 8 8c0-2.21-.9-4.21-2.03-5.39zm-1.97 9.61A6 6 0 1 1 12 6a6 6 0 0 1 5.06 9.61z"/></svg>
211+
</span>
212+
<span>{{#str}}chat:starter_quick_study, local_ai_course_assistant{{/str}}</span>
213+
</button>
207214
<button class="local-ai-course-assistant__starter" data-starter="quiz">
208215
<span class="aica-starter-icon" aria-hidden="true">
209216
{{! Lightning bolt — Quiz Me }}
@@ -263,13 +270,6 @@
263270
</span>
264271
<span>{{#str}}chat:starter_ai_coach, local_ai_course_assistant{{/str}}</span>
265272
</button>
266-
<button class="local-ai-course-assistant__starter" data-starter="quick-study">
267-
<span class="aica-starter-icon" aria-hidden="true">
268-
{{! Timer icon — Quick Study }}
269-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A7.73 7.73 0 0 0 12 4a8 8 0 1 0 8 8c0-2.21-.9-4.21-2.03-5.39zm-1.97 9.61A6 6 0 1 1 12 6a6 6 0 0 1 5.06 9.61z"/></svg>
270-
</span>
271-
<span>{{#str}}chat:starter_quick_study, local_ai_course_assistant{{/str}}</span>
272-
</button>
273273
</div>
274274

275275
{{! Typing indicator }}

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
defined('MOODLE_INTERNAL') || die();
2626

2727
$plugin->component = 'local_ai_course_assistant';
28-
$plugin->version = 2026030700;
28+
$plugin->version = 2026030701;
2929
$plugin->requires = 2024100700; // Moodle 4.5+.
3030
$plugin->maturity = MATURITY_STABLE;
3131
$plugin->release = '1.0.16';

0 commit comments

Comments
 (0)