import { Link, Stack, TeachingBubble, Text } from "@fluentui/react";
import { useTabs } from "hooks/useTabs";
import { useTeachingBubble } from "hooks/useTeachingBubble";
import React from "react";
export const QuickstartTutorial: React.FC = (): JSX.Element => {
const { step, isSampleDBExpanded, isDocumentsTabOpened, sampleCollection, setStep } = useTeachingBubble();
switch (step) {
case 1:
return isSampleDBExpanded ? (
{
sampleCollection.openTab();
setStep(2);
},
}}
onDismiss={() => setStep(0)}
footerContent="Step 1 of 7"
>
Start viewing and working with your data by opening Items under Data
) : (
<>>
);
case 2:
return isDocumentsTabOpened ? (
setStep(3),
}}
secondaryButtonProps={{
text: "Previous",
onClick: () => setStep(1),
}}
onDismiss={() => setStep(0)}
footerContent="Step 2 of 7"
>
View item here using the items window. Additionally you can also filter items to be reviewed with the filter
function
) : (
<>>
);
case 3:
return (
setStep(4),
}}
secondaryButtonProps={{
text: "Previous",
onClick: () => setStep(2),
}}
onDismiss={() => setStep(0)}
footerContent="Step 3 of 7"
>
Add new item by copy / pasting JSON; or uploading a JSON
);
case 4:
return (
setStep(5),
}}
secondaryButtonProps={{
text: "Previous",
onClick: () => setStep(3),
}}
onDismiss={() => setStep(0)}
footerContent="Step 4 of 7"
>
Query your data using either the filter function or new query.
);
case 5:
return (
setStep(6),
}}
secondaryButtonProps={{
text: "Previous",
onClick: () => setStep(4),
}}
onDismiss={() => setStep(0)}
footerContent="Step 5 of 7"
>
Change throughput provisioned to your container according to your needs
);
case 6:
return (
setStep(7),
}}
secondaryButtonProps={{
text: "Previous",
onClick: () => setStep(5),
}}
onDismiss={() => setStep(0)}
footerContent="Step 6 of 7"
>
Visualize your data, store queries in an interactive document
);
case 7:
return (
useTabs.getState().openAndActivateConnectTab(),
}}
secondaryButtonProps={{
text: "Previous",
onClick: () => setStep(6),
}}
onDismiss={() => setStep(0)}
footerContent="Step 7 of 7"
>
You have finished the tour in data explorer. For next steps, you may want to launch connect and start
connecting with your current app.
Share your feedback
);
default:
return <>>;
}
};