Fix Pod Log Display and Add Colors #612

Merged
tobru merged 3 commits from fix/pod-logs-bytes-decode into main 2026-07-14 09:04:17 +00:00
Owner
No description provided.
The kubernetes client's primitive deserializer coerces the pod log body
with str(bytes) when the response is bytes, wrapping the output in a
b'...' repr and leaking escaped control characters into the log view.

Bypass it with _preload_content=False and decode the raw stream
ourselves so the logs render as clean text again.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(logs): render ANSI color codes as HTML in the pod log viewer
All checks were successful
Tests / test (push) Successful in 1m20s
52c6691cae
Terminal colour output (e.g. Redis startup logs) shipped ANSI SGR escape
sequences that showed up as raw control characters in the browser. Add an
ansi_to_html converter that escapes the log text and wraps coloured runs in
CSS-classed spans, plus a generated xterm 256-colour palette stylesheet
loaded only on the logs page via a new extra_css block. The base-16 palette
uses the VS Code terminal theme so colours stay legible on the dark log box.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix autoescape
All checks were successful
Tests / test (push) Successful in 1m26s
178c8a8411
tobru merged commit b606d9c61c into main 2026-07-14 09:04:17 +00:00
tobru deleted branch fix/pod-logs-bytes-decode 2026-07-14 09:04:17 +00:00
Sign in to join this conversation.
No description provided.