the filter pills do not translate HM URLs to readable names as the value input

The filter popover right now renders pills at the top with the filters applied, but when the attribute stores HM URLs we show the raw value and it looks bad:

image

the same way we show "horacio" in the value selector below, we must show "horacio" in the pill at the top that says "Owner IS hm://z6Mkvz..."

We should also add a limit to the size of the value we show use ellipsis in those cases. we can limit to 18 characters maximum.

Solution

Filter pills now show readable names (for example, “Owner IS horacio”) instead of raw HM URLs, falling back to the raw value when no name exists. Values longer than 18 characters are shortened to 17 characters plus an ellipsis. The full text remains in the title and accessible label; the stored filter value remains unchanged.

Root cause: FilterPopover in frontend/packages/ui/src/query-block-content.tsx built pill text from raw filter.value, ignoring filterOptions[columnId].labels already used by FilterValuePicker. There was no length limit, so long URLs wrapped and overflowed the popover.

Verification reported by T3: Two regression tests failed against unmodified code and passed with the fix. After rebasing onto latest origin/main, the two UI test files (query-block-content.test.tsx and document-collection-sort.test.tsx) passed all 64 tests. UI and editor package typechecks passed, and Prettier checks passed on all three changed files. Visual reproduction used a temporary Vite test-harness page in Playwright Chromium at 1280×800.

Not verified: Local agent-ci and desktop/web application typechecks were not run. The headless browser does not draw native title tooltips, so the hover screenshot does not verify tooltip rendering.

Before / After

Before: raw HM URL and overflowing filter pill

Before — Unmodified code: the Owner pill shows the raw HM URL and wraps past the popover edge, while the value picker below shows “horacio”; the long Name value is not truncated.

After: readable name and truncated filter value

After — With the fix: the pills read “Owner IS horacio” and “Name contains a very long searc…” (value capped at 18 characters).

After: truncated pill hovered

After, hovered — The truncated pill is hovered; the headless browser does not draw the native title tooltip.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Connections0
the filter pills do not translate HM URLs to readable names as the value inputthe filter pills do not t…
Citations 0Children & links 0

Loading child documents…

Connections show where other documents or comments link to this document.

Related documents

Loading connections…