Commit Graph
2 Commits
Author SHA1 Message Date
kemal.earth f314e6dc19 feat(studio): one click attribute filters in the unified logs overview panel (#53170)
## 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 &lt;attribute&gt;".
2026-11-09 18:12:43 +00:00
Jordi Enric 298fda50dc feat(logs): filter by any log attribute DEBUG-223 (#52513)
Support filtering log attributes through the picker and log details, preserving filters across URLs and query surfaces.

Fixes DEBUG-223.
2026-11-02 15:14:50 +01:00