diff --git a/src/App.vue b/src/App.vue index fe3862c..5ca8109 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,14 +8,10 @@ :anthropicApiKey="anthropicApiKey" :googleApiKey="googleApiKey" @manage-models="handleManageModels" @open-configuration="handleOpenConfiguration" /> -
-
- - -
-
+ + + diff --git a/src/assets/styles/pages/_chat-interface.scss b/src/assets/styles/pages/_chat-interface.scss index bbcb9bc..a4c7b72 100644 --- a/src/assets/styles/pages/_chat-interface.scss +++ b/src/assets/styles/pages/_chat-interface.scss @@ -71,7 +71,12 @@ .plugin-title { text-align: center; - margin-bottom: 2rem; + margin-bottom: 1rem; + max-width: 32rem; + + p { + color: var(--text); + } } .chat-messages { diff --git a/src/assets/styles/pages/_onboarding-screen.scss b/src/assets/styles/pages/_onboarding-screen.scss index 4be9023..86e4d54 100644 --- a/src/assets/styles/pages/_onboarding-screen.scss +++ b/src/assets/styles/pages/_onboarding-screen.scss @@ -54,6 +54,10 @@ max-width: 24rem; text-align: center; + h1 { + margin-top: 0; + } + .api-info { margin-top: 1.5rem; margin-bottom: 1rem; diff --git a/src/components/ApiKeyForm.vue b/src/components/ApiKeyForm.vue index 4725e35..dba0621 100644 --- a/src/components/ApiKeyForm.vue +++ b/src/components/ApiKeyForm.vue @@ -1,50 +1,69 @@ + + diff --git a/src/components/ChatInterface.vue b/src/components/ChatInterface.vue index 9ee396d..aff1a75 100644 --- a/src/components/ChatInterface.vue +++ b/src/components/ChatInterface.vue @@ -11,7 +11,14 @@ Settings -

AI Shell

+
+

AI Shell

+

+ The AI Shell can see your table schemas, and (with your permission) + run {{ sqlOrCode }} to answer your questions. + Learn more. +

+
{ + if (connection.databaseType === "mongodb" + || connection.connectionType === "surrealdb" + || connection.connectionType === "redis") { + this.sqlOrCode = "Code"; + } + }); + const scrollContainer = this.$refs.scrollContainerRef as HTMLElement; scrollContainer.addEventListener("scroll", () => { // Calculate if we're near bottom (within 50px of bottom) diff --git a/src/components/OnboardingScreen.vue b/src/components/OnboardingScreen.vue index 1045f15..1d610d8 100644 --- a/src/components/OnboardingScreen.vue +++ b/src/components/OnboardingScreen.vue @@ -1,17 +1,20 @@