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

26
design/detail_window.md Normal file
View File

@@ -0,0 +1,26 @@
# Detail Window Feature
**Purpose**: Shows a single view (YAML, Describe, Logs, Shell) for a Kubernetes object.
**Size**: Default 380×362px, resizable via bottomright corner handle. Sibling windows in the same column/row resize proportionally.
**Header (36px)**:
- Shape glyph (typespecific colour) + view label (uppercase, accent colour).
- Object name + status badge.
- Close button (×).
- `cursor: grab` drag to reposition within the canvas.
- Doubleclick → maximize to fill available space (below top bar, above bottom bar, side margins 22px). Press `z` or doubleclick again to restore.
**Tab Bar**: YAML·Describe·Logs·Shell. Shell tab disabled for nonexec objects (opacity0.45).
**Content area**: `<pre>` with `overflow:auto; height:286px; font-family:'IBM Plex Mono'; font-size:12px; line-height:1.65`. Custom scrollbar (8px, rgba(140,165,200,.18)).
**Keyboard focus**:
- Mouseover window + type → focuses that windows content (shell input when a Shell view is active).
- Global `keydown` capture routes keys to the hovered window if it is a shell.
**Maximize (`z` key or doubleclick header)**:
- Resize to `width = viewport.width - 44px`, `height = viewport.height - topBarHeight(68px) - bottomBarHeight(66px)`.
- Set camera so the window fills the viewport (`zoom = 1`).
**Secret YAML autodecode**: When rendering a Secret, base64decode all `data` values and display plaintext with a banner `⊙ secret values autodecoded`.