Skip to content

Add Dual-Running Deprecation Notice Banner to Documentation Pages - #7

Merged
vkolosovski merged 1 commit into
v1betafrom
banner
Aug 27, 2026
Merged

Add Dual-Running Deprecation Notice Banner to Documentation Pages#7
vkolosovski merged 1 commit into
v1betafrom
banner

Conversation

@prasad-fernando-74

Copy link
Copy Markdown
Contributor

Adds the Figma "Banner / Dual-running" notice above the ReDoc documentation, pointing users at the new developer portal ahead of the 31-Dec-2026 cutover.

index.html:

  • banner styles, markup and a height-sync script, all namespaced op-banner
  • offset overrides so the MUI AppBar, the ReDoc sidebar and the content column shift down by the banner height
  • the script keeps --op-banner-h in sync with the banner's real rendered height, which grows when the copy wraps on narrow viewports (100px at desktop, ~204px at 375px wide)

static/js/main.ffea48a5.chunk.js:

  • scrollYOffset changed from the hardcoded 64 to a function returning the AppBar's live bottom edge. ReDoc uses this value for both the sticky sidebar top and anchor scrolling, so with a banner above it every sidebar click landed the target heading ~81px underneath the header. CSS cannot reach it. Reverting this single literal reproduces the previous bundle byte-for-byte.

Note: this repo is build output, so both changes are overwritten by the next release build. See BANNER.md.

Outstanding: the CTA label is still a placeholder ("Go to the new documentation") pending the exact wording, and the #101828 background is inferred rather than confirmed.

Adds the Figma "Banner / Dual-running" notice above the ReDoc documentation,
pointing users at the new developer portal ahead of the 31-Dec-2026 cutover.

index.html:
  - banner styles, markup and a height-sync script, all namespaced `op-banner`
  - offset overrides so the MUI AppBar, the ReDoc sidebar and the content
    column shift down by the banner height
  - the script keeps `--op-banner-h` in sync with the banner's real rendered
    height, which grows when the copy wraps on narrow viewports (100px at
    desktop, ~204px at 375px wide)

static/js/main.ffea48a5.chunk.js:
  - `scrollYOffset` changed from the hardcoded 64 to a function returning the
    AppBar's live bottom edge. ReDoc uses this value for both the sticky
    sidebar `top` and anchor scrolling, so with a banner above it every
    sidebar click landed the target heading ~81px underneath the header.
    CSS cannot reach it. Reverting this single literal reproduces the previous
    bundle byte-for-byte.

Note: this repo is build output, so both changes are overwritten by the next
release build. See BANNER.md.

Outstanding: the CTA label is still a placeholder ("Go to the new
documentation") pending the exact wording, and the #101828 background is
inferred rather than confirmed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a “dual-running” migration notice banner above the existing ReDoc-based API documentation, and adjusts layout/scroll behavior so the AppBar, sidebar, and anchor scrolling remain aligned with the new banner height.

Changes:

  • Injects an op-banner (styles + markup + height-sync script) into index.html and shifts existing UI down by the banner height.
  • Updates ReDoc’s scrollYOffset in the built JS bundle to use the AppBar’s live bottom edge instead of a hardcoded offset.
  • Adds BANNER.md documenting that these changes are build-artifact edits that must be re-applied after each release build.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
index.html Adds the banner + CSS offset overrides + script that syncs --op-banner-h.
static/js/main.ffea48a5.chunk.js Adjusts ReDoc scrollYOffset to account for banner/AppBar offset dynamically.
BANNER.md Documents the approach, rationale, and known follow-ups for the banner change.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread index.html
Comment thread static/js/main.ffea48a5.chunk.js
@vkolosovski vkolosovski self-assigned this Aug 27, 2026

@vkolosovski vkolosovski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@vkolosovski
vkolosovski merged commit 2b17166 into v1beta Aug 27, 2026
1 check passed
@prasad-fernando-74
prasad-fernando-74 deleted the banner branch September 7, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants