Skip to content

feat(console): make audit log event filter searchable#8651

Merged
charIeszhao merged 1 commit into
logto-io:masterfrom
devadarshh:feat/console-audit-log-search
Apr 13, 2026
Merged

feat(console): make audit log event filter searchable#8651
charIeszhao merged 1 commit into
logto-io:masterfrom
devadarshh:feat/console-audit-log-search

Conversation

@devadarshh
Copy link
Copy Markdown
Contributor

Summary

Closes #7656.

The audit log and webhook log Event filters used a long dropdown that was hard to scan and did not support searching by the labels users actually read.

This PR:

  • Enables isSearchEnabled on the shared EventSelector, which is used for Audit logs and Webhook → Logs event filtering.
  • Updates the design-system Select component so that, when search is active, the trimmed query matches each option’s value (internal log key) and, when title is a string, the visible label as well. A whitespace-only query shows the full option list.

Users can now narrow events with everyday keywords (for example “captcha” or “passkey”) instead of scrolling the entire list or guessing internal key names.

Testing

Manual verification in the Admin Console (local development):

  1. Open Audit logs, open the Event dropdown, and confirm the Type to search field appears.
  2. Enter a word that appears mainly in the visible label (for example captcha) and confirm only matching events remain in the list.
  3. Enter a substring of an internal key (for example Interaction) and confirm filtering still works.
  4. Clear the search text, close and reopen the dropdown, and use the clear control on the selector; confirm the table and filter behavior match expectations.
  5. Open Webhooks → select a webhook → Logs, open the Event dropdown, and repeat a quick search to confirm the shared selector behaves correctly there too.

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@github-actions
Copy link
Copy Markdown

COMPARE TO master

Total Size Diff 📈 +230 Bytes

Diff by File
Name Diff
packages/console/src/components/AuditLogTable/components/EventSelector/index.tsx 📈 +22 Bytes
packages/console/src/ds-components/Select/index.tsx 📈 +208 Bytes

Copy link
Copy Markdown
Member

@charIeszhao charIeszhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@charIeszhao charIeszhao merged commit 85ebf16 into logto-io:master Apr 13, 2026
33 checks passed
@charIeszhao
Copy link
Copy Markdown
Member

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

feature request: Make audit log event filter searchable

2 participants