Skip to content

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

Open
MehulBatra wants to merge 1 commit into
apache:mainfrom
MehulBatra:website-kapa-askai-consent
Open

[website/AI] Add consent-gated kapa.ai "Ask AI" widget#3760
MehulBatra wants to merge 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
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