Skip to content

Release: widget footer improvements and AI disclaimer#247

Merged
neuromechanist merged 1 commit intomainfrom
develop
Mar 2, 2026
Merged

Release: widget footer improvements and AI disclaimer#247
neuromechanist merged 1 commit intomainfrom
develop

Conversation

@neuromechanist
Copy link
Member

Summary

  • Configurable AI disclaimer above footer with faded orange background
  • Compact single-row footer: page context checkbox | Powered by OSA (hyperlinked)
  • Widget options: disclaimerEnabled, disclaimerText, disclaimerColor, disclaimerBackground
  • Color values validated against CSS color pattern (matches themeColor approach)
  • CSS injection fix: uses validated CSS custom properties instead of inline interpolation

From PR #246, reviewed by 3 specialized agents with all findings addressed.

Test plan

  • Widget renders disclaimer and compact footer correctly
  • All disclaimer options configurable and validated
  • PR review completed with all critical/important issues fixed
  • CI passing on develop

* Improve widget footer: AI disclaimer and compact layout

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

* Move disclaimer to bottom, add pipe separator

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.

* Update AI disclaimer wording

* Add faded orange background to AI disclaimer

* Make AI disclaimer configurable via widget options

Add disclaimerEnabled, disclaimerText, disclaimerColor, and
disclaimerBackground CONFIG options. Current values are defaults
that widget embedders can override.

* Address PR review findings

- 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)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Preview Deployment

Name Link
Preview URL https://develop-demo.osc.earth
Branch develop
Commit 4f8295c

This preview will be updated automatically when you push new commits.

@neuromechanist neuromechanist merged commit 6a78df0 into main Mar 2, 2026
20 checks passed
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.

1 participant