Skip to content

AI dashboard widget + CLI AI generate fix suggestions #1925

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

Merged
merged 39 commits into from
Apr 30, 2025
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a99b59a
Made a better AI icon and improved how it looks on the create new sch…
samejr Mar 25, 2025
c71509b
WIP adding kapa ai to the app
samejr Mar 25, 2025
bfcbd09
WIP adding a new Ask AI button to the side menu
samejr Mar 25, 2025
7880a3b
WIP using the react example from the docs
samejr Mar 26, 2025
eda2f55
Merge remote-tracking branch 'origin/main' into kapa-ai-widget
samejr Apr 4, 2025
ac61a5c
Align the AI button in the bottom bar
samejr Apr 4, 2025
156bf12
Kapa widget now works
samejr Apr 4, 2025
fced8f1
Trigger the Kapa modal from the custom button
samejr Apr 4, 2025
42efadf
Fix imports
samejr Apr 4, 2025
6cb76ca
Adds Ask AI shortcut to Shortcuts panel
samejr Apr 4, 2025
14adb73
Adds a new enter shortcut key
samejr Apr 4, 2025
16eb7ba
Adds a prop so you can optionally hide the shortcut key
samejr Apr 5, 2025
a1a6c96
Latest
samejr Apr 5, 2025
249b70b
Moved the Kapa/Help stuff into a component, out of root
samejr Apr 5, 2025
a58e9fc
WIP using onModalClose
samejr Apr 7, 2025
6947275
Creates a wrapper provider to block shortcuts while kapa modal is ope…
samejr Apr 7, 2025
fbf9bdf
Fixes button alignment
samejr Apr 7, 2025
eed126c
Merge remote-tracking branch 'origin/main' into kapa-ai-widget
matt-aitken Apr 15, 2025
d3434ae
Hide the shortcut key at the button layer
matt-aitken Apr 16, 2025
c1fa01e
Fix for enable/disable shortcut keys globally
matt-aitken Apr 16, 2025
1bb440a
Kapa is working
matt-aitken Apr 16, 2025
10a6a55
You can bring up the shortcut keys without opening the help panel
matt-aitken Apr 16, 2025
f5151b0
TODO remove listeners
matt-aitken Apr 16, 2025
def360d
remove imports and fix invalid tailwind class
samejr Apr 17, 2025
3877019
style kapa widget as best i can
samejr Apr 17, 2025
465529a
Merge remote-tracking branch 'origin/main' into kapa-ai-widget
matt-aitken Apr 17, 2025
2503fb4
Remove Kapa event listeners
matt-aitken Apr 20, 2025
5d7f3c8
Allow passing in a query
matt-aitken Apr 20, 2025
627b312
Open the AI widget if there’s a URL param
matt-aitken Apr 20, 2025
cdd8c4d
Much cleaner implementation for Kapa
matt-aitken Apr 20, 2025
0961c65
Trying to auto-open the Kapa widget when the page loads
matt-aitken Apr 20, 2025
033598e
Delay opening the widget because it was causing issues
matt-aitken Apr 20, 2025
60ec55a
Merge remote-tracking branch 'origin/main' into kapa-ai-widget
matt-aitken Apr 28, 2025
284ef26
Improved Kapa widget colors
matt-aitken Apr 28, 2025
349adc4
Added an AI help link to the CLI
matt-aitken Apr 29, 2025
93305bf
We don’t need this anymore
matt-aitken Apr 29, 2025
c08a0d5
Exit with 1, indicating an error. This is important for CI
matt-aitken Apr 29, 2025
b0fa5b0
Removed old auto-opening code
matt-aitken Apr 29, 2025
2b74932
Added some code comments to explain some of the annoying stuff
matt-aitken Apr 29, 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
Prev Previous commit
Added some code comments to explain some of the annoying stuff
  • Loading branch information
matt-aitken committed Apr 29, 2025
commit 2b74932c0ff9be061ef577e5a0795dcedb2572e7
2 changes: 2 additions & 0 deletions apps/webapp/app/hooks/useKapaWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function useKapaWidget() {

window.Kapa("render", {
onRender: () => {
//this auto-opens the Kapa widget on page load if the query contains ?aiHelp=
const aiHelp = searchParams.get("aiHelp");
if (aiHelp) {
setSearchParams((prev) => {
Expand All @@ -99,6 +100,7 @@ export function useKapaWidget() {

//we need to decode the aiHelp string because it's urlencoded
const decodedAiHelp = decodeURIComponent(aiHelp);
//sadly this delay is required, otherwise it fails the Kapa browser verification…
setTimeout(() => {
openKapa(decodedAiHelp);
}, 500);
Expand Down