Skip to content

Feat kapa ai integration#997

Open
shrihari7396 wants to merge 2 commits intoapache:masterfrom
shrihari7396:feat-kapa-ai-integration
Open

Feat kapa ai integration#997
shrihari7396 wants to merge 2 commits intoapache:masterfrom
shrihari7396:feat-kapa-ai-integration

Conversation

@shrihari7396
Copy link

Overview

This PR integrates the Kapa.ai LLM-powered "Ask AI" widget into the Apache DolphinScheduler website. This will help users find answers to technical questions directly from the documentation, blog, and GitHub discussions.

Key Changes

  • Core Integration: Added the Kapa.ai widget script to src/views/Layout/index.jsx.
  • Project Configuration: Configured the widget with the official data-website-id for Apache DolphinScheduler.
  • Branding: Set the widget's project name to "Apache DolphinScheduler", the primary color to #0097E0, and linked the official project logo.
  • Bug Fix: Implemented a lightweight polyfill for crypto.randomUUID in the Layout component. This ensures the widget functions correctly in non-secure contexts (HTTP) often used during local development (localhost), resolving a TypeError that occurred previously.
  • Optimization: Added script cleanup on component unmount and duplicate script injection prevention.

Verification

  • Verified locally using npm run dev on http://localhost:3000.
  • Confirmed the "Ask AI" button appears and the modal opens with correct branding.
  • Successfully tested chat requests with the AI.
  • Verified that the crypto.randomUUID error is resolved.

Visual Proof

image image image

@shrihari7396 shrihari7396 marked this pull request as draft February 25, 2026 17:54
@shrihari7396 shrihari7396 marked this pull request as ready for review February 25, 2026 17:54
@shrihari7396
Copy link
Author

Hi maintainers, just checking if any changes are required from my side. I’d be happy to improve this PR.

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