mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-26 11:40:26 +00:00
fix: satisfy activity timeline CI guards
This commit is contained in:
+3
-3
@@ -2243,7 +2243,7 @@ function _activityStatusNode({kind='info',label='',detail='',status='done',ts=nu
|
|||||||
if(id) row.setAttribute('data-activity-event-id',id);
|
if(id) row.setAttribute('data-activity-event-id',id);
|
||||||
if(ts) row.setAttribute('data-activity-at',String(ts));
|
if(ts) row.setAttribute('data-activity-at',String(ts));
|
||||||
const iconMap={run:li('play',13),model:li('bot',13),waiting:'<span class="tool-card-running-dot"></span>',thinking:li('lightbulb',13),tool:li('wrench',13),done:li('check',13),warning:li('alert-triangle',13)};
|
const iconMap={run:li('play',13),model:li('bot',13),waiting:'<span class="tool-card-running-dot"></span>',thinking:li('lightbulb',13),tool:li('wrench',13),done:li('check',13),warning:li('alert-triangle',13)};
|
||||||
row.innerHTML=`<span class="agent-activity-status-icon">${iconMap[kind]||iconMap.info||li('circle',13)}</span><span class="agent-activity-status-copy"><span class="agent-activity-status-label">${esc(label)}</span>${detail?`<span class="agent-activity-status-detail">${esc(detail)}</span>`:''}</span><span class="agent-activity-status-time">${esc(_activityClockLabel(ts))}</span>`;
|
row.innerHTML=`<span class="agent-activity-status-icon">${iconMap[kind]||li('clock',13)}</span><span class="agent-activity-status-copy"><span class="agent-activity-status-label">${esc(label)}</span>${detail?`<span class="agent-activity-status-detail">${esc(detail)}</span>`:''}</span><span class="agent-activity-status-time">${esc(_activityClockLabel(ts))}</span>`;
|
||||||
return row;
|
return row;
|
||||||
}
|
}
|
||||||
function _appendActivityEvent(group, event){
|
function _appendActivityEvent(group, event){
|
||||||
@@ -7684,11 +7684,11 @@ function appendThinking(text='', options){
|
|||||||
if(row) row.setAttribute('data-thinking-active','1');
|
if(row) row.setAttribute('data-thinking-active','1');
|
||||||
}
|
}
|
||||||
if(!row){
|
if(!row){
|
||||||
row=_thinkingActivityNode(cleanThinking, false);
|
row=_thinkingActivityNode(thinkingText, false);
|
||||||
row.setAttribute('data-thinking-active','1');
|
row.setAttribute('data-thinking-active','1');
|
||||||
body.appendChild(row);
|
body.appendChild(row);
|
||||||
}else{
|
}else{
|
||||||
_renderThinkingInto(row,cleanThinking);
|
_renderThinkingInto(row,thinkingText);
|
||||||
}
|
}
|
||||||
_activityMarkObserved(group);
|
_activityMarkObserved(group);
|
||||||
_syncToolCallGroupSummary(group);
|
_syncToolCallGroupSummary(group);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ def test_empty_thinking_placeholder_becomes_status_row_not_raw_thinking_card():
|
|||||||
assert "Waiting on model" in UI_JS
|
assert "Waiting on model" in UI_JS
|
||||||
assert "No tool activity has been reported yet." in UI_JS
|
assert "No tool activity has been reported yet." in UI_JS
|
||||||
assert "Waiting on tool result" in UI_JS
|
assert "Waiting on tool result" in UI_JS
|
||||||
assert "_thinkingActivityNode(cleanThinking, false)" in UI_JS
|
assert "_thinkingActivityNode(thinkingText, false)" in UI_JS
|
||||||
|
|
||||||
|
|
||||||
def test_tool_events_update_activity_timeline_and_summary():
|
def test_tool_events_update_activity_timeline_and_summary():
|
||||||
|
|||||||
Reference in New Issue
Block a user