Skip to content

Add a finder to the all-APIs landing page - #4539

Merged
akira28 merged 6 commits into
mainfrom
feature/api-explorer-add-search
Oct 22, 2026
Merged

akira28 merged 6 commits into
mainfrom
feature/api-explorer-add-search

Conversation

@akira28

@akira28 akira28 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The all-APIs landing page now has the same finder as the API sidebar, so a reader can jump to an API or endpoint without knowing which product it belongs to.

Affects: API reference, Site UI

Prompt summary: Add a box to the API Explorer landing page that lists all Elastic APIs, matching the one on single API pages. It covers every API listed there. elastic/docs-eng-team#1070 tracks the request, and its comment asks for a word other than "search" in the label.

Why

On the landing page, readers can only scroll or use browser find to locate an API or endpoint. Single API pages already have a finder, so the two levels behave differently.

What

Finder in the title band

The catalog hero hosts the navigation-search component with type="api", under the lede. It is the box from the API sidebar, so it looks up operations across every API and not only one product. Pressing / outside a text field focuses it, because no other finder is mounted on this page. It appears in both the classic and the navigation-preview hero.

Same availability as the sidebar finder

The box shows only where ApiLayoutViewModel.ShowJumpToPage is true: assembler builds that are not air-gapped. Isolated and air-gapped builds keep the page as it was.

Label avoids "search"

The placeholder is Press ❲/❳ to find API, as in #4511. The docs call the box a finder, per the issue comment. docs/data/openapi/api-explorer.md describes it, and a small .api-catalog-finder rule in api-docs.css sizes it to the lede.

Verify

dotnet test tests/Elastic.ApiExplorer.Tests/
# GenerateCatalog_Finder_AppearsOnlyWhereTheSidebarHasOne — one finder on assembler builds, none on isolated

Check on the preview

  • All APIs — type an endpoint name in the box under the title: matches from several APIs list, and / focuses the box.
  • Elasticsearch API — control page: the sidebar finder is unchanged.

Out of scope: the box finds operations only. Indexing every API spec version is tracked in elastic/docs-eng-team#724.

Closes elastic/docs-eng-team#1070

🤖 Generated with Claude Code

Readers could only scroll or use browser find to locate an API or endpoint on the catalog page. The title band now hosts the same `navigation-search` box as the API sidebar, which looks up operations across every API. It follows the sidebar rule: assembler builds only, not air-gapped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@akira28
akira28 requested a review from a team as a code owner October 21, 2026 17:34
@akira28
akira28 requested a review from technige October 21, 2026 17:34
Comment thread src/Elastic.Documentation.Site/Assets/api-docs.css Outdated
The preview hero sits outside `.api-catalog`, so the scoped `.api-catalog-finder` rule never applied there. The rule now targets the finder alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4539/

Sample changed pages:

akira28 and others added 4 commits October 21, 2026 21:19
The preview hero is left-aligned, but the finder's auto margins centred it in the band. It now keeps the hero's alignment, and the custom element fills its container.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
`EuiInputPopover` caps itself at 400px unless it is full width, so the box sat at the left edge of the finder while the title and lede were centred. The cap is lifted inside `.api-catalog-finder` only, so the sidebar box is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The box is rendered by script, so the cards below moved down when it appeared. The container now holds the input's 34px height from the first paint.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The sidebar box is rendered by script as well, so the navigation tree moved down when it appeared. The min-height now sits on `navigation-search[variant='sidebar']`, which covers the sidebar and the landing page with one rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@akira28
akira28 merged commit 24aa593 into main Oct 22, 2026
32 checks passed
@akira28
akira28 deleted the feature/api-explorer-add-search branch October 22, 2026 09:28
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