Admin UI Features:
- Complete job lifecycle: create, run, view status, view output, delete
- Job table with sorting, filtering, and real-time status updates
- Status polling with countdown timers for running jobs
- Job output modal with result/error display
- API keys management: create keys, list keys with secrets visible
- Sidebar toggle between runners and keys views
- Toast notifications for errors
- Modern dark theme UI with responsive design
Supervisor Improvements:
- Fixed job status persistence using client methods
- Refactored get_job_result to use client.get_status, get_result, get_error
- Changed runner_rust dependency from git to local path
- Authentication system with API key scopes (admin, user, register)
- Job listing with status fetching from Redis
- Services module for job and auth operations
OpenRPC Client:
- Added auth_list_keys method for fetching API keys
- WASM bindings for browser usage
- Proper error handling and type conversions
Build Status: ✅ All components build successfully
34 lines
796 B
TOML
34 lines
796 B
TOML
[package]
|
|
name = "supervisor-admin-ui"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
yew = { version = "0.21", features = ["csr"] }
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
web-sys = { version = "0.3", features = [
|
|
"console",
|
|
"Document",
|
|
"Element",
|
|
"HtmlElement",
|
|
"HtmlSelectElement",
|
|
"HtmlTextAreaElement",
|
|
"Window",
|
|
] }
|
|
js-sys = "0.3"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
serde-wasm-bindgen = "0.6"
|
|
chrono = { version = "0.4", features = ["wasmbind"] }
|
|
gloo = { version = "0.11", features = ["console", "timers", "futures"] }
|
|
log = "0.4"
|
|
wasm-logger = "0.2"
|
|
uuid = { version = "1.0", features = ["v4", "js"] }
|
|
|
|
# Use our new WASM OpenRPC client
|
|
hero-supervisor-openrpc-client = { path = "../openrpc" }
|