-
Notifications
You must be signed in to change notification settings - Fork 613
Fix duplicate mock property and lint issues from email audit trail PR #4495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
892cea3
Expand email log auditing and filtering capabilities
builderio-bot 56f4538
Fix PR review findings: redact auth links, coerce date filters, bound…
builderio-bot f70abd9
fix lint formatting and add changeset for email audit trail
builderio-bot 45f5a36
Expand email log auditing and filtering capabilities
builderio-bot b120708
Fix PR review findings: redact auth links, coerce date filters, bound…
builderio-bot bf02785
fix lint formatting and add changeset for email audit trail
builderio-bot 66c698e
remove raw body
liamdebeasi d0277a6
Merge remote-tracking branch 'refs/remotes/origin/ai_main_4a3db45f528…
builderio-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "@agent-native/core": patch | ||
| "@agent-native/dispatch": minor | ||
| --- | ||
|
|
||
| Add a durable audit trail for every transactional email send attempt. The shared `sendEmail()` transport now records the outbound request payload (with auth links and message bodies redacted) and the raw provider response/status for both successes and failures, so Dispatch can show exactly what was sent, to whom, and why a send failed. The `list-email-log` action gained filters for recipient, sender, status, provider, and date range with stable pagination, and a new searchable "Send log" section was added to `/admin/transactional-email`. Magic-link sign-in emails are now tagged with a `core.magic-link` template id so they show up alongside other auth emails in the catalog and send log. |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Offset pagination is not stable while new sends arrive
The UI requests separate pages with
OFFSET, so a new send inserted between page requests shifts every later row: the next page can duplicate a row already shown or skip a row. Theidtie-breaker only stabilizes equal timestamps; use a cursor/keyset boundary based on the last(created_at, id)or a fixed snapshot cutoff for the paging session.Additional Info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed. The offset-based pagination pattern flagged here (
LIMIT ? OFFSET ?withcreated_at DESC, id DESCtie-break) is pre-existing — it was introduced by the already-merged #4357 and is unchanged by this PR, which is scoped only to the TS1117 duplicate-property fix in thelog.spec.tsmock andoxfmtformatting. I also confirmed the same offset pattern is already live onmaintoday (including in the newer, further-evolved implementation merged via #4496/#4504), so this isn't a regression this branch introduces. Agreed it's a real limitation for high-volume concurrent sends, but a keyset/cursor rework is a scope change for an admin log's pagination, not a lint fix — leaving it for a separate follow-up rather than bundling it here.