[Query Copilot] Revise Copilot UI texts (#1569)

* Revise Copilot UI texts

* Test snapshots updated

---------

Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
This commit is contained in:
Predrag Klepic 2023-08-09 21:43:55 +02:00 committed by GitHub
parent daa26d289b
commit 9f7783f3f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 23 deletions

View File

@ -78,11 +78,13 @@ export const QueryCopilotFeedbackModal: React.FC = (): JSX.Element => {
}} }}
></ChoiceGroup> ></ChoiceGroup>
<Text style={{ fontSize: 12, marginBottom: 14 }}> <Text style={{ fontSize: 12, marginBottom: 14 }}>
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the{" "}
organization will be able to view and manage your feedback data.{" "} {
<Link href="https://privacy.microsoft.com/privacystatement" target="_blank"> <Link href="https://privacy.microsoft.com/privacystatement" target="_blank">
Privacy statement Privacy statement
</Link> </Link>
}{" "}
for more information.
</Text> </Text>
{likeQuery && ( {likeQuery && (
<Checkbox <Checkbox

View File

@ -42,8 +42,8 @@ export const WelcomeModal = ({ visible }: { visible: boolean }): JSX.Element =>
</Stack> </Stack>
</Stack> </Stack>
<Stack horizontalAlign="center"> <Stack horizontalAlign="center">
<Stack.Item align="center"> <Stack.Item align="center" style={{ textAlign: "center" }}>
<Text className="title bold">Welcome to Copilot in CosmosDB</Text> <Text className="title bold">Welcome to Query Copilot for Azure Cosmos DB (Private Preview)</Text>
</Stack.Item> </Stack.Item>
<Stack.Item align="center" className="text"> <Stack.Item align="center" className="text">
<Stack horizontal> <Stack horizontal>
@ -52,7 +52,7 @@ export const WelcomeModal = ({ visible }: { visible: boolean }): JSX.Element =>
</StackItem> </StackItem>
<StackItem align="start"> <StackItem align="start">
<Text className="bold"> <Text className="bold">
Let copilot do the work for you Let Query Copilot do the work for you
<br /> <br />
</Text> </Text>
</StackItem> </StackItem>
@ -88,13 +88,14 @@ export const WelcomeModal = ({ visible }: { visible: boolean }): JSX.Element =>
</StackItem> </StackItem>
<StackItem align="start"> <StackItem align="start">
<Text className="bold"> <Text className="bold">
Copilot currently works only a sample database Query Copilot works on a sample database.
<br /> <br />
</Text> </Text>
</StackItem> </StackItem>
</Stack> </Stack>
<Text> <Text>
Copilot is setup on a sample database we have configured for you at no cost While in Private Preview, Query Copilot is setup to work on sample database we have configured for you
at no cost.
<br /> <br />
<Link href="http://aka.ms/cdb-copilot-learn-more">Learn more</Link> <Link href="http://aka.ms/cdb-copilot-learn-more">Learn more</Link>
</Text> </Text>

View File

@ -118,7 +118,7 @@ exports[`Query Copilot Feedback Modal snapshot test shoud render and match snaps
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -126,6 +126,8 @@ exports[`Query Copilot Feedback Modal snapshot test shoud render and match snaps
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<Stack <Stack
horizontal={true} horizontal={true}
@ -271,7 +273,7 @@ exports[`Query Copilot Feedback Modal snapshot test should cancel submission 1`]
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -279,6 +281,8 @@ exports[`Query Copilot Feedback Modal snapshot test should cancel submission 1`]
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<Stack <Stack
horizontal={true} horizontal={true}
@ -424,7 +428,7 @@ exports[`Query Copilot Feedback Modal snapshot test should close on cancel click
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -432,6 +436,8 @@ exports[`Query Copilot Feedback Modal snapshot test should close on cancel click
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<Stack <Stack
horizontal={true} horizontal={true}
@ -577,7 +583,7 @@ exports[`Query Copilot Feedback Modal snapshot test should get user unput 1`] =
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -585,6 +591,8 @@ exports[`Query Copilot Feedback Modal snapshot test should get user unput 1`] =
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<Stack <Stack
horizontal={true} horizontal={true}
@ -730,7 +738,7 @@ exports[`Query Copilot Feedback Modal snapshot test should not render dont show
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -738,6 +746,8 @@ exports[`Query Copilot Feedback Modal snapshot test should not render dont show
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<Stack <Stack
horizontal={true} horizontal={true}
@ -883,7 +893,7 @@ exports[`Query Copilot Feedback Modal snapshot test should record user contact c
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -891,6 +901,8 @@ exports[`Query Copilot Feedback Modal snapshot test should record user contact c
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<Stack <Stack
horizontal={true} horizontal={true}
@ -1036,7 +1048,7 @@ exports[`Query Copilot Feedback Modal snapshot test should record user contact c
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -1044,6 +1056,8 @@ exports[`Query Copilot Feedback Modal snapshot test should record user contact c
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<Stack <Stack
horizontal={true} horizontal={true}
@ -1189,7 +1203,7 @@ exports[`Query Copilot Feedback Modal snapshot test should render dont show agai
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -1197,6 +1211,8 @@ exports[`Query Copilot Feedback Modal snapshot test should render dont show agai
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<StyledCheckboxBase <StyledCheckboxBase
checked={true} checked={true}
@ -1357,7 +1373,7 @@ exports[`Query Copilot Feedback Modal snapshot test should submit submission 1`]
} }
} }
> >
By pressing submit, your feedback will be used to improve Microsoft products and services. IT admins for your organization will be able to view and manage your feedback data. By pressing submit, your feedback will be used to improve Microsoft products and services. Please see the
<StyledLinkBase <StyledLinkBase
href="https://privacy.microsoft.com/privacystatement" href="https://privacy.microsoft.com/privacystatement"
@ -1365,6 +1381,8 @@ exports[`Query Copilot Feedback Modal snapshot test should submit submission 1`]
> >
Privacy statement Privacy statement
</StyledLinkBase> </StyledLinkBase>
for more information.
</Text> </Text>
<Stack <Stack
horizontal={true} horizontal={true}

View File

@ -60,11 +60,16 @@ exports[`Query Copilot Welcome Modal snapshot test should render when isOpen is
> >
<StackItem <StackItem
align="center" align="center"
style={
Object {
"textAlign": "center",
}
}
> >
<Text <Text
className="title bold" className="title bold"
> >
Welcome to Copilot in CosmosDB Welcome to Query Copilot for Azure Cosmos DB (Private Preview)
</Text> </Text>
</StackItem> </StackItem>
<StackItem <StackItem
@ -88,7 +93,7 @@ exports[`Query Copilot Welcome Modal snapshot test should render when isOpen is
<Text <Text
className="bold" className="bold"
> >
Let copilot do the work for you Let Query Copilot do the work for you
<br /> <br />
</Text> </Text>
</StackItem> </StackItem>
@ -160,13 +165,13 @@ exports[`Query Copilot Welcome Modal snapshot test should render when isOpen is
<Text <Text
className="bold" className="bold"
> >
Copilot currently works only a sample database Query Copilot works on a sample database.
<br /> <br />
</Text> </Text>
</StackItem> </StackItem>
</Stack> </Stack>
<Text> <Text>
Copilot is setup on a sample database we have configured for you at no cost While in Private Preview, Query Copilot is setup to work on sample database we have configured for you at no cost.
<br /> <br />
<StyledLinkBase <StyledLinkBase
href="http://aka.ms/cdb-copilot-learn-more" href="http://aka.ms/cdb-copilot-learn-more"