Repository navigation
Reword the API reference banner without the Beta label - #4962
Conversation
The banner called the API reference beta and said it joined the main Elastic docs. Readers can't opt in or out of a beta, and the docs were already on elastic.co/docs, so the label and the middle sentence told them nothing. The banner now says the API reference has a new engine and a fresh look, and invites feedback. The feedback dialog intro drops the same "still tuning" message, and the CSS for the Beta pill and the hidden middle sentence goes with it.
| It's now part of the main Elastic docs, and we're still tuning it.</span> | ||
| If something looks wrong or is missing, | ||
| <a class="api-beta-banner__link" href="https://github.com/elastic/docs-content/issues/new?template=issue-report.yaml&labels=source:web">let us know</a>.</p> | ||
| We're giving our API reference a new engine and a fresh look. |
There was a problem hiding this comment.
Severity: P3 (Low)
All four banner snapshots put the opening sentence on a new line, but MatchHtmlSnapshot() keeps text that immediately follows <p> on the same line as the tag. Regenerate the four snapshots from the rendered partial so the tests don’t fail on this mismatch.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
There was a problem hiding this comment.
Regenerated the two dialog snapshots from the rendered partial in 4609f7c. The two link-only snapshots already pass unchanged in CI, so I left them as they are.
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4962/ |
The dialog opens from the banner link, but its title and intro only spoke about this page. The title now invites feedback in general. The intro ties the dialog to the new API reference and tells readers to choose Yes or No first, because the reasons and the comment box only show after that choice.
# Conflicts: # tests/Elastic.ApiExplorer.Tests/.snapshots/ApiBetaBannerTests/Render_FeedbackOnWithTheDesignSystem_OpensTheDesignSystemWidgetInADialog.verified.html # tests/Elastic.ApiExplorer.Tests/.snapshots/ApiBetaBannerTests/Render_FeedbackOn_OpensThePageFeedbackInADialog.verified.html
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
| } | ||
| <aside id="api-beta-banner" class="api-beta-banner" aria-label="About this API reference"> | ||
| <p class="api-beta-banner__message"><span class="api-beta-banner__label">Beta</span> This is our new API reference.<span class="api-beta-banner__detail"> It's now part of the main Elastic docs, and we're still tuning it.</span> If something looks wrong or is missing, @if (opensDialog){<a class="api-beta-banner__link" href="@Model.BetaBanner.FeedbackUrl" data-api-beta-feedback-open="@dialogId" aria-haspopup="dialog">let us know</a>}else{<a class="api-beta-banner__link" href="@Model.BetaBanner.FeedbackUrl">let us know</a>}.</p> | ||
| <p class="api-beta-banner__message">We're giving our API reference a new engine and a fresh look. @if (opensDialog){<a class="api-beta-banner__link" href="@Model.BetaBanner.FeedbackUrl" data-api-beta-feedback-open="@dialogId" aria-haspopup="dialog">We'd love to hear what you think</a>}else{<a class="api-beta-banner__link" href="@Model.BetaBanner.FeedbackUrl">We'd love to hear what you think</a>}.</p> |
There was a problem hiding this comment.
Severity: P3 (Low)
When page feedback is off, “We'd love to hear what you think” sends readers to a public GitHub issue form that requires them to describe a documentation problem. Label the fallback as an issue-report link so readers don't follow a general feedback invitation they can't use.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
| </header> | ||
| <div class="api-beta-feedback__content"> | ||
| <p class="api-beta-feedback__intro">This API reference is new, and we're still tuning it. Tell us what looks wrong or is missing.</p> | ||
| <p class="api-beta-feedback__intro">Tell us what looks wrong or is missing.</p> |
There was a problem hiding this comment.
Severity: P3 (Low)
The banner now invites general feedback, but the dialog still tells readers to report only what's wrong or missing. Both widgets accept a Yes response, so use a neutral intro that explains the Yes/No step instead of discouraging positive feedback.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
The banner above every API page now reads: "We're giving our API reference a new engine and a fresh look. We'd love to hear what you think." The link still opens the feedback dialog, or the issue form where page feedback is off.
The old banner called the reference beta and said it joined the main Elastic docs. Readers can't opt in or out of a beta, and the API docs were already on elastic.co/docs, so both phrases described the project instead of helping the reader. Agreed in the Slack thread with Martijn.
Betapill, the middle sentence, and the CSS that styled and hid them, inapi-docs.cssandapi-reference.css.ApiBetaBannerTestssnapshots by hand. The tests pass in CI on all three platforms.Possible follow-up for the team: #4963 (let readers give positive and negative feedback in the same popover).