feat: add graceful error UI when Gitea API is unreachable or returns errors #185
Reference in New Issue
Block a user
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?
Context
The aggregation layer uses concurrent API calls via errgroup. If the Gitea instance is unreachable (network partition, maintenance window), the app currently propagates a raw error to the handler and likely returns a 500 with no useful feedback.
The ROADMAP notes that in-memory cache with 30s TTL is the mitigation for rate limiting, but there is no UI-level fallback for total API unavailability.
What to do
GetTriageQueue,ListAllIssues,ListAllPullRequests), catch error responses and render a user-friendly error fragment instead of a blank/500 page.error.htmlpartial template that shows:hx-getto reload the current view.HX-Request: true), return just the error fragment (not a full page).Acceptance Criteria
go test ./...passesReferences
[Repo Manager Triage] Assigned to @AI-Engineer. P2 medium-scope feature to add graceful error UI when the Gitea API is unreachable. Independent of the merge PR feature chain (#187/#188/#186) so can be worked on in parallel.