From 1c0b24e3cfe783289428b9f28891882cdb86019f Mon Sep 17 00:00:00 2001 From: maphew Date: Sat, 8 Nov 2025 15:07:43 -0700 Subject: [PATCH] fix: display closing reason in issue detail Recent Events section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The closing reason was being captured and stored in the database but not displayed in the UI. Updated the Recent Events section in detail.html to show the event comment (which contains the closing reason), the actor who made the change, and status transitions. This makes the closing reason visible to users when viewing an issue's audit trail. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- CLAUDE.md | 3 ++- assets/beady/templates/detail.html | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 7ae74c8..14a2b4d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -239,10 +239,11 @@ Write operations use [HTMX](https://htmx.org/) for dynamic updates: **Issue Detail Page** ([detail.html](assets/beady/templates/detail.html)): - Status/Priority dropdowns with inline update -- Close button with modal dialog for reason +- Close button with modal dialog for reason (reason stored in event audit trail) - Comment form that reloads page on submit - Label add/remove with inline controls - Notes section with edit form in collapsible details +- Recent Events section showing audit trail with timestamps, actors, event types, and details (e.g., closing reasons for StatusChanged events) - All actions include username from localStorage **Issue Creation** ([issue_form.html](assets/beady/templates/issue_form.html)): diff --git a/assets/beady/templates/detail.html b/assets/beady/templates/detail.html index 3f236c3..3b65c49 100644 --- a/assets/beady/templates/detail.html +++ b/assets/beady/templates/detail.html @@ -186,7 +186,11 @@

Comments

Recent Events

{{if not .Events}}

No recent events.

{{end}}