Add design folder and README

This commit is contained in:
Hermes Agent
2026-06-16 08:31:55 -04:00
commit e36c189ca6
9 changed files with 806 additions and 0 deletions

17
design/logs_window.md Normal file
View File

@@ -0,0 +1,17 @@
# 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`).