Skip to content

Commit be1ac64

Browse files
feat(webui): migrate /runs list to unified design system (#1637)
Move runs.html from pageTemplates to standalonePageTemplates. Rewrite template using w-* design system classes (w-nav, w-container, w-page-header, w-filterbar, w-list) instead of layout sidebar + wr-* classes. Preserves all JS: running section collapse, client-side search, infinite scroll, child run rendering, model tier badges. Closes #1634
1 parent 8711a0c commit be1ac64

3 files changed

Lines changed: 234 additions & 203 deletions

File tree

internal/webui/embed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var templatesFS embed.FS
2424
// base (layout + partials) so that each page can independently define "title",
2525
// "content", and "scripts" blocks without colliding.
2626
var pageTemplates = []string{
27-
"templates/runs.html",
2827
"templates/run_detail.html",
2928
"templates/personas.html",
3029
"templates/persona_detail.html",
@@ -62,6 +61,7 @@ var standalonePageTemplates = []string{
6261
"templates/onboard/index.html",
6362
"templates/proposals/list.html",
6463
"templates/proposals/detail.html",
64+
"templates/runs.html",
6565
}
6666

6767
// parseTemplates parses all embedded HTML templates using a clone-per-page

internal/webui/handlers_runs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func (s *Server) handleRunsPage(w http.ResponseWriter, r *http.Request) {
289289
}
290290

291291
w.Header().Set("Content-Type", "text/html; charset=utf-8")
292-
if err := s.assets.templates["templates/runs.html"].ExecuteTemplate(w, "templates/layout.html", data); err != nil {
292+
if err := s.assets.templates["templates/runs.html"].Execute(w, data); err != nil {
293293
http.Error(w, "template error: "+err.Error(), http.StatusInternalServerError)
294294
}
295295
}

0 commit comments

Comments
 (0)