Skip to content

[website/AI] Add consent-gated kapa.ai "Ask AI" widget - #3760

Merged
wuchong merged 1 commit into
apache:mainfrom
MehulBatra:website-kapa-askai-consent
Jul 27, 2026
Merged

wuchong merged 1 commit into
apache:mainfrom
MehulBatra:website-kapa-askai-consent

Conversation

@MehulBatra

Copy link
Copy Markdown
Contributor

Integrate the kapa.ai "Ask AI" assistant, modelled on the Apache Doris integration and compliant with the ASF privacy policy for third-party resources.

  • Privacy: data-consent-required makes kapa show its own consent screen and withhold all data from its backend until the user explicitly consents (remembered per device); analytics cookies disabled.
  • CSP: kapa + reCAPTCHA domains added to .htaccess CSP_PROJECT_DOMAINS, per kapa's official CSP guide.
  • UI: navbar "Ask AI" pill (cyan -> violet) opens the widget via data-modal-override-open-selector; kapa's own floating button hidden.

Purpose

Linked issue: close #xxx

Brief change log

Tests

API and Format

Documentation

Integrate the kapa.ai "Ask AI" assistant, modelled on the Apache Doris
integration and compliant with the ASF privacy policy for third-party
resources.

- Privacy: data-consent-required makes kapa show its own consent screen
  and withhold all data from its backend until the user explicitly
  consents (remembered per device); analytics cookies disabled.
- CSP: kapa + reCAPTCHA domains added to .htaccess CSP_PROJECT_DOMAINS,
  per kapa's official CSP guide.
- UI: navbar "Ask AI" pill (cyan -> violet) opens the widget via
  data-modal-override-open-selector; kapa's own floating button hidden.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@MehulBatra MehulBatra changed the title [website] Add consent-gated kapa.ai "Ask AI" w [website] Add consent-gated kapa.ai "Ask AI" Jul 24, 2026
@MehulBatra MehulBatra changed the title [website] Add consent-gated kapa.ai "Ask AI" [website] Add consent-gated kapa.ai "Ask AI" widget Jul 24, 2026
@MehulBatra MehulBatra changed the title [website] Add consent-gated kapa.ai "Ask AI" widget [website/AI] Add consent-gated kapa.ai "Ask AI" widget Jul 24, 2026
@MehulBatra
MehulBatra requested review from polyzos and wuchong July 25, 2026 14:05
@wuchong
wuchong merged commit c77ca8b into apache:main Jul 27, 2026
1 check passed
@wuchong wuchong linked an issue Jul 27, 2026 that may be closed by this pull request
1 of 2 tasks
@wuchong wuchong mentioned this pull request Jul 27, 2026
1 of 2 tasks
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.

[docs] AskAi fails to load on Fluss website

2 participants