Add job detail page with activity log and cancel support
Operations are now clickable from the host detail page, linking to
/ops/{id} which shows the operation info, host link, duration, and
activity log filtered to that operation. Active operations can be
cancelled, which transitions the host to failed and releases the lock.
SSE activity events now include operation_id for real-time filtering.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,8 @@ func NewRouter(d Deps) http.Handler {
|
||||
r.Get("/hosts/{id}", d.UI.HostDetail)
|
||||
r.Post("/hosts/{id}/rebuild", d.UI.TriggerRebuild)
|
||||
r.Post("/hosts/{id}/delete", d.UI.DeleteHost)
|
||||
r.Get("/ops/{id}", d.UI.OperationDetail)
|
||||
r.Post("/ops/{id}/cancel", d.UI.CancelOperation)
|
||||
r.Get("/images", d.UI.ImagesPage)
|
||||
r.Get("/images/new", d.UI.NewImageForm)
|
||||
r.Post("/images/upload", d.UI.UploadImage)
|
||||
|
||||
Reference in New Issue
Block a user