Skip to content

docs: Add Announcement Banner Configuration#3532

Merged
averikitsch merged 8 commits into
mainfrom
announcement-banner
Jul 6, 2026
Merged

docs: Add Announcement Banner Configuration#3532
averikitsch merged 8 commits into
mainfrom
announcement-banner

Conversation

@dishaprakash

Copy link
Copy Markdown
Contributor

This PR adds a general banner configuration with a sessionStorage to make the banner closable for a session for a user.

Before merging, please alter the title, message, linkText and linkURL

@dishaprakash dishaprakash requested a review from a team as a code owner June 26, 2026 10:00

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request replaces the hardcoded migration banner with a configurable announcement banner that includes a close button and session-based persistence. Feedback on these changes highlights a potential DOM-based XSS vulnerability in custom-layout.js due to the use of innerHTML with configuration values, suggesting a refactor to use safer DOM APIs like textContent. Additionally, it is recommended to add disableBanner = true to the Cloudflare configuration to preserve the previous behavior of keeping the banner disabled by default on Cloudflare Pages.

Comment thread .hugo/static/js/custom-layout.js
Comment thread .hugo/hugo.cloudflare.toml
@Yuan325 Yuan325 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 26, 2026
Comment thread .hugo/static/js/custom-layout.js
@averikitsch averikitsch added docs: deploy-preview Label to trigger Github Action docs preview. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Jul 6, 2026
@github-actions github-actions Bot removed the docs: deploy-preview Label to trigger Github Action docs preview. label Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Preview Ready!

🔎 View Preview: https://pr-3532.toolbox-docs-6xc.pages.dev

(Note: Subsequent pushes to this PR will automatically update the preview at this same URL)

Comment thread .hugo/static/js/custom-layout.js Outdated
@averikitsch averikitsch enabled auto-merge (squash) July 6, 2026 18:47
@averikitsch averikitsch merged commit 9d98bd6 into main Jul 6, 2026
27 checks passed
@averikitsch averikitsch deleted the announcement-banner branch July 6, 2026 19:04
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🧨 Preview deployments removed.

Cloudflare Pages environments for pr-3532 have been deleted.

github-actions Bot pushed a commit that referenced this pull request Jul 6, 2026
This PR adds a general banner configuration with a sessionStorage to
make the banner closable for a session for a user.

Before merging, please alter the title, message, linkText and linkURL

---------

Co-authored-by: Averi Kitsch <akitsch@google.com> 9d98bd6
github-actions Bot pushed a commit to rodineyw/mcp-toolbox that referenced this pull request Jul 6, 2026
This PR adds a general banner configuration with a sessionStorage to
make the banner closable for a session for a user.

Before merging, please alter the title, message, linkText and linkURL

---------

Co-authored-by: Averi Kitsch <akitsch@google.com> 9d98bd6
github-actions Bot pushed a commit to Jaleel-zhu/genai-toolbox that referenced this pull request Jul 6, 2026
This PR adds a general banner configuration with a sessionStorage to
make the banner closable for a session for a user.

Before merging, please alter the title, message, linkText and linkURL

---------

Co-authored-by: Averi Kitsch <akitsch@google.com> 9d98bd6
github-actions Bot pushed a commit to pepe57/genai-toolbox that referenced this pull request Jul 7, 2026
This PR adds a general banner configuration with a sessionStorage to
make the banner closable for a session for a user.

Before merging, please alter the title, message, linkText and linkURL

---------

Co-authored-by: Averi Kitsch <akitsch@google.com> 9d98bd6
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