## Problem
Filtering via properties in the Overview tab of Unified Logs had a
couple of clicks to it.
## Solution
Attribute rows now expose equals and not-equals directly, through one
shared code path.
- **Hover devices** (`(hover: hover) and (pointer: fine)` above `md`):
hovering or keyboard-focusing a row reveals borderless icon buttons at
its right edge — equals, not equals, copy — following the same reveal
pattern as the "Only" button on the sidebar filters. The value fades out
behind them so nothing is occluded or reflowed.
- **Touch devices and small viewports**: unchanged dropdown, now listing
"Filter: equals", "Filter: not equals" and "Copy <attribute>"
instead of the single "Add filter".
- Only rows that can actually be filtered get filter actions; everything
else gets copy alone.
| Before | After |
|--------|--------|
| <img width="451" height="191" alt="Screenshot 2026-11-09 at 16 12 08"
src="https://github.com/user-attachments/assets/ffc68a34-4373-44ea-8922-8f5b3dd436a0"
/> | <img width="465" height="148" alt="Screenshot 2026-11-09 at 16 12
25"
src="https://github.com/user-attachments/assets/0bf41014-25d7-4390-ba5f-ab7a796ec1de"
/> |
## Review instructions
1. Open the preview, go to a project's Logs, and click a log row to open
the detail dock on the Overview tab.
2. Hover a filterable row (Path, Method, Status, or any attribute).
Equals, not-equals and copy buttons fade in at the right edge; the value
fades out. Tab into them to check the focus rings and tooltips.
3. Click the equals button on Path. The filter appears in the filter bar
and the log list updates. Do the same with not-equals on another row and
confirm the chip uses `<>`.
4. Hover a row that can't be filtered (for example Host or Client). Only
the copy button appears, and no filter action is offered.
5. Apply the same filter twice — no duplicate chip. Then apply the
opposite operator on that column — the chip's operator is replaced
rather than mixed.
6. Narrow the window below 768px (or use a touch device). The hover
buttons disappear and clicking a row opens the dropdown with "Filter:
equals", "Filter: not equals" and "Copy <attribute>".
Add a Timeline tab that displays related request logs and opens a
selected step in the overview. The panel summary, timestamp, and
navigation controls follow the active log.
Long timelines show the first three steps and retain the active log in
its chronological position. Separate controls count hidden rows before
and after it, for example `+3 more`, the active log, then `+2 more`.
Expanding either control restores the full order. Query construction and
fetching are reviewed separately in #50840.
### How to test
1. With `otelUnifiedLogs` enabled, open a non-compute log with related
request activity and select Timeline. Check chronological order, then
select a step and confirm its overview and panel summary update.
2. Expand a long timeline, select a later step, and return to Timeline.
The active step should stay in order, with separate hidden counts above
and below. For nine steps with the seventh active, expect `+3 more`, the
active step, then `+2 more` after the first three steps. Expand using
both mouse and Enter.
3. If a long request is unavailable, run the deterministic
folding/navigation cases: `pnpm --filter studio exec vitest run
components/interfaces/UnifiedLogs/components/RequestTimeline.platform.test.tsx
components/interfaces/UnifiedLogs/components/LogTimeline.utils.test.ts`.
### Validation
- Focused local unit/MSW suite: 260 tests passed across 18 files with
`--retry=0 --sequence.shuffle --sequence.seed=5083605`.
- Browser QA verified a real five-step request timeline and folding.
Nine-step folding and active-log ordering were verified with
deterministic fixtures.
- All checks triggered on head `6b80811bae` passed.
- Master-only typecheck, unit, formatting, and lint workflows do not run
against this stack base. Rerun them when the PR is retargeted to
`master`.
### Stack
Based on the logs table building blocks stack, which merges first:
#50953 → #50954 → #50955 → #50957 → #50958 → #52281. Then merge in
order:
1. #50835 — grouped log overviews and raw JSON
2. #50840 — request correlation queries
3. #50836 — request timeline UI and folding
4. #50841 — shared Auth user details
5. #50837 — log user correlation and Auth activity
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
Logs without a service-specific overview now show common fields and
attributes in collapsible groups. Existing service overviews use the
same section layout, with the first section open. Configured fields
share one renderer across service overviews. Raw JSON uses shared
presentation for single-log, multi-log, and downstream Auth views, with
copy controls supplied by each view.
Attribute lookups are scoped to the selected log's source, ID, and
timestamp window and respect metadata visibility. It's based on the
#50953 stack; request correlation, timeline UI, and Auth changes are
separate layers. Sections use the `CollapsibleDetailSection` that master
now shares with the audit log pages, and the new Supavisor overview
follows the same layout: no separate time header, first section open.
### How to test
1. With Unified Logs and `otelUnifiedLogs` enabled, open an API Gateway
log and a Postgres or Auth log. Check the overview sections,
expand/collapse groups, and try copying a field.
2. Open Raw JSON on a log with enough metadata to scroll. Confirm the
copy button stays visible and copies the complete JSON.
3. Select multiple logs and confirm their combined JSON still renders
correctly.
### Validation
- Synced with master; verified head
`663ebfd13117ae3c5aa0de52e4488253a317d59f`.
- Focused local unit/MSW suite: 246 tests passed across 19 files with
retries disabled, both normally and with `--sequence.shuffle
--sequence.seed=50835`. Independent focused run: 24 tests passed with
seed 5083528.
- Browser QA on the matching studio-staging preview passed: API Gateway
and Postgres section expansion/collapse, field copying, scrolling and
copying complete Raw JSON, and copying multiple selected logs.
- All four unit-test shards, all four E2E shards, typecheck, formatting,
lint ratchet, and Studio Docker build passed. The Next.js E2E report
includes one storage-folder test that passed on retry.
- Independent code review found no actionable issues. Working tree
clean.
### Stack
Based on the logs table building blocks stack, which merges first:
#50953 → #50954 → #50955 → #50957 → #50958 → #52281. Then merge in
order:
1. #50835 — grouped log overviews and raw JSON
2. #50840 — request correlation queries
3. #50836 — request timeline UI and folding
4. #50841 — shared Auth user details
5. #50837 — log user correlation and Auth activity
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
## Context
Supavisor logs in the Unified Logs interface didn't have much detail as
compared to the old logs UI - was happening as there wasn't any custom
log detail fetcher nor logs overview UI defined for Supavisor logs.
So this PR adds them both to render a Supavisor log as such:
<img width="1919" height="957" alt="Screenshot 2026-10-22 at 17 46 46"
src="https://github.com/user-attachments/assets/33077e81-5a20-4c7b-a322-f8aa2faf73d5"
/>
<img width="1918" height="956" alt="Screenshot 2026-10-22 at 17 46 57"
src="https://github.com/user-attachments/assets/00fd7e55-8b57-45dd-b387-e57cd1d30881"
/>
## To test
Easiest way to test that I can think of is to make some connections with
the shared pooler and run some queries
Get your connection string from the Connect UI as such:
<img width="908" height="520" alt="image"
src="https://github.com/user-attachments/assets/977d1d2c-a76e-4adf-b6d3-42f0862f0609"
/>
And then I did it locally via Claude for the lowest friction:
```
im trying to generate some logs for my project's supavisor
this is the connection string
<Insert connection string>
can you help me make some connections, run some queries or two then exit?
```
## Context
This is largely just a mechanical change here:
Opting to use lucide icons with the `Icon` suffix across all icon
imports within `studio`
- so that it’s clearer which components are icons + reduces the
possibility of name collision with our own components
- e.g <User /> vs <UserIcon />
Also added a eslint rule for this:
<img width="1069" height="167" alt="image"
src="https://github.com/user-attachments/assets/7f36f443-5ca2-4bf6-8d22-86e774513bfc"
/>
And updated `AGENTS.md` as such:
```
Icons come from `lucide-react`, always imported with the `Icon` suffix (`import { CheckIcon, Trash2Icon } from 'lucide-react'`) — never the bare names (`Check`) or `Check as CheckIcon` aliases (lint-enforced).
```
## Context
This one's just something that I thought about while doing some
debugging - our audit logs UI is pretty outdated and hard to skim as the
information is very sparse. This is how it currently looks like
(specifically Account audit logs for this PR, there's also org audit
logs):
<img width="1450" height="957" alt="image"
src="https://github.com/user-attachments/assets/4b69511e-1d4f-4725-8ea9-78ddacf76942"
/>
<img width="1450" height="954" alt="image"
src="https://github.com/user-attachments/assets/ec099f52-adef-499c-965a-11b8404bf235"
/>
Am opting to follow the same UX as that of our Unified Logs, so opting
to update the UI as such:
<img width="1451" height="958" alt="Screenshot 2026-09-23 at 22 04 33"
src="https://github.com/user-attachments/assets/016bd26d-4078-42dc-9ff2-5bae9edbc1b2"
/>
<img width="1451" height="957" alt="Screenshot 2026-09-23 at 22 16 09"
src="https://github.com/user-attachments/assets/f038b635-1359-4710-bc84-0f32ace1fb82"
/>
<img width="1450" height="956" alt="Screenshot 2026-09-23 at 22 16 37"
src="https://github.com/user-attachments/assets/7230b94a-c7ec-4550-bb55-5405ebc074a7"
/>
More importantly, we'll allow users to copy logs as JSON so users can
eject to their own agent if needed
<img width="1201" height="350" alt="image"
src="https://github.com/user-attachments/assets/587ab881-a501-41e6-8c9b-59191a2b2047"
/>
## To test
- [ ] Mainly just need to make sure that account audit logs still works
as expected - it's all read only so just need to ensure that all
information that's available before, is still available
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Browse account activity logs with date-range and project filters,
project search, sorting, and refresh controls. Results automatically
refresh every five minutes.
* Choose preset date ranges, select individual logs or ranges of rows,
and copy selected entries as formatted JSON.
* Open a log to view request, actor, target, and action details, or
inspect and copy its raw data.
* Select log rows with a mouse or keyboard, and view loading, error,
empty-results, and filtered-empty states.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
<img width="1086" height="810" alt="image"
src="https://github.com/user-attachments/assets/8a9f0c64-145e-4475-a3df-67bd815e2200"
/>
Stack 2/4 · previous: #50686 · next: #50688
## Problem
The detail panel only showed an Overview tab for log types that have an
inspection query. Every other type opened straight to Raw JSON. The
panel also had no header saying which log was open.
## Solution
- Adds `LogDetail`, which owns the inspection query, loading and error
states, and the Raw JSON view. Errors now use `AlertError`.
- Adds `LogOverview`, which maps each log type to its overview renderer.
Types without one fall back to the new `LogFields`, a generic tree of
expandable key/value rows built on `LogFieldRow`.
- `ServiceFlowPanel` now shows a header (level dot + event message)
above Overview / Raw JSON tabs for every log.
- Moves `getLogDataForMetadataVisibility` to `ServiceFlowPanel.utils.ts`
and adds `LogLevelDot`.
## Review instructions
1. Select a Realtime (or any other non-inspected) log. The Overview tab
should list its fields, with nested objects that expand.
2. Select a Postgres log. The overview should look as before, and Raw
JSON should still show the enriched log.
3. Switch between logs and confirm the tabs reset their scroll.
## Checklist
- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added structured log overviews for Postgres, PostgREST, Auth, Storage,
and Edge Functions, with a Raw JSON view for log details.
- Added expandable log fields with filtering and copy actions, plus
visual indicators for log severity.
- **Bug Fixes**
- Improved display of scalar, nested, date, and empty log values.
- **Privacy**
- Raw log data respects metadata visibility settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>