Skip to content

API Explorer: replace the operation section strip with a sticky row of section links - #4964

Merged
reakaleek merged 25 commits into
mainfrom
api-catalog-strip-links
Nov 19, 2026
Merged

reakaleek merged 25 commits into
mainfrom
api-catalog-strip-links

Conversation

@reakaleek

Copy link
Copy Markdown
Member

Why

  • Reviewers found the section strip on operation pages out of place. It read like a dashboard scorecard, with oversized counts and forced wrapping of media types such as application/json.
  • The counts ("3 parameters", "2 responses") do not help a reader decide anything. The quick links do help on long pages, such as Search a vector tile, where the parameters start far down.

What

  • Replace the strip with one quiet row of section links above the description: Overview, Path, Query, Body, Responses. The row stays under the header while scrolling and marks the section in view in blue, like the sidebar and the API switcher.
  • Show required privileges as a small block (label and tags) between the description and the parameters, instead of a strip cell or card.
  • Move Copy page from the rail to the end of the breadcrumb row. When both do not fit on one line, it wraps under the breadcrumbs.
  • Smaller fixes: rail labels use the same style as the navigation group labels, the EXAMPLES label sits on the breadcrumb line, a divider separates the article and the rail between 1024px and 1279px, and the mobile toolbar has less space above it.

Notes

  • Expand all shows in the row only once the reader reaches the collapsible sections. Before that, the in-page Expand all above Path parameters is the one in view.
  • Pages whose rail held only Copy page (such as the API landing page) now show an empty rail column on wide screens.
  • An alternative design, an On this page dropdown beside Copy page, was prototyped and set aside.

🤖 Generated with Claude Code

@reakaleek
reakaleek requested a review from a team as a code owner November 19, 2026 17:01
@reakaleek
reakaleek requested a review from akira28 November 19, 2026 17:01
Comment thread docs/data/openapi/api-explorer.md Resolved
Comment thread src/Elastic.ApiExplorer/_Layout.cshtml Resolved
@github-actions

Copy link
Copy Markdown
Contributor

reakaleek and others added 2 commits November 19, 2026 18:47
…eview by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w section keeps its anchor (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
reakaleek and others added 2 commits November 19, 2026 20:27
…wrapped (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eadcrumbs (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
reakaleek and others added 6 commits November 19, 2026 20:49
…review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e the intro (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
reakaleek and others added 2 commits November 19, 2026 21:31
Takes the new /docs/api/<key> page paths for the section toolbar journey.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…est (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…erflow test (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…er review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
reakaleek and others added 3 commits November 19, 2026 22:04
… links row (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Takes main's Floating UI placement for the Copy page menu and drops this
branch's own menu flip (the toggle handler, its CSS class and its test).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…(per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
reakaleek and others added 3 commits November 19, 2026 22:39
…and all hidden (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… Copy page never wraps it (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… at each width (per review by @infra-vault-gh-plugin-prod)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
const withCopy = trailLines();
// Beside the trail when the button starts on the trail's last line, under it when it starts below.
const trail = [...document.querySelectorAll('#breadcrumbs li')].map(li => li.getBoundingClientRect());
const beside = copy.getBoundingClientRect().top < Math.max(...trail.map(r => r.bottom));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: P3 (Low)

This check can count Copy page as “beside” the trail even if the button is entirely above it or sits to its left. The wide-screen cases can therefore pass while Copy page no longer ends the breadcrumb row. Check that the button overlaps the last breadcrumb line vertically and sits to its right, and check separately that it is below the trail when wrapped.

Generated by Libra. React with 👍 or 👎 to give feedback on this comment.

Comment on lines +186 to +188
900px: Copy page beside the trail True, trail wraps the same with and without it True
1280px: Copy page beside the trail False, trail wraps the same with and without it True
1680px: Copy page beside the trail True, trail wraps the same with and without it True

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: P3 (Low)

These fixed wrap expectations depend on the breadcrumb text from the live Cloud Connect spec. An upstream API title change can flip whether Copy page fits at 900px or 1280px and fail the journey even when the layout correctly adapts. Use fixed breadcrumb content for these cases, or derive the expected placement from the space the trail and button need.

Generated by Libra. React with 👍 or 👎 to give feedback on this comment.

@reakaleek
reakaleek merged commit 64cb668 into main Nov 19, 2026
44 checks passed
@reakaleek
reakaleek deleted the api-catalog-strip-links branch November 19, 2026 22:35
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.

2 participants