Skip to content

2 gin go templates htmx proof of concept - #3

Open
mikequentel wants to merge 16 commits into
masterfrom
2-gin-go-templates-htmx-proof-of-concept
Open

2 gin go templates htmx proof of concept#3
mikequentel wants to merge 16 commits into
masterfrom
2-gin-go-templates-htmx-proof-of-concept

Conversation

@mikequentel

@mikequentel mikequentel commented Feb 20, 2026

Copy link
Copy Markdown
Owner

closes #2

@mikequentel mikequentel linked an issue Feb 20, 2026 that may be closed by this pull request
@mikequentel mikequentel changed the title 2 gin go templates htmx proof of concept closes #2 2 gin go templates htmx proof of concept closes Feb 20, 2026
@mikequentel mikequentel changed the title 2 gin go templates htmx proof of concept closes 2 gin go templates htmx proof of concept Feb 20, 2026
@mikequentel

mikequentel commented Feb 20, 2026

Copy link
Copy Markdown
Owner Author

@claude review @codex review closes #2

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d231cd318

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cmd/server/main.go
logger.Info("migrations applied")
}
return nil
_ = r.Run(":8080")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle the error returned by r.Run

The server startup call is assigned to _, so bind/listen failures (for example, port already in use or insufficient privileges) are silently ignored and main exits without surfacing the failure. This makes failed deployments harder to detect and troubleshoot because there is no error log or non-graceful failure path at startup.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude respond to this comment with a proposed fix and ensure you mention issue number #2


// HTMX: render only the <tbody> rows (used after create)
r.GET("/issues/rows", func(c *gin.Context) {
c.HTML(http.StatusOK, "issues.html", gin.H{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Return row markup from /issues/rows

This handler renders issues.html, but that file only defines the content template block and does not emit standalone output when executed directly, so /issues/rows responds with whitespace instead of issue rows. Any client that uses this endpoint to refresh table content will get an empty payload and fail to update the issue list.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude respond to this comment with a proposed fix and ensure you mention issue number #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gin + Go templates + HTMX proof-of-concept

1 participant