feat: Add NVIDIA industrial design dashboard with Create/Destoy sandbox workflows
- Industrial dark theme with #76B900 NVIDIA green accents - Real-time telemetry from Kubernetes API - Create Sandbox button and workflow - Destroy Sandbox mode with destructive confirmation overlay - Sidebar fetches pod data directly from /api/telemetry/real - Fixed TypeError with defensive array checks - Technical typography, sharp corners, data-dense panels - Status indicators: GREEN RUNNING, red DESTROY mode
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
# OpenShell/NemoClaw Dashboard
|
||||
|
||||
A web-based control plane dashboard for managing OpenShell and NemoClaw instances, with live telemetry and one-click actions.
|
||||
|
||||
## Features
|
||||
|
||||
- **Live Telemetry**: Real-time CPU, memory, disk, and GPU monitoring
|
||||
- **One-Click Actions**: Quick actions to start/stop sandbox, create NemoClaw instances, and switch models
|
||||
- **Configuration Management**: Update OpenShell, NemoClaw, and Ollama settings
|
||||
- **Model Switcher**: Select and switch between available Ollama models
|
||||
- **Local-first**: Runs entirely on your local machine
|
||||
|
||||
## Installation
|
||||
|
||||
1. Navigate to the project directory:
|
||||
```bash
|
||||
cd nemo-shell-dashboard
|
||||
```
|
||||
|
||||
2. Install dependencies:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
## Running the Dashboard
|
||||
|
||||
1. Start the development server:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
2. Open your browser and navigate to:
|
||||
```
|
||||
http://localhost:3000
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
The dashboard will attempt to connect to:
|
||||
|
||||
- **OpenShell**: `http://localhost:8080`
|
||||
- **Ollama**: `http://localhost:11434`
|
||||
|
||||
You can update these URLs in the configuration panel at the top of the dashboard.
|
||||
|
||||
## API Endpoints
|
||||
|
||||
The dashboard provides the following API endpoints (all mocked for development):
|
||||
|
||||
- `GET /api/telemetry` - Get system telemetry
|
||||
- `GET /api/config/openshell` - Get OpenShell configuration
|
||||
- `POST /api/config/openshell` - Update OpenShell configuration
|
||||
- `GET /api/config/nemoclaw` - Get NemoClaw configuration
|
||||
- `POST /api/config/nemoclaw` - Update NemoClaw configuration
|
||||
- `GET /api/config/ollama` - Get Ollama configuration
|
||||
- `POST /api/config/ollama` - Update Ollama configuration
|
||||
- `POST /api/actions/sandbox-start` - Start the sandbox
|
||||
- `POST /api/actions/sandbox-stop` - Stop the sandbox
|
||||
- `POST /api/actions/nemoclaw-create` - Create a NemoClaw instance
|
||||
- `POST /api/actions/model-switch` - Switch to a different model
|
||||
|
||||
## Development
|
||||
|
||||
This project uses:
|
||||
- **Next.js 14** - React framework with App Router
|
||||
- **TypeScript** - Type safety
|
||||
- **Tailwind CSS** - Utility-first styling
|
||||
- **React Use** - Custom hooks
|
||||
- **Zustand** - State management
|
||||
- **Axios** - HTTP client
|
||||
|
||||
## Production Build
|
||||
|
||||
Build the project for production:
|
||||
```bash
|
||||
npm run build
|
||||
npm start
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
- This is a development prototype. In production, you'll need to connect to real OpenShell and Ollama APIs.
|
||||
- All API endpoints are currently mocked for demonstration purposes.
|
||||
- Telemetry data is randomly generated for testing purposes.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
Reference in New Issue
Block a user