From 8171e76ec88a53b01c16e87e05030b02d345b996 Mon Sep 17 00:00:00 2001 From: Ine Date: Fri, 20 Feb 2026 16:37:18 +0100 Subject: [PATCH 1/3] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- internal/service/beads.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/beads.go b/internal/service/beads.go index 7c389a4..8762dc1 100644 --- a/internal/service/beads.go +++ b/internal/service/beads.go @@ -54,7 +54,7 @@ func (s *BeadsService) DeleteIssues() error { } func (s *BeadsService) GetComments(ctx context.Context, issueID string) ([]models.Comment, error) { - query := `SELECT id, issue_id, author, text, created_at FROM comments WHERE issue_id = ? ORDER BY created_at ASC` + query := `SELECT id, issue_id, author, text, created_at FROM comments WHERE issue_id = ? ORDER BY created_at ASC LIMIT 100` rows, err := s.UnderlyingDB().QueryContext(ctx, query, issueID) if err != nil { From 2cc808337f50e6135e9ef74722227bcfe8e36075 Mon Sep 17 00:00:00 2001 From: Ine Date: Fri, 20 Feb 2026 16:44:21 +0100 Subject: [PATCH 2/3] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- internal/service/beads.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/beads.go b/internal/service/beads.go index 8762dc1..f3e6494 100644 --- a/internal/service/beads.go +++ b/internal/service/beads.go @@ -81,7 +81,7 @@ func (s *BeadsService) GetComments(ctx context.Context, issueID string) ([]model func (s *BeadsService) AddComment(ctx context.Context, issueID, author, text string) (*models.Comment, error) { query := `INSERT INTO comments (issue_id, author, text, created_at) VALUES (?, ?, ?, ?)` - createdAt := time.Now() + createdAt := time.Now().UTC() result, err := s.UnderlyingDB().ExecContext(ctx, query, issueID, author, text, createdAt) if err != nil { return nil, err From d1951cbbc0bf64bac45d8e04024d222d979d33b3 Mon Sep 17 00:00:00 2001 From: Ine Date: Fri, 20 Feb 2026 16:44:40 +0100 Subject: [PATCH 3/3] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/web/components/comment.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/web/components/comment.templ b/pkg/web/components/comment.templ index 60b6214..bb08ce2 100644 --- a/pkg/web/components/comment.templ +++ b/pkg/web/components/comment.templ @@ -75,7 +75,7 @@ templ CommentForm(props CommentFormProps) { hx-post={ "/issues/" + props.IssueID + "/comments" } hx-target="#comments-list" hx-swap="beforeend" - hx-on::after-request="this.reset()" + hx-on::after-success="this.reset()" > @base.Input(base.InputProps{ Name: "author",