Repository navigation
Lead API search breadcrumbs with the API's mark and name - #4827
Merged
Merged
Conversation
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]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4827/ |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
APIcrumbUnder the API tab, the leading
APIcrumb repeats the tab label. The breadcrumb drops it and starts with the product mark and the API name instead, for exampleElasticsearch API / Ingestwith 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 oneApiMarkcomponent that readsapiProductIconSvg, 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.tsshows 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
APIcrumb, many breadcrumbs have only two items. The last crumb now shrinks with an ellipsis instead of being clipped, soElasticsearch API / Machine learning anomaly detectionreadsElasticsearch 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