Skip to content

Use the Kapa AI SDK instead of the Kapa AI widget #2113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
dcd4e0a
Install the kapa sdk
samejr May 20, 2025
6b82680
WIP using the SDK for the Kapa Ask AI widget
samejr May 20, 2025
d9abe40
Removes old kapa from root
samejr May 22, 2025
e786418
Now rendering everything inside the dialog component
samejr May 22, 2025
9d6ee86
Fixes min-height of dialog content
samejr May 22, 2025
048a5b5
Remove kapa from root
samejr May 22, 2025
10d1bbe
prevents kapa using reCaptcha
samejr May 22, 2025
10d911b
Adds more functionailty with temporary UI placement for now
samejr May 22, 2025
cdd3538
Reset conversation button
samejr May 22, 2025
c0912bf
Adds a new sparkle list icon
samejr May 22, 2025
b495e5f
Adds some example questions as a blank state
samejr May 22, 2025
dfe95b2
Animate in the example questions
samejr May 23, 2025
9043d61
use “marked” package to render markdown
samejr May 23, 2025
10c1ae0
Improve some animations
samejr May 23, 2025
1a87737
Submit a question from the URL param
samejr May 23, 2025
9ca741b
adds custom scroll bar styling
samejr May 23, 2025
b5fe0e4
fixes modal to correct height after re-opening it
samejr May 23, 2025
9814b9c
Add button to stop generating answer mid-stream
samejr May 23, 2025
bfc0489
Adds buttons states to show submitting, generating, submittable
samejr May 23, 2025
ccbf95b
Adds a helpfull sentence in the blank state
samejr May 23, 2025
ace676d
Show a message if the chat returns an error
samejr May 23, 2025
3d8b0e8
Adds reset chat and feedback buttons to the bottom of an answer
samejr May 23, 2025
733bca1
Makes sure you can give feedback in the different states of chat
samejr May 23, 2025
d148e05
Adds a suble background to the dialog
samejr May 23, 2025
ac5209f
Fix a button inside button error
samejr May 23, 2025
a440fed
Improve the shortcut esc key on dialog and sheet component
samejr May 24, 2025
a89af56
Fix classname error
samejr May 24, 2025
fc39d96
organize imports
samejr May 24, 2025
e0b457a
Use our custom focus-visible
samejr May 24, 2025
86a6fa8
Move the Tooltip for the button into the AskAI component
samejr May 27, 2025
0697f3c
Improved error message
samejr May 27, 2025
f43da0e
Organize imports
samejr May 27, 2025
98a7649
Animated the modal gradient
samejr May 27, 2025
ae4455c
Small layout improvements
samejr May 27, 2025
c8701c0
Adds most asked questions from Kapa
samejr May 27, 2025
f8f68d4
border glow tweak
samejr May 27, 2025
5e874c9
AskAI component is now a hook that can take a question
samejr May 27, 2025
d669dda
remove kapa script
samejr May 27, 2025
232de9a
Add a delay before the modal opens when usign the URL params
samejr May 27, 2025
b988191
Remove old component
samejr May 27, 2025
05f5b4b
Update to the latest Kapa version
samejr May 27, 2025
5606509
Rephrased error message
samejr May 27, 2025
49a250f
Merge remote-tracking branch 'origin/main' into kapa-ai-sdk
samejr May 28, 2025
3ddce5f
Merge remote-tracking branch 'origin/main' into kapa-ai-sdk
samejr May 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions apps/webapp/app/assets/icons/SparkleListIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export function SparkleListIcon({ className }: { className?: string }) {
return (
<svg className={className} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M17 11C17.4304 11 17.8126 11.2754 17.9487 11.6838L18.4743 13.2607C18.6734 13.858 19.142 14.3266 19.7393 14.5257L21.3162 15.0513C21.7246 15.1874 22 15.5696 22 16C22 16.4304 21.7246 16.8126 21.3162 16.9487L19.7393 17.4743C19.142 17.6734 18.6734 18.142 18.4743 18.7393L17.9487 20.3162C17.8126 20.7246 17.4304 21 17 21C16.5696 21 16.1874 20.7246 16.0513 20.3162L15.5257 18.7393C15.3266 18.142 14.858 17.6734 14.2607 17.4743L12.6838 16.9487C12.2754 16.8126 12 16.4304 12 16C12 15.5696 12.2754 15.1874 12.6838 15.0513L14.2607 14.5257C14.858 14.3266 15.3266 13.858 15.5257 13.2607L16.0513 11.6838C16.1874 11.2754 16.5696 11 17 11Z"
fill="currentColor"
/>
<rect x="2" y="6" width="20" height="2" rx="1" fill="currentColor" />
<rect x="2" y="15" width="7" height="2" rx="1" fill="currentColor" />
</svg>
);
}
Loading
Loading