Improve widget footer: AI disclaimer and compact layout#246
Merged
neuromechanist merged 6 commits intodevelopfrom Mar 2, 2026
Merged
Improve widget footer: AI disclaimer and compact layout#246neuromechanist merged 6 commits intodevelopfrom
neuromechanist merged 6 commits intodevelopfrom
Conversation
Add AI disclaimer banner below header noting the assistant is multi-agent AI and can make mistakes. Merge the page context checkbox and "Powered by" lines into a single row with checkbox on left and "Powered by OSA" (hyperlinked) with version on right. Closes #245
Contributor
Preview Deployment
This preview will be updated automatically when you push new commits. |
Move the AI disclaimer line from above the header to just above the footer row. Shorten text. Add pipe separator between the page context checkbox and the powered-by portion.
Add disclaimerEnabled, disclaimerText, disclaimerColor, and disclaimerBackground CONFIG options. Current values are defaults that widget embedders can override.
- Fix CSS injection: use validated CSS custom properties instead of interpolating config values into inline style attributes - Remove dead .osa-chat-footer CSS rule entirely - Replace separator span with ::after pseudo-element - Add null/undefined guard for disclaimerText - Validate disclaimerColor/disclaimerBackground with CSS color pattern before applying (matches themeColor approach)
Member
Author
PR Review FindingsReviewed by 3 specialized agents: code-reviewer, silent-failure-hunter, code-simplifier. Critical (1) -- Fixed
Important (3) -- Fixed
Nice-to-have (3) -- 2 Fixed, 1 Documented
All critical and important issues addressed in commit f37c380. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
disclaimerEnabled,disclaimerText,disclaimerColor,disclaimerBackgroundCloses #245
Test plan