From 1ed681477859e641b6564a37ed0719b1ee3de248 Mon Sep 17 00:00:00 2001 From: Moira Daniella A Sebastian Date: Wed, 25 Mar 2026 21:18:59 +0100 Subject: [PATCH] Fixed --- pkg/web/components/issue.templ | 10 +++++++- pkg/web/components/issue_templ.go | 41 ++++++++++++++++++++----------- pkg/web/handler/issues.go | 5 ++++ pkg/web/handler/modals.go | 2 ++ 4 files changed, 42 insertions(+), 16 deletions(-) diff --git a/pkg/web/components/issue.templ b/pkg/web/components/issue.templ index 9e28b40..7969b2b 100644 --- a/pkg/web/components/issue.templ +++ b/pkg/web/components/issue.templ @@ -17,6 +17,7 @@ type IssueFormProps struct { CloseReason string // Set when status is "closed" Priority int IssueType string + Assignee string Class string Attrs templ.Attributes Target string // Optional: if empty, server controls via HX-Target header @@ -100,6 +101,13 @@ templ IssueForm(props IssueFormProps) { Value: props.Priority, Step: 1, }) + @base.Input(base.InputProps{ + Name: "assignee", + Label: "Assignee", + Value: props.Assignee, + Class: "w-full", + Placeholder: "Enter Assignee", + }) if props.IssueID != "" {

Dependencies

@@ -160,7 +168,7 @@ templ IssueForm(props IssueFormProps) { } if props.Target == "" { -
+
}
} diff --git a/pkg/web/components/issue_templ.go b/pkg/web/components/issue_templ.go index 65fe9dc..bcf2f94 100644 --- a/pkg/web/components/issue_templ.go +++ b/pkg/web/components/issue_templ.go @@ -25,6 +25,7 @@ type IssueFormProps struct { CloseReason string // Set when status is "closed" Priority int IssueType string + Assignee string Class string Attrs templ.Attributes Target string // Optional: if empty, server controls via HX-Target header @@ -76,7 +77,7 @@ func IssueForm(props IssueFormProps) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(props.Status) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/web/components/issue.templ`, Line: 26, Col: 122} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/web/components/issue.templ`, Line: 27, Col: 122} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -94,7 +95,7 @@ func IssueForm(props IssueFormProps) templ.Component { var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(props.PatchAction) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/web/components/issue.templ`, Line: 30, Col: 32} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/web/components/issue.templ`, Line: 31, Col: 32} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { @@ -113,7 +114,7 @@ func IssueForm(props IssueFormProps) templ.Component { var templ_7745c5c3_Var6 string templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(props.PostAction) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/web/components/issue.templ`, Line: 33, Col: 30} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/web/components/issue.templ`, Line: 34, Col: 30} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { @@ -132,7 +133,7 @@ func IssueForm(props IssueFormProps) templ.Component { var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(props.Target) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/web/components/issue.templ`, Line: 36, Col: 28} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/web/components/issue.templ`, Line: 37, Col: 28} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { @@ -240,6 +241,16 @@ func IssueForm(props IssueFormProps) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } + templ_7745c5c3_Err = base.Input(base.InputProps{ + Name: "assignee", + Label: "Assignee", + Value: props.Assignee, + Class: "w-full", + Placeholder: "Enter Assignee", + }).Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } if props.IssueID != "" { templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "

Dependencies