shrihari7396 opened a new pull request, #997:
URL: https://github.com/apache/dolphinscheduler-website/pull/997

   ## 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](cci:7://file:///home/shrihari/Desktop/GSOC/dolphinscheduler-website/src/views/Layout/index.jsx:0:0-0:0).
   - **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](cci:1://file:///home/shrihari/Desktop/GSOC/dolphinscheduler-website/src/views/Layout/index.jsx:19:0-99:2)
 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
   - [x] Verified locally using `npm run dev` on `http://localhost:3000`.
   - [x] Confirmed the "Ask AI" button appears and the modal opens with correct 
branding.
   - [x] Successfully tested chat requests with the AI.
   - [x] Verified that the `crypto.randomUUID` error is resolved.
   
   ## Visual Proof
   <img width="1916" height="942" alt="image" 
src="https://github.com/user-attachments/assets/6feaa067-c995-495c-81f6-48584775ff87";
 />
   <img width="1916" height="942" alt="image" 
src="https://github.com/user-attachments/assets/1b09e2f4-dc7e-42a2-a86e-654df8b6203c";
 />
   <img width="1916" height="942" alt="image" 
src="https://github.com/user-attachments/assets/b6afb311-06e2-45d4-b165-477c4d4f0675";
 />
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to