From bcaa1ed98dfbc155450e1beea91e32530eb5431d Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 13 Apr 2026 09:23:16 -0400 Subject: [PATCH] feat(templates): Add processing issues data types Add ProcessingIssueData and IssueStats types to templates/types.go for use in the processing issues management UI. These types support: - ProcessingIssueData: Individual issue details including ID, media item, file path, format, issue type, severity, and timestamps - IssueStats: Aggregated counts of issues by severity (error, warning, info) These types enable the admin UI to display processing issues from the database and provide statistics for the issues dashboard. --- templates/types.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/templates/types.go b/templates/types.go index 758032b..08e94a9 100644 --- a/templates/types.go +++ b/templates/types.go @@ -181,3 +181,23 @@ type Bookmark struct { Notes string CreatedAt time.Time } + +// ProcessingIssueData - Processing issue types +type ProcessingIssueData struct { + ID string + MediaItemID string + Title string + FilePath string + FormatGroup string + LibraryTypeName string + IssueType string + IssueDescription string + Severity string + CreatedAt time.Time +} + +type IssueStats struct { + ErrorCount int64 + WarningCount int64 + InfoCount int64 +}