Skip to content

Commit

Permalink
added more points in notes and updated settings markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh-couchbase committed Jan 24, 2024
1 parent 4d9579b commit 08d922d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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?"
}
}
}
Expand Down
28 changes: 18 additions & 10 deletions src/reactViews/iq/pages/organizationSelect/SelectOrganization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand All @@ -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(<IqChat org={selectedOrg} setIsLoading={setIsLoading} />);
Expand All @@ -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 (
<div className="selectOrganizationContainer">
<h1>Select an organization</h1>
Expand All @@ -60,7 +64,7 @@ const SelectOrganizationPage = ({ organizationDetails, setShowPage, setIsLoading
})}
/>
<div onClick={() => handleRememberOrgCheckbox()}>
<input type="checkbox" id="rememberOrg" checked={rememberOrgChecked}/>
<input type="checkbox" id="rememberOrg" checked={rememberOrgChecked} />
<label>Remember the organization</label>
</div>
<p>
Expand All @@ -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.
</li>
<li>
By default, Couchbase will collect your prompts and responses to help
make Capella iQ better. You can disable this through the Settings.
</li>
</p>
<button className="redButton" onClick={() => handleSubmit()}>
Submit
Expand Down

0 comments on commit 08d922d

Please sign in to comment.