From 08d922d216cd406a032613fcdefba1645262de5f Mon Sep 17 00:00:00 2001 From: Lokesh Goel Date: Wed, 24 Jan 2024 21:57:21 +0530 Subject: [PATCH] added more points in notes and updated settings markdown --- package.json | 4 +-- .../organizationSelect/SelectOrganization.tsx | 28 ++++++++++++------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index a2cd5f13..33b781c8 100644 --- a/package.json +++ b/package.json @@ -1028,12 +1028,12 @@ "couchbase.iQ.enableCodeSelectionResult": { "type": "boolean", "default": true, - "markdownDescription": "Do you wish that selected code on active editor be sent to iQ to understand context better?" + "markdownDescription": "Do you wish that selected code on active editor be sent to iQ to understand context better? (This may result in increased prompt size)" }, "couchbase.iQ.sendMessagesToCouchbase": { "type": "boolean", "default": true, - "markdownDescription": "Do you want to share messages asked to iQ and their results be sent to couchbase to make iQ better?" + "markdownDescription": "Would you like to anonymously submit the queries made to iQ, along with their results, to Couchbase in order to improve iQ's performance?" } } } diff --git a/src/reactViews/iq/pages/organizationSelect/SelectOrganization.tsx b/src/reactViews/iq/pages/organizationSelect/SelectOrganization.tsx index b98f5daa..b155418d 100644 --- a/src/reactViews/iq/pages/organizationSelect/SelectOrganization.tsx +++ b/src/reactViews/iq/pages/organizationSelect/SelectOrganization.tsx @@ -3,10 +3,14 @@ import IqChat from "pages/chatscreen/IqChat"; import { useEffect, useState } from "react"; import "./SelectOrganization.scss"; -const SelectOrganizationPage = ({ organizationDetails, setShowPage, setIsLoading }) => { +const SelectOrganizationPage = ({ + organizationDetails, + setShowPage, + setIsLoading, +}) => { const [selectedOrg, setSelectedOrg] = useState(undefined); const [rememberOrgChecked, setRememberOrgChecked] = useState(false); - + const handleOrgClick = (org) => { setSelectedOrg(org); }; @@ -23,8 +27,8 @@ const SelectOrganizationPage = ({ organizationDetails, setShowPage, setIsLoading command: "vscode-couchbase.iq.verifyOrganizationAndSave", value: { organizationDetails: selectedOrg, - rememberOrgChecked: rememberOrgChecked - } + rememberOrgChecked: rememberOrgChecked, + }, }); // At the end, we shift to next page that is main iq chat setShowPage(); @@ -36,18 +40,18 @@ const SelectOrganizationPage = ({ organizationDetails, setShowPage, setIsLoading tsvscode.postMessage({ command: "vscode-couchbase.iq.showLogoutButton", value: { - enabled: true - } + enabled: true, + }, }); tsvscode.postMessage({ command: "vscode-couchbase.iq.showNewChatButton", value: { - enabled: false - } + enabled: false, + }, }); }, []); - + return (

Select an organization

@@ -60,7 +64,7 @@ const SelectOrganizationPage = ({ organizationDetails, setShowPage, setIsLoading })} />
handleRememberOrgCheckbox()}> - +

@@ -71,6 +75,10 @@ const SelectOrganizationPage = ({ organizationDetails, setShowPage, setIsLoading If you remember the organization, it will set it as default for future logins. you can change default in settings. +

  • + By default, Couchbase will collect your prompts and responses to help + make Capella iQ better. You can disable this through the Settings. +