Skip to content

Commit

Permalink
1570 - SF
Browse files Browse the repository at this point in the history
  • Loading branch information
ivicac committed Oct 7, 2024
1 parent edcce53 commit 8a6efe2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 29 deletions.
30 changes: 13 additions & 17 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ const user = {
name: 'Emily Selman',
};

const automationNavigation: {
type NavigationType = {
name: string;
href: string;
icon: LucideIcon;
}[] = [
};

const automationNavigation: NavigationType[] = [
{
href: '/automation/projects',
icon: FolderIcon,
Expand All @@ -59,11 +61,7 @@ const automationNavigation: {
},
];

const embeddedNavigation: {
name: string;
href: string;
icon: LucideIcon;
}[] = [
const embeddedNavigation: NavigationType[] = [
{
href: '/embedded/integrations',
icon: SquareIcon,
Expand Down Expand Up @@ -115,11 +113,13 @@ function App() {
return true;
});

const navigation = location.pathname.includes('automation')
? filteredAutomationNavigation
: location.pathname.includes('embedded')
? embeddedNavigation
: [];
let navigation: NavigationType[] = [];

if (location.pathname.includes('automation')) {
navigation = filteredAutomationNavigation;
} else if (location.pathname.includes('embedded')) {
navigation = embeddedNavigation;
}

useFetchInterceptor();

Expand Down Expand Up @@ -154,11 +154,7 @@ function App() {
}
}, [authenticated, sessionHasBeenFetched, navigate]);

if (!authenticated) {
return <></>;
}

if (loadingFeatureFlags) {
if (!authenticated || loadingFeatureFlags) {
return <></>;
}

Expand Down
16 changes: 4 additions & 12 deletions client/src/pages/platform/copilot/CopilotPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const CopilotPanel = () => {
<div className="flex flex-col space-y-1.5 p-6">
<div className="flex items-center">
<div className="flex size-8 items-center justify-center rounded-full bg-primary text-primary-foreground">
U
<span>U</span>
</div>

<h3 className="ml-2 text-sm font-semibold">User</h3>
Expand All @@ -41,7 +41,7 @@ const CopilotPanel = () => {
<div className="flex flex-col space-y-1.5 p-6">
<div className="flex items-center">
<div className="flex size-8 items-center justify-center rounded-full bg-primary text-primary-foreground">
A
<span>A</span>
</div>

<h3 className="ml-2 text-sm font-semibold">Assistant</h3>
Expand Down Expand Up @@ -121,7 +121,7 @@ const CopilotPanel = () => {
<div className="flex flex-col space-y-1.5 p-6">
<div className="flex items-center">
<div className="flex size-8 items-center justify-center rounded-full bg-primary text-primary-foreground">
U
<span>U</span>
</div>

<h3 className="ml-2 text-sm font-semibold">User</h3>
Expand All @@ -138,7 +138,7 @@ const CopilotPanel = () => {
<div className="flex flex-col space-y-1.5 p-6">
<div className="flex items-center">
<div className="flex size-8 items-center justify-center rounded-full bg-primary text-primary-foreground">
A
<span>A</span>
</div>

<h3 className="ml-2 text-sm font-semibold">Assistant</h3>
Expand All @@ -152,8 +152,6 @@ const CopilotPanel = () => {

<br />

<br />

<span>
Supervised learning is a method where the algorithm learns from labeled training
data. In other words, the input data comes with the correct answers (labels), and
Expand All @@ -162,14 +160,10 @@ const CopilotPanel = () => {

<br />

<br />

<span>Key points about supervised learning:</span>

<br />

<br />

<span>
1. Training Data: It consists of input features and their corresponding correct
output labels.
Expand Down Expand Up @@ -221,8 +215,6 @@ const CopilotPanel = () => {

<br />

<br />

<span>
Is there anything specific about supervised learning you&apos;d like me to elaborate
on?
Expand Down

0 comments on commit 8a6efe2

Please sign in to comment.