feat(email-service): add Error Report tab with delivery failure analysis#2066
Open
ornokreans wants to merge 2 commits into
Open
feat(email-service): add Error Report tab with delivery failure analysis#2066ornokreans wants to merge 2 commits into
ornokreans wants to merge 2 commits into
Conversation
andypf
reviewed
May 27, 2026
Collaborator
andypf
left a comment
There was a problem hiding this comment.
Look good but I'm missing tests. Could you please add some tests?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an Error Report tab to the Email Service widget that provides delivery failure analysis for the current project, giving operators a quick overview of what is failing and why without having to sift through individual mail log entries.
Changes Made
ErrorReportcomponent (ErrorReport.tsx) — full-page report view with summary stat cards, a day-range selector (persisted tolocalStorage), and interactive bar-chart rankings that filter a detail table on click.Error Reporttab inAppContent.tsx— inserted between Setup and Maillog; tab selection is synced to the URL hash (#error-report) for deep-linking.reportDataFn+useGetReportDatahook — fetches/v1/reportvia the existing API infrastructure and exposes typed response interfaces (Report,RankingList,ReportSearchResponse, etc.) inactions.ts/queries.ts.fetchFromAPI— refactored tofetchFromAPI<T>so it can be reused for both mail-search and report endpoints without duplicating response-handling logic; removed now-redundantcheckStatushelper.tag[]filter field toMailSearchOptions, addedresponsefield toMailLogEntry, and addedenabledprop touseGetDatato support conditional queries.Related Issues
Checklist