feat: implement PR detail view with diff stats and review form #60

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

Roadmap Reference

Phase 2, Section 2.2 — PR Detail View

What to do

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

  • All fields from issue detail (title, body as markdown, comments thread)
  • Plus: diff stat summary (files changed, insertions, deletions)
  • File list with per-file change counts
  • Mergeable status indicator (badge: mergeable / conflicts / unknown)
  • Review form at the bottom:
    • Textarea for review body
    • Radio group: Approve / Request Changes / Comment
    • Submit via HTMX hx-post to /pulls/{owner}/{repo}/{index}/review
    • On success, swap the form with a confirmation fragment

Acceptance Criteria

  • PR detail loads and renders markdown body and diff stats
  • Review form submits via HTMX without full-page reload
  • Mergeable status badge reflects the actual Gitea API value
  • go build ./... passes
## Roadmap Reference Phase 2, Section 2.2 — PR Detail View ## What to do Create internal/templates/pr_detail.html and connect to GET /pulls/{owner}/{repo}/{index}: - All fields from issue detail (title, body as markdown, comments thread) - Plus: diff stat summary (files changed, insertions, deletions) - File list with per-file change counts - Mergeable status indicator (badge: mergeable / conflicts / unknown) - Review form at the bottom: - Textarea for review body - Radio group: Approve / Request Changes / Comment - Submit via HTMX hx-post to /pulls/{owner}/{repo}/{index}/review - On success, swap the form with a confirmation fragment ## Acceptance Criteria - PR detail loads and renders markdown body and diff stats - Review form submits via HTMX without full-page reload - Mergeable status badge reflects the actual Gitea API value - go build ./... passes
AI-Manager added the P2agent-readymedium labels 2026-03-26 19:24:16 +00:00
Author
Owner

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

  • PR title, state, labels, rendered markdown body
  • Diff stats: +additions / -deletions / mergeable status
  • Submit Review form with Comment/Approve/Request Changes radio options and comment textarea
  • HTMX-powered form submission
Closing as implemented. `internal/templates/pull_detail.html` on master includes: - PR title, state, labels, rendered markdown body - Diff stats: +additions / -deletions / mergeable status - Submit Review form with Comment/Approve/Request Changes radio options and comment textarea - HTMX-powered form submission
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#60