feat: show deletion provenance on report badge#48
Merged
NotThatKindOfDrLiz merged 2 commits intomainfrom Apr 8, 2026
Merged
Conversation
When a reported event is gone from the relay, the badge now indicates why: 'Removed by Moderation' (with date tooltip) when our decision log has a delete action, 'Not Found on Relay' otherwise. Tooltip provides additional context for auto-hidden, user-banned, or unknown cases (likely author self-deletion).
ae075d4 to
77763b4
Compare
- Auto-hidden tooltip now checks !isAutoHideRestored to avoid claiming a causal link when the auto-hide was already reversed - Added isEventBanned branch for events banned via NIP-86 without a corresponding D1 decision record (previously fell through to 'Not Found') - Badge labels now cover: Removed by Moderation, Auto-Hidden, User Banned, Event Banned, Not Found on Relay - Added staleTime (30s) to useDecisionLog to prevent refetch on every report navigation (CLAUDE.md compliance)
Member
Author
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Member
|
Non-blocking: the tooltip content currently runs the same |
NotThatKindOfDrLiz
approved these changes
Apr 8, 2026
Member
NotThatKindOfDrLiz
left a comment
There was a problem hiding this comment.
This looks good. The provenance split is useful, the priority order is reasonable, and reusing existing decision-log data keeps the change nicely scoped.
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
useDecisionLogdata — no new API calls or backend changes.Surfaced by Aleysha's Apr 2 report batch — a deleted event with no indication of who removed it or why.
Test plan