Skip to content

docs: Add Banner Configuration#3274

Merged
Yuan325 merged 4 commits into
mainfrom
add-banner
Jun 25, 2026
Merged

docs: Add Banner Configuration#3274
Yuan325 merged 4 commits into
mainfrom
add-banner

Conversation

@dishaprakash

@dishaprakash dishaprakash commented May 21, 2026

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 May 21, 2026 12:01

@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 refactors the existing migration banner into a more flexible and configurable general announcement banner system. The changes include introducing a configuration object for banner content, updating CSS for a responsive layout with a close button, and implementing session-based dismissal logic. Feedback provided highlights several areas for improvement: supporting internationalization by moving hardcoded strings to the Hugo configuration, restoring the sticky positioning of the banner, including the banner ID in the storage key to handle updates correctly, and addressing a potential XSS vulnerability by avoiding the use of innerHTML for content injection.

Comment thread .hugo/static/js/custom-layout.js
Comment thread .hugo/static/js/custom-layout.js
Comment thread .hugo/static/js/custom-layout.js
Comment thread .hugo/static/js/custom-layout.js
@dishaprakash dishaprakash added the docs: deploy-preview Label to trigger Github Action docs preview. label May 21, 2026
@dishaprakash dishaprakash assigned averikitsch and unassigned Yuan325 May 21, 2026
@dishaprakash dishaprakash added the priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. label May 21, 2026
@github-actions github-actions Bot removed the docs: deploy-preview Label to trigger Github Action docs preview. label May 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Preview Ready!

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

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

@averikitsch averikitsch added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label May 21, 2026
@Yuan325 Yuan325 removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 24, 2026
@Yuan325 Yuan325 enabled auto-merge (squash) June 24, 2026 22:32
@Yuan325 Yuan325 disabled auto-merge June 24, 2026 22:33
@Yuan325 Yuan325 enabled auto-merge (squash) June 24, 2026 22:33
@Yuan325 Yuan325 merged commit 41dfcb7 into main Jun 25, 2026
28 of 29 checks passed
@Yuan325 Yuan325 deleted the add-banner branch June 25, 2026 03:20
@github-actions

Copy link
Copy Markdown
Contributor

🧨 Preview deployments removed.

Cloudflare Pages environments for pr-3274 have been deleted.

github-actions Bot pushed a commit that referenced this pull request Jun 25, 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: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 41dfcb7
github-actions Bot pushed a commit to rodineyw/mcp-toolbox that referenced this pull request Jun 25, 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: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 41dfcb7
github-actions Bot pushed a commit to Jaleel-zhu/genai-toolbox that referenced this pull request Jun 25, 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: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 41dfcb7
github-actions Bot pushed a commit to pepe57/genai-toolbox that referenced this pull request Jun 25, 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: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 41dfcb7
Yuan325 pushed a commit that referenced this pull request Jun 25, 2026
github-actions Bot pushed a commit that referenced this pull request Jun 25, 2026
github-actions Bot pushed a commit to pepe57/genai-toolbox that referenced this pull request Jun 25, 2026
github-actions Bot pushed a commit to rodineyw/mcp-toolbox that referenced this pull request Jun 25, 2026
github-actions Bot pushed a commit to Jaleel-zhu/genai-toolbox that referenced this pull request Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants