From 6b9587d09f22a0ea1d3e01e1195b78454191c045 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 14 Sep 2026 23:55:33 +0200 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_016fZGJNyDvERbMgS2Uc2msP --- public/js/clinicalAssistant.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/js/clinicalAssistant.js b/public/js/clinicalAssistant.js index 144c86db..71f4e9ba 100644 --- a/public/js/clinicalAssistant.js +++ b/public/js/clinicalAssistant.js @@ -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 '
' + - '

Evidence-first pediatric assistant

' + - '

Ask a real clinical question. Citations stay linked to the source cards on the right.

' + + '

Pediatric Clinical Assistant

' + + '

Answers built only from your indexed library

' + '
' + 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"