mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 06:56:38 +00:00
Copilot rewording (#1824)
* Copilot rebranding to query advisor * fix the subquery link
This commit is contained in:
parent
cbd5e6bf76
commit
f8f7ea34bd
@ -630,7 +630,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
|
|||||||
Enable sample database
|
Enable sample database
|
||||||
<InfoTooltip>
|
<InfoTooltip>
|
||||||
This is a sample database and collection with synthetic product data you can use to explore using
|
This is a sample database and collection with synthetic product data you can use to explore using
|
||||||
NoSQL queries and Copilot. This will appear as another database in the Data Explorer UI, and is
|
NoSQL queries and Query Advisor. This will appear as another database in the Data Explorer UI, and is
|
||||||
created by, and maintained by Microsoft at no cost to you.
|
created by, and maintained by Microsoft at no cost to you.
|
||||||
</InfoTooltip>
|
</InfoTooltip>
|
||||||
</div>
|
</div>
|
||||||
@ -640,7 +640,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
|
|||||||
label: { padding: 0 },
|
label: { padding: 0 },
|
||||||
}}
|
}}
|
||||||
className="padding"
|
className="padding"
|
||||||
ariaLabel="Enable sample db for Copilot"
|
ariaLabel="Enable sample db for Query Advisor"
|
||||||
checked={copilotSampleDBEnabled}
|
checked={copilotSampleDBEnabled}
|
||||||
onChange={handleSampleDatabaseChange}
|
onChange={handleSampleDatabaseChange}
|
||||||
/>
|
/>
|
||||||
|
@ -385,7 +385,7 @@ export const QueryCopilotPromptbar: React.FC<QueryCopilotPromptProps> = ({
|
|||||||
hasSmallHeadline={true}
|
hasSmallHeadline={true}
|
||||||
headline="Write a prompt"
|
headline="Write a prompt"
|
||||||
>
|
>
|
||||||
Write a prompt here and Copilot will generate the query for you. You can also choose from our{" "}
|
Write a prompt here and Query Advisor will generate the query for you. You can also choose from our{" "}
|
||||||
<Link
|
<Link
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setShowSamplePrompts(true);
|
setShowSamplePrompts(true);
|
||||||
|
@ -57,12 +57,12 @@ export const QueryCopilotTab: React.FC<QueryCopilotProps> = ({ explorer }: Query
|
|||||||
|
|
||||||
const toggleCopilotButton = {
|
const toggleCopilotButton = {
|
||||||
iconSrc: QueryCommandIcon,
|
iconSrc: QueryCommandIcon,
|
||||||
iconAlt: "Copilot",
|
iconAlt: "Query Advisor",
|
||||||
onCommandClick: () => {
|
onCommandClick: () => {
|
||||||
toggleCopilot(true);
|
toggleCopilot(true);
|
||||||
},
|
},
|
||||||
commandButtonLabel: "Copilot",
|
commandButtonLabel: "Query Advisor",
|
||||||
ariaLabel: "Copilot",
|
ariaLabel: "Query Advisor",
|
||||||
hasPopup: false,
|
hasPopup: false,
|
||||||
disabled: copilotActive,
|
disabled: copilotActive,
|
||||||
};
|
};
|
||||||
|
@ -151,9 +151,9 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
{useQueryCopilot.getState().copilotEnabled && (
|
{useQueryCopilot.getState().copilotEnabled && (
|
||||||
<SplashScreenButton
|
<SplashScreenButton
|
||||||
imgSrc={CopilotIcon}
|
imgSrc={CopilotIcon}
|
||||||
title={"Query faster with Copilot"}
|
title={"Query faster with Query Advisor"}
|
||||||
description={
|
description={
|
||||||
"Copilot is your AI buddy that helps you write Azure Cosmos DB queries like a pro. Try it using our sample data set now!"
|
"Query Advisor is your AI buddy that helps you write Azure Cosmos DB queries like a pro. Try it using our sample data set now!"
|
||||||
}
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const copilotVersion = userContext.features.copilotVersion;
|
const copilotVersion = userContext.features.copilotVersion;
|
||||||
|
@ -381,9 +381,13 @@ export const QueryResultSection: React.FC<QueryResultProps> = ({
|
|||||||
<img className="paneErrorIcon" src={InfoColor} alt="Error" />
|
<img className="paneErrorIcon" src={InfoColor} alt="Error" />
|
||||||
</span>
|
</span>
|
||||||
<span className="warningErrorDetailsLinkContainer">
|
<span className="warningErrorDetailsLinkContainer">
|
||||||
We have detected you may be using a subquery. Non-correlated subqueries are not currently supported.
|
We detected you may be using a subquery. To learn more about subqueries effectively,{" "}
|
||||||
<a href="https://docs.microsoft.com/en-us/azure/cosmos-db/sql-query-subquery">
|
<a
|
||||||
Please see Cosmos sub query documentation for further information
|
href="https://learn.microsoft.com/azure/cosmos-db/nosql/query/subquery"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
visit the documentation
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -483,13 +483,13 @@ export default class QueryTabComponent extends React.Component<IQueryTabComponen
|
|||||||
if (this.props.copilotEnabled) {
|
if (this.props.copilotEnabled) {
|
||||||
const toggleCopilotButton: CommandButtonComponentProps = {
|
const toggleCopilotButton: CommandButtonComponentProps = {
|
||||||
iconSrc: QueryCommandIcon,
|
iconSrc: QueryCommandIcon,
|
||||||
iconAlt: "Copilot",
|
iconAlt: "Query Advisor",
|
||||||
keyboardAction: KeyboardAction.TOGGLE_COPILOT,
|
keyboardAction: KeyboardAction.TOGGLE_COPILOT,
|
||||||
onCommandClick: () => {
|
onCommandClick: () => {
|
||||||
this._toggleCopilot(!this.state.copilotActive);
|
this._toggleCopilot(!this.state.copilotActive);
|
||||||
},
|
},
|
||||||
commandButtonLabel: this.state.copilotActive ? "Disable Copilot" : "Enable Copilot",
|
commandButtonLabel: this.state.copilotActive ? "Disable Query Advisor" : "Enable Query Advisor",
|
||||||
ariaLabel: this.state.copilotActive ? "Disable Copilot" : "Enable Copilot",
|
ariaLabel: this.state.copilotActive ? "Disable Query Advisor" : "Enable Query Advisor",
|
||||||
hasPopup: false,
|
hasPopup: false,
|
||||||
};
|
};
|
||||||
buttons.push(toggleCopilotButton);
|
buttons.push(toggleCopilotButton);
|
||||||
|
Loading…
Reference in New Issue
Block a user