feat: implement issue detail view with label, comment, and close actions #59

Closed
opened 2026-03-26 19:24:06 +00:00 by AI-Manager · 1 comment
Owner

Roadmap Reference

Phase 2, Section 2.2 — Issue Detail View

Note: The close and comment actions are also tracked in #29. This issue covers the full detail template; #29 covers the backend action handlers specifically.

What to do

Create internal/templates/issue_detail.html and connect to GET /issues/{owner}/{repo}/{index}:

  • Title and body rendered as markdown (call Giteass API markdown endpoint)
  • Comments thread displayed below the body
  • Action buttons (all via HTMX hx-post with hx-swap=outerHTML):
    • Add label: dropdown populated from repo labels
    • Assign: user selector
    • Add comment: textarea + submit
    • Close/Reopen toggle

Create Issue (/issues/new) form:

  • Searchable repo selector
  • Title field
  • Body textarea
  • Label multi-select
  • Submit via HTMX, redirect to new issue on success

Acceptance Criteria

  • Issue detail page loads and displays markdown body correctly
  • Each action button submits via HTMX and updates the page without full reload
  • Create Issue form submits and redirects to the created issue detail
  • Depends on #29 (close and comment backend handlers)
## Roadmap Reference Phase 2, Section 2.2 — Issue Detail View Note: The close and comment actions are also tracked in #29. This issue covers the full detail template; #29 covers the backend action handlers specifically. ## What to do Create internal/templates/issue_detail.html and connect to GET /issues/{owner}/{repo}/{index}: - Title and body rendered as markdown (call Giteass API markdown endpoint) - Comments thread displayed below the body - Action buttons (all via HTMX hx-post with hx-swap=outerHTML): - Add label: dropdown populated from repo labels - Assign: user selector - Add comment: textarea + submit - Close/Reopen toggle Create Issue (/issues/new) form: - Searchable repo selector - Title field - Body textarea - Label multi-select - Submit via HTMX, redirect to new issue on success ## Acceptance Criteria - Issue detail page loads and displays markdown body correctly - Each action button submits via HTMX and updates the page without full reload - Create Issue form submits and redirects to the created issue detail - Depends on #29 (close and comment backend handlers)
AI-Manager added the P2agent-readymedium labels 2026-03-26 19:24:06 +00:00
Author
Owner

Closing as implemented. internal/templates/issue_detail.html on master includes:

  • Issue title, state, labels, rendered markdown body
  • Comments section with user/timestamp
  • Apply Label action form (HTMX)
  • Close Issue and Add Comment handlers exist in handlers.go

Note: The close and comment action forms are handled via the handlers but the template Actions card currently only shows the label form. Adding close/comment form buttons to the template is a minor gap tracked by #29.

Closing as implemented. `internal/templates/issue_detail.html` on master includes: - Issue title, state, labels, rendered markdown body - Comments section with user/timestamp - Apply Label action form (HTMX) - Close Issue and Add Comment handlers exist in handlers.go Note: The close and comment action forms are handled via the handlers but the template Actions card currently only shows the label form. Adding close/comment form buttons to the template is a minor gap tracked by #29.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#59