From bf8ea6103e16613c594396082382c02308f5b73a Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Fri, 3 Apr 2026 13:41:10 +0200 Subject: [PATCH] Refactor task handling and improve status checking in issue management web --- pkg/web/components/status.templ | 2 +- pkg/web/components/status_templ.go | 2 +- pkg/web/handler/task.go | 25 +++++++++++++++++-------- pkg/web/routes/dashboard.templ | 4 ++-- pkg/web/routes/dashboard_templ.go | 2 +- pkg/web/routes/issue_detail.templ | 6 +++++- pkg/web/routes/issue_detail_templ.go | 14 +++++++++----- pkg/web/server/routes.go | 1 + 8 files changed, 37 insertions(+), 19 deletions(-) diff --git a/pkg/web/components/status.templ b/pkg/web/components/status.templ index dda0c6b..e35de91 100644 --- a/pkg/web/components/status.templ +++ b/pkg/web/components/status.templ @@ -1,7 +1,7 @@ package components templ Status(msg string) { -
+
} diff --git a/pkg/web/components/status_templ.go b/pkg/web/components/status_templ.go index 53538d6..2f08fa3 100644 --- a/pkg/web/components/status_templ.go +++ b/pkg/web/components/status_templ.go @@ -29,7 +29,7 @@ func Status(msg string) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
+
`) } else { hx.WriteString(` -
+
`) } diff --git a/pkg/web/routes/dashboard.templ b/pkg/web/routes/dashboard.templ index fcf986b..516076c 100644 --- a/pkg/web/routes/dashboard.templ +++ b/pkg/web/routes/dashboard.templ @@ -138,7 +138,7 @@ templ DashboardContent(props DashboardProps) {