Files
supabase/apps
kemalandClaude Opus 4.8 7037a0bd43 feat(studio): add cross-cutting "filter by user" to Unified Logs
Adds a dedicated ?user= filter that scopes logs to a single user across the
sources that can be positively attributed to them:
  - auth_logs via auth_event.actor_id / traits.user_email (+ raw event text,
    so failed signups with no auth.users row still match on their email)
  - postgres_logs when the id appears verbatim in the error text
edge/storage/realtime carry no per-user field and are auto-excluded while the
filter is active — never guessed via IP or timestamp proximity.

- ?user= is a dedicated search-param key (not the eq/neq filter array) since it
  gates sources rather than filtering one column; consumed in
  applySearchParamsFilter, composes with existing filters, inert when unset.
- Sidebar input (email or id; email resolves to id on submit) + persistent
  notice stating coverage is partial, with an empty-state hint that auth event
  logs may not be enabled. Reuses the identity-resolution queries.
- Inherits the otelUnifiedLogs endpoint/flag conditioning of the existing hooks.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 10:53:57 +01:00
..
2026-07-08 12:30:42 +10:00