fix: the assistant's empty state keeps its own heading when the starters arrive
The re-render swapped "Pediatric Clinical Assistant" for a different heading and line the moment the starter questions loaded. Same words as the page now. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016fZGJNyDvERbMgS2Uc2msP
This commit is contained in:
parent
91a35a4b27
commit
6b9587d09f
1 changed files with 5 additions and 2 deletions
|
|
@ -2621,9 +2621,12 @@ import {
|
|||
|
||||
function renderEmptyState() {
|
||||
var examples = pickExamples();
|
||||
// The same words as the page's own empty state in assistant.html: this
|
||||
// re-render used to swap "Pediatric Clinical Assistant" for a different
|
||||
// heading the moment the starters arrived.
|
||||
return '<div class="assistant-empty"><i class="fas fa-book-medical"></i>' +
|
||||
'<h3>Evidence-first pediatric assistant</h3>' +
|
||||
'<p>Ask a real clinical question. Citations stay linked to the source cards on the right.</p>' +
|
||||
'<h3>Pediatric Clinical Assistant</h3>' +
|
||||
'<p class="assistant-empty-badge"><i class="fas fa-book-medical"></i> Answers built only from your indexed library</p>' +
|
||||
'<div class="assistant-examples">' + examples.map(function (item) {
|
||||
var source = item.sourceTitle ? (' title="Available from: ' + escapeAttr(item.sourceTitle + (item.page ? ', page ' + item.page : '')) + '"') : '';
|
||||
// The question itself, not a two-word label: "Status asthma escalation"
|
||||
|
|
|
|||
Loading…
Reference in a new issue