901 B
901 B
Logs Window Feature
Purpose: Live‑tail container logs for a pod/deployment/statefulset.
Implementation:
- Backend streams
kubectl logs --followover a WebSocket. - Front‑end displays lines in the same
<pre>area as Detail Window. - Auto‑scroll to bottom when new lines arrive unless the user has manually scrolled up (detect
scrollTop + clientHeight < scrollHeight). - Color‑code log levels:
ERROR→#ef6f6f,WARN→#e8b54a,INFO→#b9c6d8. - No input handling – all keypresses are routed to the canvas (unless the user focuses the filter in a collection window).
Interaction:
- Click on a result in Spotlight or Collection with Alt+L to open a Logs window inside a new or existing Krate.
- Resize like any Detail Window; sibling windows resize proportionally.
- Double‑click header or press
zto maximize.
State (Window type logs).