Skip to content

Lead API search breadcrumbs with the API's mark and name - #4827

Merged
reakaleek merged 2 commits into
mainfrom
api-search-breadcrumb-ico-be3ee3f4
Nov 12, 2026
Merged

reakaleek merged 2 commits into
mainfrom
api-search-breadcrumb-ico-be3ee3f4

Conversation

@reakaleek

@reakaleek reakaleek commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

API search results now show which API each operation belongs to at a glance. The breadcrumb starts with the API's product mark, followed by its name.

Affects: Site UI, API reference

Prompt summary: Jan asks whether the API's icon can appear in the API search breadcrumbs, so readers see which API a result belongs to. The rows must not get overloaded with icons, and the mark should be a bit smaller than the first version.

Why

Search under the API tab mixes operations from Elasticsearch, Kibana, Logstash, ECE and Elastic Cloud. Today an operation row reads API / Elasticsearch API / Ingest, so a reader parses grey text to tell the APIs apart. Only an API's landing row shows its mark.

What

The mark replaces the redundant API crumb

Under the API tab, the leading API crumb repeats the tab label. The breadcrumb drops it and starts with the product mark and the API name instead, for example Elasticsearch API / Ingest with the Elasticsearch mark. The row gains one glyph and loses one word, so it carries the same visual weight.

The mark sizes to the breadcrumb text

The mark is 12px, the breadcrumb's font size (euiTheme.size.m), so it reads as part of the crumb rather than as a logo. The landing row keeps its 32px mark. Both use one ApiMark component that reads apiProductIconSvg, the same source the landing row already uses.

No generic glyph and no change outside the API tab

An API with no mark in apiProductIcons.ts shows its name alone, not a placeholder icon. Serverless and stack variants share a mark, and their names still tell them apart. Field rows inside an operation's card get no mark, and the "all" tab keeps its docs breadcrumbs.

Long breadcrumbs end in an ellipsis

Without the API crumb, many breadcrumbs have only two items. The last crumb now shrinks with an ellipsis instead of being clipped, so Elasticsearch API / Machine learning anomaly detection reads Elasticsearch API / Machine lear… on a phone. Middle crumbs still give up their width first. The docs breadcrumbs under the "all" tab share this component and get the same ellipsis.

Verify

mise run site:test
# SearchResultsList.test.tsx: "API operation rows" cases

🤖 Generated with Claude Code

Operation rows in API search now show which API they belong to at a glance. The breadcrumb starts with the product mark at the crumb's font size, followed by the API name. The leading `API` crumb is gone because the API tab already says it. An API without a mark shows its name alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@reakaleek
reakaleek requested a review from a team as a code owner November 12, 2026 09:01
@reakaleek
reakaleek requested a review from Mpdreamz November 12, 2026 09:01
@github-actions

Copy link
Copy Markdown
Contributor

Without the leading `API` crumb, an operation breadcrumb often has two items, and both were fixed width. On a narrow panel the group name was clipped with no ellipsis. The last crumb now shrinks with an ellipsis once the middle crumbs have given up their width. Raised in the Libra review of #4827.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@reakaleek
reakaleek merged commit ee69217 into main Nov 12, 2026
58 of 59 checks passed
@reakaleek
reakaleek deleted the api-search-breadcrumb-ico-be3ee3f4 branch November 12, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant