[Fraud Protection] Add overview and logs tabs to the portal#5791
Open
jimmycwc wants to merge 5 commits into
Open
[Fraud Protection] Add overview and logs tabs to the portal#5791jimmycwc wants to merge 5 commits into
jimmycwc wants to merge 5 commits into
Conversation
Add hourly timeBuckets to the fraud protection overview query for the requests-by-action chart, and resolve the dominant geo country per source IP via a two-query merge instead of a correlated subquery. Co-authored-by: Cursor <cursoragent@cursor.com>
Add an optional time picker to DateRangeDialog/DateTimePicker, let DateRangeFilterDropdown render a custom range label, and add a formatCustomDateRangeLabel helper for compact date range display. Co-authored-by: Cursor <cursoragent@cursor.com>
Add the requests-by-action stacked bar chart (hourly for 24h, daily for 7d), wire the overview metrics, SMS destinations, IP locations and top source IPs to real query data, and register the Chart.js Legend plugin. Co-authored-by: Cursor <cursoragent@cursor.com>
Add a customizable columns dropdown with persisted visibility, make the filter bar responsive, fetch logs and log details from the Admin API, and remove the experimental Logs B tab variant. Co-authored-by: Cursor <cursoragent@cursor.com>
Format the logs timestamp column with formatDatetime instead of showing the raw ISO string, and restore the default-visible optional columns (reason codes, IP country) when stored preferences are empty. Co-authored-by: Cursor <cursoragent@cursor.com>
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 the Fraud Protection Overview and Logs experiences to the portal, backed by real Admin API data.
fraudProtectionLogsquery, with customizable columns (persisted per app), result/reason-code/date-range filters, and a log detail screen.formatDatetime(instead of the raw ISO string), and restore default-visible optional columns (reason codes, IP country) when stored preferences are empty.Test plan
make -C portal typecheckpassesMade with Cursor