Files
hermes-krates-connector/design/logs_window.md
2026-06-16 08:31:55 -04:00

901 B
Raw Permalink Blame History

Logs Window Feature

Purpose: Livetail container logs for a pod/deployment/statefulset.

Implementation:

  • Backend streams kubectl logs --follow over a WebSocket.
  • Frontend displays lines in the same <pre> area as Detail Window.
  • Autoscroll to bottom when new lines arrive unless the user has manually scrolled up (detect scrollTop + clientHeight < scrollHeight).
  • Colorcode 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.
  • Doubleclick header or press z to maximize.

State (Window type logs).