@hoox-sh/hoox-tui 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -31
- package/dist/main.js +4238 -1711
- package/package.json +2 -2
- package/src/app.tsx +45 -30
- package/src/cli-bridge-test-double.ts +48 -1
- package/src/components/layout/sidebar.tsx +27 -11
- package/src/components/layout/statusbar.test.tsx +19 -5
- package/src/components/layout/statusbar.tsx +34 -18
- package/src/components/shared/crash-screen.tsx +24 -2
- package/src/components/shared/error-boundary.tsx +56 -33
- package/src/components/ui/connection-toasts.test.ts +58 -1
- package/src/components/views/config-editor.test.tsx +4 -2
- package/src/components/views/config-editor.tsx +31 -3
- package/src/components/views/dashboard/alerts-panel.tsx +36 -8
- package/src/components/views/dashboard/auto-repair-helpers.test.ts +23 -0
- package/src/components/views/dashboard.test.tsx +2 -1
- package/src/components/views/dashboard.tsx +126 -41
- package/src/components/views/db-query.test.tsx +7 -0
- package/src/components/views/db-query.tsx +5 -4
- package/src/components/views/edge-topology.tsx +3 -2
- package/src/components/views/kv-viewer.test.tsx +28 -0
- package/src/components/views/kv-viewer.tsx +4 -3
- package/src/components/views/logs-viewer.tsx +46 -19
- package/src/components/views/queue-depth.test.tsx +39 -0
- package/src/components/views/queue-depth.tsx +3 -2
- package/src/components/views/secrets-viewer.test.tsx +2 -2
- package/src/components/views/secrets-viewer.tsx +4 -3
- package/src/components/views/service-manager.tsx +147 -53
- package/src/components/views/settings.tsx +50 -10
- package/src/components/views/setup-wizard.test.tsx +13 -0
- package/src/components/views/setup-wizard.tsx +53 -22
- package/src/components/views/trade-monitor.tsx +20 -13
- package/src/components/views/worker-detail.tsx +27 -12
- package/src/components/views/worker-settings.test.tsx +5 -6
- package/src/components/views/worker-settings.tsx +13 -11
- package/src/components/views/workers-overview.tsx +27 -6
- package/src/hooks/hooks.test.ts +303 -9
- package/src/hooks/index.ts +7 -1
- package/src/hooks/shell-overlay.ts +41 -0
- package/src/hooks/use-polling.ts +91 -35
- package/src/hooks/use-service-data.ts +21 -4
- package/src/main.tsx +15 -0
- package/src/services/cli-bridge/index.ts +28 -22
- package/src/services/cli-bridge/standalone.ts +29 -2
- package/src/services/cli-bridge.test.ts +848 -1
- package/src/services/clipboard.test.ts +217 -3
- package/src/services/dashboard-settings-loader.test.ts +50 -0
- package/src/services/tui-connection.test.ts +21 -0
- package/src/stores/service-store.test.ts +89 -3
- package/src/stores/ui-store.test.ts +23 -0
- package/src/test-setup.ts +11 -2
- package/src/types.ts +1 -0
- package/src/view-registry.test.ts +3 -1
- package/src/view-registry.tsx +14 -1
package/README.md
CHANGED
|
@@ -68,34 +68,53 @@ Persistent UI state lives under `$HOME/.hoox/.tui-state/` (session, crash log, c
|
|
|
68
68
|
|
|
69
69
|
## Keyboard Shortcuts
|
|
70
70
|
|
|
71
|
-
| Key | Action
|
|
72
|
-
| ------------------- |
|
|
73
|
-
| `Ctrl+1` | Dashboard view
|
|
74
|
-
| `Ctrl+2` | Workers Overview
|
|
75
|
-
| `Ctrl+3` | Worker Detail
|
|
76
|
-
| `Ctrl+4` | Trade Monitor
|
|
77
|
-
| `Ctrl+5` | Logs Viewer
|
|
78
|
-
| `Ctrl+6` | Service Manager
|
|
79
|
-
| `Ctrl+7` | Config Editor
|
|
80
|
-
| `Ctrl+8` | Setup Wizard
|
|
81
|
-
| `Ctrl+9` | Settings
|
|
82
|
-
| `Ctrl+0` | Queue Depth
|
|
83
|
-
| `Ctrl+Alt+K` | KV Viewer
|
|
84
|
-
| `Ctrl+Alt+S` | Secrets Viewer
|
|
85
|
-
| `Ctrl+Alt+C` | AI Chat
|
|
86
|
-
| `Ctrl+Alt+Q` | DB Query
|
|
87
|
-
| `Ctrl+Alt+E` | Edge Topology
|
|
88
|
-
| `Ctrl+Alt+W` | Worker Settings (dashboard.jsonc)
|
|
89
|
-
| `Ctrl+P` | Open Command Palette
|
|
90
|
-
| `Ctrl+B` | Toggle Sidebar
|
|
91
|
-
| `Ctrl+R` | Refresh
|
|
92
|
-
| `Ctrl+Q` | Quit (with confirmation)
|
|
93
|
-
| `
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
98
|
-
|
|
|
71
|
+
| Key | Action |
|
|
72
|
+
| ------------------- | ----------------------------------------- |
|
|
73
|
+
| `Ctrl+1` | Dashboard view |
|
|
74
|
+
| `Ctrl+2` | Workers Overview |
|
|
75
|
+
| `Ctrl+3` | Worker Detail |
|
|
76
|
+
| `Ctrl+4` | Trade Monitor |
|
|
77
|
+
| `Ctrl+5` | Logs Viewer |
|
|
78
|
+
| `Ctrl+6` | Service Manager |
|
|
79
|
+
| `Ctrl+7` | Config Editor |
|
|
80
|
+
| `Ctrl+8` | Setup Wizard |
|
|
81
|
+
| `Ctrl+9` | Settings |
|
|
82
|
+
| `Ctrl+0` | Queue Depth |
|
|
83
|
+
| `Ctrl+Alt+K` | KV Viewer |
|
|
84
|
+
| `Ctrl+Alt+S` | Secrets Viewer |
|
|
85
|
+
| `Ctrl+Alt+C` | AI Chat |
|
|
86
|
+
| `Ctrl+Alt+Q` | DB Query |
|
|
87
|
+
| `Ctrl+Alt+E` | Edge Topology |
|
|
88
|
+
| `Ctrl+Alt+W` | Worker Settings (dashboard.jsonc) |
|
|
89
|
+
| `Ctrl+P` | Open Command Palette |
|
|
90
|
+
| `Ctrl+B` | Toggle Sidebar |
|
|
91
|
+
| `Ctrl+R` | Refresh data (force reconnect if offline) |
|
|
92
|
+
| `Ctrl+Q` | Quit (with confirmation) |
|
|
93
|
+
| `Ctrl+Shift+D` | Toggle status-bar error diagnostics |
|
|
94
|
+
| `Esc` | Close palette / dismiss modal / go back |
|
|
95
|
+
| `↑` `↓` | Navigate within active view |
|
|
96
|
+
| `Tab` / `Shift+Tab` | Cycle focus between interactive elements |
|
|
97
|
+
| `Enter` | Select / confirm |
|
|
98
|
+
| `Space` | Toggle / pause (view-dependent) |
|
|
99
|
+
| `/` | Focus search (in searchable views) |
|
|
100
|
+
|
|
101
|
+
### Service Manager keys
|
|
102
|
+
|
|
103
|
+
| Key | Action |
|
|
104
|
+
| ----------------- | -------------------------------------- |
|
|
105
|
+
| `↑` `↓` | Select worker |
|
|
106
|
+
| `d` / `r` | Deploy / restart selected |
|
|
107
|
+
| `D` / `R` (Shift) | Deploy all / restart all |
|
|
108
|
+
| `Enter` | Open worker detail |
|
|
109
|
+
| `k` / `e` / `u` | Kill-switch refresh / engage / release |
|
|
110
|
+
|
|
111
|
+
### Dashboard keys
|
|
112
|
+
|
|
113
|
+
| Key | Action |
|
|
114
|
+
| --------------------- | ---------------------------------------- |
|
|
115
|
+
| `←` `→` | Focus worker health card |
|
|
116
|
+
| `Enter` | Open focused worker detail |
|
|
117
|
+
| `↑` `↓` / Enter / `x` | Alerts: navigate / acknowledge / dismiss |
|
|
99
118
|
|
|
100
119
|
---
|
|
101
120
|
|
|
@@ -109,9 +128,9 @@ Persistent UI state lives under `$HOME/.hoox/.tui-state/` (session, crash log, c
|
|
|
109
128
|
| **Trade Monitor** | Live trade stream with symbol, side, price, quantity, and P&L per trade. |
|
|
110
129
|
| **Logs Viewer** | Scrollable log stream with level filtering, worker selection, and full-text search. |
|
|
111
130
|
| **Service Manager** | Start, stop, restart, and deploy workers. View deployment history and rollback. |
|
|
112
|
-
| **Config
|
|
113
|
-
| **Setup Wizard** |
|
|
114
|
-
| **Settings** | Display preferences, theme, notification toggles,
|
|
131
|
+
| **Config Viewer** | Browse/format/validate project config (free-text edit via external editor; secrets files blocked). |
|
|
132
|
+
| **Setup Wizard** | Prerequisites + exchange flags + deploy; secrets set via CLI (`hoox config secrets set …`). |
|
|
133
|
+
| **Settings** | Display preferences, dark theme, notification toggles, import/export, connection readout. |
|
|
115
134
|
| **Queue Depth** | Queue backlog visualization across workers. |
|
|
116
135
|
| **KV Viewer** | Read-only Cloudflare KV key browser. |
|
|
117
136
|
| **Secrets Viewer** | Read-only secret names/metadata (values never shown). |
|