- _console_line.html: command + reply, error variant, "(no reply)" placeholder. - server_detail.html: console section between Live State and Files, replays last 50 history rows server-side; HTMX form appends new lines via hx-swap. - console-history.js: ArrowUp/Down recall against /console/history JSON; scroll-to-bottom on load and after each new line. - CSS: fixed-height scrolling transcript, terminal-ish styling, spinner via HTMX in-flight class. - test_console_routes.py: update 4 assertions from legacy [ERROR] literal to console-error CSS class (matches new semantic markup). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8 lines
278 B
HTML
8 lines
278 B
HTML
<div class="console-line{% if is_error %} console-error{% endif %}">
|
|
<div class="console-prompt">> {{ command }}</div>
|
|
{% if reply %}
|
|
<pre class="console-reply">{{ reply }}</pre>
|
|
{% else %}
|
|
<div class="console-reply muted">(no reply)</div>
|
|
{% endif %}
|
|
</div>
|