Skip to content

Commit 5d24ba6

Browse files
tung2744claude
andcommitted
Hide Fraud protection decision recorded in Audit Log
Users can see fraud protection decisions in the dedicated Fraud Protection tab, so hiding this event type from the main Audit Log to reduce duplication with SMS Sent events. ref DEV-3584 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 89a5cb3 commit 5d24ba6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

portal/src/graphql/adminapi/AuditLogScreen.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,14 @@ const ADMIN_ACTIVITY_TYPES = ALL_ACTIVITY_TYPES.filter(
5353
(activityType) =>
5454
activityType.startsWith("ADMIN_API") || activityType.startsWith("PROJECT")
5555
);
56+
// Activity types to hide from the audit log (shown elsewhere in the portal)
57+
const HIDDEN_ACTIVITY_TYPES = [
58+
AuditLogActivityType.FraudProtectionDecisionRecorded,
59+
];
5660
const USER_ACTIVITY_TYPES = ALL_ACTIVITY_TYPES.filter(
57-
(activityType) => !ADMIN_ACTIVITY_TYPES.includes(activityType)
61+
(activityType) =>
62+
!ADMIN_ACTIVITY_TYPES.includes(activityType) &&
63+
!HIDDEN_ACTIVITY_TYPES.includes(activityType)
5864
);
5965

6066
enum AuditLogKind {

0 commit comments

Comments
 (0)