fix(home): raw JSON shown for unhandled comment_pull activity event type #375
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper#375
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The home activity feed shows raw JSON for
comment_pullevents instead of a formatted string:Root Cause
formatActivityDescininternal/tui/homeview.godoesn't have a case for thecomment_pullop type. It falls through to the defaultif a.Content != ""fallback, which displays the raw JSON verbatim.Existing Pattern
comment_issueis already handled (lines ~360-364 in homeview.go):Proposed Fix
Add
comment_pullto thecomment_issuecase informatActivityDesc. The Content format is the same[prNumber, commentText]JSON array:And optionally add an
opTypeLabelentry:Also consider adding
comment_pullto theactivityColormapping if a distinct color is wanted (currentlycomment_issueusesapp.ColorYellow).display error on home panelto fix(home): raw JSON shown for unhandled comment_pull activity event type