Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

OSS: Migrate Components via Plugins into the Enterprise Repo (#160)

Muhammad Hamza Khanb02535478a9c
diff --git a/packages/app/src/backend/routes/api/page/builder.ts b/packages/app/src/backend/routes/api/page/builder.ts
index 69874bd2..e377b7e2 100644
--- a/packages/app/src/backend/routes/api/page/builder.ts
+++ b/packages/app/src/backend/routes/api/page/builder.ts
@@ -34,7 +34,6 @@ import { cacheClient } from '../../../services/cache.service';
import LLMHelper from '../../../services/LLMHelper';
import { LLMService } from '../../../services/LLMHelper/LLMService.class';
import * as openai from '../../../services/openai-helper';
-import SmythFS from '../../../services/SmythFS.class';
import { vault } from '../../../services/SmythVault.class';
import { getAgent } from '../../../services/user-data.service';
import { delay, uid } from '../../../services/utils.service';
@@ -46,8 +45,6 @@ import { serverlessCodeHelper } from '../../router.helpers/serverlessCode.helper
import { getKeyIdFromTemplateVar } from '../../router.helpers/vault.helper';
import { countVaultKeys, getVaultKeys, setVaultKey } from '../../router.utils';
-const smythFS = new SmythFS();
-
const router = express.Router();
router.get('/domains', async (req, res) => {
diff --git a/packages/app/src/backend/routes/pages/menus.ts b/packages/app/src/backend/routes/pages/menus.ts
index 2bcacbd5..42a9e066 100644
--- a/packages/app/src/backend/routes/pages/menus.ts
+++ b/packages/app/src/backend/routes/pages/menus.ts
@@ -2,10 +2,10 @@ import { SMYTHOS_DOCS_URL } from '../../../shared/constants/general';
export const navPages = [
{ url: '/agents', name: 'Agent Dashboard' },
- { url: '/templates', name: 'Templates' },
{ url: '/domains', name: 'Subdomains' },
{ url: '/data', name: 'Data Pool' },
{ url: '/analytics', name: 'Analytics' },
+ { url: '/templates', name: 'Templates' },
{ url: '/vault', name: 'Vault' },
{ url: SMYTHOS_DOCS_URL, name: 'Documentation', isExternal: true },
];
diff --git a/packages/app/src/builder-ui/pages/builder/index.ts b/packages/app/src/builder-ui/pages/builder/index.ts
index a0b04403..4ca801c3 100644
--- a/packages/app/src/builder-ui/pages/builder/index.ts
+++ b/packages/app/src/builder-ui/pages/builder/index.ts
@@ -47,24 +47,9 @@ function handleButtonVariants() {
if (!buttonContainer) return;
- // Get all relevant buttons/wrappers
- const testBtnWrapper = document
- .getElementById('btn-emb-chatbot-main-wrapper')
- ?.closest('.relative') as HTMLElement;
- const upgradeBtn = document.getElementById('upgrade-button-topbar') as HTMLElement;
- const shareBtn = document.getElementById('share-agent-button-topbar') as HTMLElement;
- const deployBtn = document.getElementById('deploy-button-topbar') as HTMLElement;
-
// Add flex-order support to container
buttonContainer.style.display = 'flex';
buttonContainer.style.gap = '1rem'; // Maintain spacing between buttons
-
- // setButtonStyles({
- // leftButtons: [testBtnWrapper],
- // rightButtons: [deployBtn, upgradeBtn, shareBtn],
- // leftColor: 'green',
- // rightColor: 'gray',
- // });
}
function handleDebugBarUIExperiment(featureVariant: string) {
@@ -166,15 +151,6 @@ function setButtonColor(button: HTMLElement, color: 'gray' | 'green') {
}
}
-// Helper function to determine button type
-function getButtonType(button: HTMLElement): string | null {
- if (button.id === 'upgrade-button-topbar') return 'upgrade button';
- if (button.id === 'share-agent-button-topbar') return 'share button';
- if (button.id === 'deploy-button-topbar') return 'deploy button';
- if (button.id === 'btn-emb-chatbot-main-wrapper') return 'test button';
- return null;
-}
-
function runDebugBarUIExperiment() {
handleDebugBarUIExperiment(DEBUG_TOGGLE_UI_REFRESH_VARIANTS.VARIANT_1);
}
diff --git a/packages/app/src/builder-ui/ui/react-injects.tsx b/packages/app/src/builder-ui/ui/react-injects.tsx
index 10a1c8ec..7a07bb3b 100644
--- a/packages/app/src/builder-ui/ui/react-injects.tsx
+++ b/packages/app/src/builder-ui/ui/react-injects.tsx
@@ -20,12 +20,10 @@ import {
} from '@src/react/features/builder/contexts/deployment-sidebar.context';
import ComponentInputEditor from '@src/react/features/builder/modals/ComponentInputEditor';
import { MobileHandler } from '@src/react/features/builder/modals/mobile-warning-modal';
-// import { WelcomeInvitePage } from '@src/react/features/onboarding/pages/WelcomeInvitePage';
import ConfirmModal from '@src/react/shared/components/ui/modals/ConfirmModal';
import { Spinner } from '@src/react/shared/components/ui/spinner';
import { AppStateProvider, useAppState } from '@src/react/shared/contexts/AppStateContext';
import { useAuthCtx } from '@src/react/shared/contexts/auth.context';
-import { plugins, PluginTarget, PluginType } from '@src/react/shared/plugins/Plugins';
import { queryClient } from '@src/react/shared/query-client';
import { QueryClientProvider } from '@tanstack/react-query';
import { BrowserRouter as Router } from 'react-router-dom';
@@ -231,72 +229,6 @@ export function renderAgentModals({ rootID }: { rootID: string }): void {
return;
}
- // Inner component that uses hooks - must be inside providers
- function ShareButtonContent() {
- const [showConfirmationModal, setShowConfirmationModal] = useState(false);
- const authContext = useAuthCtx();
- const appState = useAppState();
-
- // Handle button state management in useEffect only to avoid race conditions
- useEffect(() => {
- const shareButton = document.getElementById('share-agent-button-topbar') as HTMLButtonElement;
- if (shareButton) {
- if (!authContext?.userInfo) {
- shareButton.setAttribute('disabled', 'true');
- console.warn('Share button disabled: User not authenticated');
- } else {
- shareButton.removeAttribute('disabled');
- console.log('Share button enabled: User authenticated');
- }
- }
- }, [authContext?.userInfo]);
- // Resolve ShareAgentWithUsers component from plugin registry (enterprise provides it)
- const shareAgentPlugins = plugins.getPluginsByTarget(
- PluginTarget.ShareAgentWithUsers,
- PluginType.Function,
- );
- const createShareAgentModal =
- (shareAgentPlugins[0] as any)?.type === PluginType.Function
- ? (shareAgentPlugins[0] as any).function
- : null;
-
- return (
- <>
- {appState.isShareAgentModalOpen && !authContext?.userInfo && (
- <div className="fixed flex inset-0 bg-black bg-opacity-50 justify-center items-center w-full h-full">
- <Spinner />
- </div>
- )}
- {appState?.isShareAgentModalOpen && authContext?.userInfo && createShareAgentModal && (
- <div className="fixed inset-0">
- {createShareAgentModal({
- isShareAgent: true,
- onClose: () => appState.toggleShareAgentModal(),
- agentId: workspace.agent.id,
- agentName: workspace.agent.name,
- })}
- </div>
- )}
- {showConfirmationModal && (
- <div className="fixed inset-0">
- <ConfirmModal
- onClose={() => setShowConfirmationModal(false)}
- label="Confirm"
- message={'Unauthorized'}
- lowMsg={`You do not have permission to share this agent. Contact ${
- (authContext?.userInfo as any)?.teamMembers?.filter(
- (m) => m.userTeamRole?.isTeamInitiator,
- )[0]?.email || 'your team admin'
- } to request access.`}
- handleConfirm={() => setShowConfirmationModal(false)}
- handleCancel={() => setShowConfirmationModal(false)}
- hideCancel={true}
- />
- </div>
- )}
- </>
- );
- }
// Inner component that uses hooks - must be inside providers
function ModalsContent() {
const appState = useAppState();
@@ -347,7 +279,6 @@ export function renderAgentModals({ rootID }: { rootID: string }): void {
<AppStateProvider>
<DeploymentSidebarProvider workspace={workspace}>
<ModalsContent />
- <ShareButtonContent />
</DeploymentSidebarProvider>
</AppStateProvider>
</QueryClientProvider>
diff --git a/packages/app/src/react/app/routeMap.tsx b/packages/app/src/react/app/routeMap.tsx
index 8ae75aec..ab8685fd 100644
--- a/packages/app/src/react/app/routeMap.tsx
+++ b/packages/app/src/react/app/routeMap.tsx
@@ -2,18 +2,10 @@ import VaultPage from '@react/features/vault/pages/VaultPage';
import AgentsPage from '@src/react/features/agents/pages/AgentsPage';
import { IPageRoute } from '@src/react/shared/types/route';
import AccountDeletedPage from '../features/account/pages/AccountDeletedPage';
-import AccountPage from '../features/account/pages/AccountPage';
import AgentSettingsPage from '../features/agent-settings/pages/AgentSettingsPage';
import AIChatPage from '../features/ai-chat/pages/ai-chat';
-
-
export const routeMap: IPageRoute[] = [
-
-
-
-
- { path: '/account', component: AccountPage, title: 'Account' },
{
path: '/account-deleted',
component: AccountDeletedPage,
@@ -48,10 +40,6 @@ export const routeMap: IPageRoute[] = [
useFullWidthLayout: true,
},
},
-
-
-
-
{
path: '/',
@@ -66,8 +54,6 @@ export const routeMap: IPageRoute[] = [
layoutOptions: { background: 'white' },
},
-
-
{
title: 'Vault',
path: 'vault',
diff --git a/packages/app/src/react/features/agents/components/GenerateAgentForm.tsx b/packages/app/src/react/features/agents/components/GenerateAgentForm.tsx
deleted file mode 100644
index 833d4cc8..00000000
--- a/packages/app/src/react/features/agents/components/GenerateAgentForm.tsx
+++ /dev/null
@@ -1,189 +0,0 @@
-import ToolTip from '@react/shared/components/_legacy/ui/tooltip/tooltip';
-import { Button as CustomButton } from '@react/shared/components/ui/newDesign/button';
-import { useFileAttachment } from '@react/shared/hooks/useFileAttachment';
-import classNames from 'classnames';
-import { ClipboardEventHandler, useRef, useState } from 'react';
-import { FaPaperPlane } from 'react-icons/fa6';
-import { TiCameraOutline } from 'react-icons/ti';
-import { toast } from 'react-toastify';
-import { GenerateAgentFormData } from '../types/agents.types';
-
-interface GenerateAgentFormProps {
- onSubmit: (data: GenerateAgentFormData) => void;
- canEditAgents: boolean;
-}
-
-/**
- * Form component for generating new agents with text input and file attachment support
- */
-export function GenerateAgentForm({
- onSubmit,
- canEditAgents,
-}: GenerateAgentFormProps) {
- const [initialWeaverMessage, setInitialWeaverMessage] = useState<string>('');
- const [isFileUploading, setIsFileUploading] = useState(false);
- const generateAgentInputRef = useRef<HTMLTextAreaElement>(null);
-
- const { attachmentFile, fileInputRef, isDragging, handlers, clearAttachment } = useFileAttachment(
- {
- onFileSelect: async (file: File) => {
- try {
- setIsFileUploading(true);
- setInitialWeaverMessage((prev) => (prev.trim() ? prev : ''));
-
- const reader = new FileReader();
- const filePromise = new Promise<void>((resolve) => {
- reader.onloadend = () => {
- const base64String = reader.result as string;
- localStorage.setItem(
- 'chatAttachments',
- JSON.stringify({
- attachments: [
- {
- name: file.name,
- type: file.type,
- data: base64String,
- },
- ],
- ttl: Date.now() + 1000 * 60 * 3,
- }),
- );
- resolve();
- };
- });
-
- reader.readAsDataURL(file);
- await filePromise;
- } catch (error) {
- console.error('Error processing file:', error);
- } finally {
- setIsFileUploading(false);
- }
- },
- },
- );
-
- const handleSubmit = async () => {
- if (initialWeaverMessage.trim() || attachmentFile) {
- onSubmit({
- message: initialWeaverMessage,
- attachmentFile,
- isFileUploading,
- });
- }
- };
-
- const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
- if (e.key === 'Enter' && !e.shiftKey) {
- e.preventDefault();
- if (!canEditAgents) {
- toast.error('Your current access level doesn\'t include this feature.');
- return;
- }
- handleSubmit();
- }
- };
-
- const actionButtons = (
- <div
- className={classNames('flex items-center self-end gap-3', {
- 'opacity-50 cursor-not-allowed pointer-events-none': !canEditAgents,
- })}
- >
- <CustomButton
- handleClick={() => fileInputRef.current?.click()}
- variant="secondary"
- label="Screenshot"
- addIcon
- Icon={<TiCameraOutline className="mr-2" size={15} />}
- className="text-[#424242] border-[#D1D1D1] hover:border-[#C7C7C7] hover:bg-[#F5F5F5] rounded-full text-sm md:text-base"
- />
- <CustomButton
- handleClick={handleSubmit}
- label="Build"
- addIcon
- Icon={<FaPaperPlane className="mr-2 hidden md:block" size={15} />}
- dataAttributes={{ 'data-test': 'edit-agent-button' }}
- className="rounded-lg text-sm md:text-base"
- />
- </div>
- );
-
- return (
- <div
- className={classNames(
- 'w-full px-0 md:w-[80%] max-w-[808px] mx-auto pt-6 rounded-lg mb-20',
-
- )}
- >
- <div className="flex items-center justify-center gap-2">
- <h3 className="text-[#0F172A] text-2xl md:text-[2rem] md:leading-[1.5rem] tracking-normal font-semibold">
- What agent can I help you build?
- </h3>
- </div>
-
- <div
- data-qa="agent-weaver-section"
- className={classNames(
- 'mt-5 border border-solid border-[#3B82F6] bg-[#F9FAFB] rounded-lg p-3 flex flex-col justify-between gap-2 transition-all duration-300',
- { 'border-2 border-dashed border-[#288a68]': isDragging },
- `${attachmentFile ? 'items-end h-[242px]' : 'items-center h-[178px]'}`,
- )}
- onDragEnter={handlers.handleDragEnter}
- onDragOver={handlers.handleDragOver}
- onDragLeave={handlers.handleDragLeave}
- onDrop={handlers.handleDrop}
- onClick={() => generateAgentInputRef.current?.focus()}
- >
- <div className="flex flex-col items-start w-full gap-4 flex-1 min-h-0">
- {attachmentFile && (
- <div className="relative group w-max">
- <img
- src={URL.createObjectURL(attachmentFile)}
- alt="attachment preview"
- className="w-16 h-16 rounded-lg relative group border border-solid border-gray-200 object-cover"
- />
- <button
- onClick={clearAttachment}
- className="shadow-sm opacity-0 group-hover:opacity-100 transition-opacity absolute -right-1 -top-1 border border-solid border-gray-200 rounded-full w-4 h-4 bg-gray-100 flex items-center justify-center group-hover:bg-white"
- >
- <span className="sr-only">Remove attachment</span>
- <i className="fas fa-times text-xs" />
- </button>
- </div>
- )}
- <textarea
- rows={3}
- ref={generateAgentInputRef}
- placeholder="Generate an agent that automates the creation, posting, and retrieval of WordPress articles."
- className="flex-1 outline-none w-full h-full bg-transparent placeholder:text-gray-400 placeholder:text-lg focus:ring-0 resize-none border-none p-0 text-lg"
- value={initialWeaverMessage}
- onChange={(e) => setInitialWeaverMessage(e.currentTarget.value)}
- onKeyDown={handleKeyDown}
- onPaste={handlers.handlePaste as unknown as ClipboardEventHandler<HTMLTextAreaElement>}
- />
- </div>
-
- <input
- type="file"
- ref={fileInputRef}
- className="hidden"
- accept="image/*"
- onChange={handlers.handleFileChange}
- />
-
- {canEditAgents ? (
- actionButtons
- ) : (
- <ToolTip
- classes="w-32"
- placement="bottom"
- text="Your current access level doesn't include this feature."
- >
- {actionButtons}
- </ToolTip>
- )}
- </div>
- </div>
- );
-}
diff --git a/packages/app/src/react/features/agents/components/index.ts b/packages/app/src/react/features/agents/components/index.ts
index fa1e0114..40227387 100644
--- a/packages/app/src/react/features/agents/components/index.ts
+++ b/packages/app/src/react/features/agents/components/index.ts
@@ -1,4 +1,4 @@
export { AgentsGrid } from './AgentsGrid';
export { AgentsHeader } from './AgentsHeader';
-export { GenerateAgentForm } from './GenerateAgentForm';
export { SkeletonLoader } from './SkeletonLoader';
+
diff --git a/packages/app/src/react/features/agents/data/onboarding-tasks.ts b/packages/app/src/react/features/agents/data/onboarding-tasks.ts
index 39bb0678..027a803c 100644
--- a/packages/app/src/react/features/agents/data/onboarding-tasks.ts
+++ b/packages/app/src/react/features/agents/data/onboarding-tasks.ts
@@ -1,13 +1,6 @@
-import { plugins, PluginTarget, PluginType } from '@src/react/shared/plugins/Plugins';
import { OnboardingTaskProps, OnboardingTaskType } from '@src/react/shared/types/onboard.types';
import { SMYTHOS_DOCS_URL } from '@src/shared/constants/general';
-const onboardingPlugins = (
- plugins.getPluginsByTarget(PluginTarget.Onboarding, PluginType.Config) as {
- config: any;
- }[]
-).map((plugin) => plugin.config);
-
export const onboardingTasks: OnboardingTaskProps[] = [
{
type: OnboardingTaskType.QUICK_GUIDED_EXAMPLE,
@@ -23,25 +16,23 @@ export const onboardingTasks: OnboardingTaskProps[] = [
completeOnClick: true,
},
],
- completeDescription: "You've successfully completed the interactive quickstart guide",
+ completeDescription: 'You\'ve successfully completed the interactive quickstart guide',
+ },
+ {
+ type: OnboardingTaskType.INVITE_TEAM_MEMBERS,
+ title: 'Invite Team Members',
+ icon: '/img/onboard/invite.svg',
+ description: 'Collaborate seamlessly to build and chat with agents.',
+ completed: false,
+ buttons: [
+ {
+ label: 'Invite Team Members',
+ link: '/teams/members',
+ type: OnboardingTaskType.INVITE_TEAM_MEMBERS,
+ },
+ ],
+ completeDescription: 'You\'ve successfully invited your team members to the platform',
},
- // {
- // type: OnboardingTaskType.INVITE_TEAM_MEMBERS,
- // title: 'Invite Team Members',
- // icon: '/img/onboard/invite.svg',
- // description: 'Collaborate seamlessly to build and chat with agents.',
- // completed: false,
- // buttons: [
- // {
- // label: 'Invite Team Members',
- // link: '/teams/members',
- // type: OnboardingTaskType.INVITE_TEAM_MEMBERS,
- // },
- // ],
- // completeDescription: "You've successfully invited your team members to the platform",
- // },
- ...onboardingPlugins,
-
{
type: OnboardingTaskType.TRY_AGENT_TEMPLATE,
title: 'Start with Template',
@@ -55,7 +46,7 @@ export const onboardingTasks: OnboardingTaskProps[] = [
completeOnClick: true,
},
],
- completeDescription: "You've successfully created an agent using our template",
+ completeDescription: 'You\'ve successfully created an agent using our template',
},
{
type: OnboardingTaskType.JOIN_COMMUNITY,
@@ -71,7 +62,7 @@ export const onboardingTasks: OnboardingTaskProps[] = [
completeOnClick: true,
},
],
- completeDescription: "You've successfully joined our community",
+ completeDescription: 'You\'ve successfully joined our community',
},
{
type: OnboardingTaskType.CREATE_FIRST_AGENT,
@@ -87,6 +78,6 @@ export const onboardingTasks: OnboardingTaskProps[] = [
external: true,
},
],
- completeDescription: "You've successfully created an agent using our step-by-step guide",
+ completeDescription: 'You\'ve successfully created an agent using our step-by-step guide',
},
];
diff --git a/packages/app/src/react/features/agents/pages/AgentsPage.tsx b/packages/app/src/react/features/agents/pages/AgentsPage.tsx
index 194e67be..78745dc9 100644
--- a/packages/app/src/react/features/agents/pages/AgentsPage.tsx
+++ b/packages/app/src/react/features/agents/pages/AgentsPage.tsx
@@ -1,12 +1,8 @@
-import { AgentsGrid, AgentsHeader, GenerateAgentForm } from '@react/features/agents/components';
+import { AgentsGrid, AgentsHeader } from '@react/features/agents/components';
import ModelAgentsSection from '@react/features/agents/components/model-agents-section';
-import { useOnboarding } from '@react/features/agents/contexts/OnboardingContext';
import { useAgentsData } from '@react/features/agents/hooks/useAgentsData';
import { useAgentsPageTutorial } from '@react/features/agents/hooks/useAgentsPageTutorial';
-import {
- Learn,
- OnboardingTasks,
-} from '@react/features/onboarding/components/agent-onboarding-section';
+import { Learn } from '@react/features/onboarding/components/agent-onboarding-section/Learn';
import { useGetOnboardingData } from '@react/features/onboarding/hooks/useGetUserOnboardingSettings';
import useMutateOnboardingData from '@react/features/onboarding/hooks/useMutateOnboardingData';
import { FeatureFlagged } from '@react/shared/components/featureFlags';
@@ -16,9 +12,8 @@ import { FEATURE_FLAGS } from '@shared/constants/featureflags';
import { V4_ALL_PLANS } from '@shared/constants/general';
import { Analytics } from '@shared/posthog/services/analytics';
import { UserSettingsKey } from '@src/backend/types/user-data';
-import { GenerateAgentFormData } from '@src/react/features/agents/types/agents.types';
import { PluginComponents } from '@src/react/shared/plugins/PluginComponents';
-import { plugins, PluginTarget } from '@src/react/shared/plugins/Plugins';
+import { PluginTarget } from '@src/react/shared/plugins/Plugins';
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
import { useNavigate, useSearchParams } from 'react-router-dom';
import UpSellModal from '../components/meta/up-sell';
@@ -32,16 +27,11 @@ function AgentsPage() {
const switchteamid = searchParams.get('switchteamid');
const endOfPageRef = useRef<HTMLDivElement>(null);
const saveUserSettingsMutation = useMutateOnboardingData();
- const { isOnboardingDismissed, setOnboardingDismissed } = useOnboarding();
const [showUpsellModal, setShowUpsellModal] = useState(false);
- // console the plugins
- console.log('plugins', plugins.getPluginsByTarget(PluginTarget.AgentsPageSection));
-
// Authentication and permissions
- const { getPageAccess, userInfo, hasReadOnlyPageAccess } = useAuthCtx();
+ const { userInfo, hasReadOnlyPageAccess } = useAuthCtx();
const { subs } = userInfo;
- const canEditAgents = getPageAccess('/builder').write;
const isReadOnlyAccess = hasReadOnlyPageAccess('/agents');
// Custom hooks for data management
@@ -50,7 +40,6 @@ function AgentsPage() {
isAgentsLoading,
totalAgents,
agentsUpdated,
- sortCriteria,
sortOrder,
sortField,
isLoadingMore,
@@ -135,42 +124,16 @@ function AgentsPage() {
}
};
- /**
- * Handle generate agent form submission
- */
- const handleGenerateAgentSubmit = (data: GenerateAgentFormData) => {
- if (data.message.trim() || data.attachmentFile) {
- // Redirect to builder page with chat message
- location.href = `/builder?chat=${data.message}&from=agents-page`;
- }
- };
-
- /**
- * Handle onboarding dismissal
- */
- const handleOnboardingDismiss = () => {
- saveUserSettingsMutation.mutate({
- key: UserSettingsKey.OnboardingTasks,
- data: {
- [OnboardingTaskType.ONBOARDING_LIST_DISMISSED]: true,
- [OnboardingTaskType.COMPLETED_TASK]: null,
- },
- operation: 'insertOrUpdate',
- });
-
- setOnboardingDismissed(true);
- };
-
return (
<div>
<main className="pl-12 md:pl-0">
{/* Generate Agent Form Section */}
<FeatureFlagged featureFlag={FEATURE_FLAGS.INITIATE_WEAVER_MESSAGE}>
- <GenerateAgentForm onSubmit={handleGenerateAgentSubmit} canEditAgents={canEditAgents} />
+ <PluginComponents targetId={PluginTarget.AgentsPageGenerateAgentForm} />
</FeatureFlagged>
{/* Onboarding Tasks Section */}
- {!isOnboardingDismissed && <OnboardingTasks onDismiss={handleOnboardingDismiss} />}
+ <PluginComponents targetId={PluginTarget.AgentsPageOnboardingTasks} />
{/* Agents Section Header */}
<AgentsHeader
diff --git a/packages/app/src/react/features/onboarding/components/agent-onboarding-section/OnboardingTask.tsx b/packages/app/src/react/features/onboarding/components/agent-onboarding-section/OnboardingTask.tsx
deleted file mode 100644
index 37b0f7f8..00000000
--- a/packages/app/src/react/features/onboarding/components/agent-onboarding-section/OnboardingTask.tsx
+++ /dev/null
@@ -1,113 +0,0 @@
-import { UserSettingsKey } from '@src/backend/types/user-data';
-import { useOnboarding } from '@src/react/features/agents/contexts/OnboardingContext';
-import useMutateOnboardingData from '@src/react/features/onboarding/hooks/useMutateOnboardingData';
-import { OnboardingTaskProps, OnboardingTaskType } from '@src/react/shared/types/onboard.types';
-import { Analytics } from '@src/shared/posthog/services/analytics';
-import classNames from 'classnames';
-import React, { useEffect, useRef } from 'react';
-import { Link } from 'react-router-dom';
-
-// Use React.memo to prevent unnecessary re-renders of the TaskCard component
-const TaskCard = React.memo(
- ({
- handleClick,
- icon,
- title,
- description,
- completed,
- }: {
- handleClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
- icon: string;
- title: string;
- description: string;
- completed: boolean;
- }) => {
- const imgRef = useRef<HTMLImageElement>(null);
-
- useEffect(() => {
- // Set the image source only once when the component mounts
- if (imgRef.current) {
- imgRef.current.src = icon;
- }
- }, [icon]);
-
- return (
- <div
- onClick={handleClick}
- className={classNames(
- 'relative border border-solid flex items-start rounded-lg p-3 gap-2 bg-[#F9FAFB] border-[#D1D5DB] group hover:border-v2-blue hover:shadow-md cursor-pointer h-[120px]',
- )}
- >
- <div className="flex flex-col w-full">
- <img ref={imgRef} width={23} height={23} alt="onboarding-task" loading="lazy" />
- <h3 className={classNames('font-medium', 'text-base', 'my-1', 'text-[#0F172A]')}>
- {title}
- </h3>
- <p className={classNames('text-sm text-[#6B7280] max-w-[95%]')}>{description}</p>
- {completed && (
- <span className="mif-checkmark text-sm text-v2-blue absolute top-0 right-0"></span>
- )}
- </div>
- <span className="mif-arrow-right text-[#6B7280] text-sm group-hover:text-v2-blue absolute bottom-4 right-4"></span>
- </div>
- );
- },
-);
-
-const OnboardingTask = ({
- title,
- description,
- completed,
- buttons,
- type,
- icon,
-}: OnboardingTaskProps) => {
- const saveUserSettingsMutation = useMutateOnboardingData();
- const { setTaskCompleted, setInviteMemberModalOpen } = useOnboarding();
-
- const completeTask = (button) => {
- const effectiveType = button.type || type;
- saveUserSettingsMutation.mutate({
- key: UserSettingsKey.OnboardingTasks,
- data: { [effectiveType]: true, [OnboardingTaskType.COMPLETED_TASK]: effectiveType },
- operation: 'insertOrUpdate',
- });
- setTaskCompleted(type);
- Analytics.track(`onboarding_task_${type}`, { action: `${button?.label?.toLowerCase()}` });
- };
-
- const handleClick = () => {
- if (buttons[0].completeOnClick) {
- completeTask(buttons[0]);
- }
- };
-
- const handleInviteTeamMembers = (e: React.MouseEvent<HTMLDivElement>) => {
- e.preventDefault();
- setInviteMemberModalOpen(true);
- };
-
- if (type === OnboardingTaskType.INVITE_TEAM_MEMBERS) {
- return (
- <TaskCard
- handleClick={handleInviteTeamMembers}
- icon={icon}
- title={title}
- description={description}
- completed={completed}
- />
- );
- }
-
- return (
- <Link
- to={buttons[0].link}
- target={buttons[0].external ? '_blank' : undefined}
- onClick={handleClick}
- >
- <TaskCard icon={icon} title={title} description={description} completed={completed} />
- </Link>
- );
-};
-
-export default OnboardingTask;
diff --git a/packages/app/src/react/features/onboarding/components/agent-onboarding-section/OnboardingTasks.tsx b/packages/app/src/react/features/onboarding/components/agent-onboarding-section/OnboardingTasks.tsx
deleted file mode 100644
index b07c1488..00000000
--- a/packages/app/src/react/features/onboarding/components/agent-onboarding-section/OnboardingTasks.tsx
+++ /dev/null
@@ -1,121 +0,0 @@
-import { useOnboarding } from '@src/react/features/agents/contexts/OnboardingContext';
-import OnboardingTask from '@src/react/features/onboarding/components/agent-onboarding-section/OnboardingTask';
-import { OnboardingTaskType } from '@src/react/shared/types/onboard.types';
-import { useMemo, useState } from 'react';
-import { GoChevronDown } from 'react-icons/go';
-// import CreateMemberModal from 'src/react/features/teams/modals/create-member';
-
-const ProgressBar = ({ progress }): JSX.Element => {
- return (
- <div className="w-full h-1 bg-v2-gray-light rounded-full relative mb-4">
- <div
- className="h-full bg-v2-blue rounded-full flex items-center justify-center transition-all"
- style={{ width: progress > 0 ? `${progress}%` : '0px' }}
- ></div>
- </div>
- );
-};
-
-// Extracted ChecklistHeader component for better readability
-const ChecklistHeader = ({ progress, isChecklistVisible, onToggleChecklist, onDismiss }) => (
- <div className="flex items-center">
- <h3 className="text-lg font-medium text-[#424242]">
- Getting Started with SmythOS <span className="text-v2-blue font-normal">({progress}%)</span>
- </h3>
- <GoChevronDown
- size={24}
- className={`ml-2 cursor-pointer text-[#616161] transition-transform duration-300 ${
- isChecklistVisible ? 'rotate-180' : ''
- }`}
- onClick={onToggleChecklist}
- />
- {progress === 100 && (
- <button className="ml-auto text-gray-600" onClick={onDismiss}>
- Dismiss checklist
- </button>
- )}
- </div>
-);
-
-export const OnboardingTasks = ({ onDismiss }: { onDismiss: () => void }) => {
- // Always call all hooks first, regardless of any conditional logic
- const { tasks, isOnboardLoading, isInviteMemberModalOpen, setInviteMemberModalOpen } =
- useOnboarding();
-
- const [isChecklistVisible, setIsChecklistVisible] = useState(
- (window?.localStorage?.getItem('showOnboardingChecklist') ?? 'true') === 'true',
- );
-
- // Memoize progress calculation
- const progress = useMemo(() => {
- if (tasks.length === 0) return 0;
- return Math.round((tasks.filter((task) => task.completed).length / tasks.length) * 100);
- }, [tasks]);
-
- // Memoize the task list rendering
- const taskList = useMemo(() => {
- return tasks
- .sort((a, b) => (a.completed ? 1 : b.completed ? -1 : 0))
- .map((task) => (
- <div key={task.title} className="h-full">
- <OnboardingTask {...task} />
- </div>
- ));
- }, [tasks]);
-
- // Memoize the toggle function to prevent unnecessary re-renders
- const onToggleChecklist = useMemo(() => {
- return () => {
- setIsChecklistVisible(!isChecklistVisible);
- window?.localStorage?.setItem('showOnboardingChecklist', (!isChecklistVisible).toString());
- };
- }, [isChecklistVisible]);
-
- // Early return for loading state
- if (isOnboardLoading) {
- return (
- <div className="flex justify-center items-center">
- <div className="circular-loader" />
- </div>
- );
- }
-
- // Check if we should show the onboarding tasks
- const shouldShowOnboarding =
- tasks && !tasks[OnboardingTaskType.ONBOARDING_LIST_DISMISSED] && progress < 100;
-
- // Don't render anything if conditions aren't met
- if (!shouldShowOnboarding) {
- return null;
- }
-
- return (
- <div className="flex flex-col gap-2 mb-20">
- <ChecklistHeader
- progress={progress}
- isChecklistVisible={isChecklistVisible}
- onToggleChecklist={onToggleChecklist}
- onDismiss={onDismiss}
- />
-
- <ProgressBar
- progress={tasks ? (tasks.filter((task) => task.completed).length / tasks.length) * 100 : 0}
- />
-
- {isChecklistVisible && (
- <div className="grid grid-cols-4 gap-4 max-sm:grid-cols-1 max-lg:grid-cols-2 grid-auto-rows-1">
- {taskList}
- </div>
- )}
-
- {/* TODO:ENT: add this */}
- {/* {isInviteMemberModalOpen &&
- createPortal(
- <Suspense fallback={<Spinner />}>
- <CreateMemberModal onClose={() => setInviteMemberModalOpen(false)} />
- </Suspense>,
- document.body,
- )} */}
- </div>
- );
-};
diff --git a/packages/app/src/react/features/onboarding/components/agent-onboarding-section/index.tsx b/packages/app/src/react/features/onboarding/components/agent-onboarding-section/index.tsx
deleted file mode 100644
index ae01996d..00000000
--- a/packages/app/src/react/features/onboarding/components/agent-onboarding-section/index.tsx
+++ /dev/null
@@ -1,3 +0,0 @@
-export * from './OnboardingTasks';
-export * from './Learn';
-
diff --git a/packages/app/src/react/shared/constants/navigation.ts b/packages/app/src/react/shared/constants/navigation.ts
index 3d67fb86..9268e540 100644
--- a/packages/app/src/react/shared/constants/navigation.ts
+++ b/packages/app/src/react/shared/constants/navigation.ts
@@ -46,7 +46,7 @@ export const profileDropdownItems = () => {
).flatMap((item) => item.config);
return [
- { url: '/account', name: 'Account' },
+ // { url: '/account', name: 'Account' },
// { url: '/teams/members', name: 'User Management' },
...pluginItems,
{ url: '/teams/settings', name: 'User Management' },
diff --git a/packages/app/src/react/shared/plugins/Plugins.ts b/packages/app/src/react/shared/plugins/Plugins.ts
index f462aeb1..8f72c9f6 100644
--- a/packages/app/src/react/shared/plugins/Plugins.ts
+++ b/packages/app/src/react/shared/plugins/Plugins.ts
@@ -2,7 +2,6 @@ export enum PluginTarget {
BuilderLoadScript = 'builder/LoadScript',
BuilderLoadAgentTemplates = 'builder/LoadAgentTemplates',
TopMenuItem = 'topMenuItem',
- Onboarding = 'onboarding',
SidebarMenuItems = 'sidebarMenuItems',
TopMenuProfileDropdownItems = 'topMenuProfileDropdownItems',
AgentSettingsTasksTabWidget = 'agentSettings/tasksTabWidget',
@@ -11,7 +10,8 @@ export enum PluginTarget {
BuilderSidebarComponentItems = 'builder/sidebarComponentItems',
BuilderSREComponents = 'builder/sreComponents',
AgentsPageSection = 'agentsPage/section',
- ShareAgentWithUsers = 'builder/modals/ShareAgentWithUsers',
+ AgentsPageGenerateAgentForm = 'agentsPage/generateAgentForm',
+ AgentsPageOnboardingTasks = 'agentsPage/onboardingTasks',
}
export enum PluginType {
diff --git a/packages/app/views/pages/partials/studio/builder-menu.ejs b/packages/app/views/pages/partials/studio/builder-menu.ejs
index 89dbc294..3f885472 100644
--- a/packages/app/views/pages/partials/studio/builder-menu.ejs
+++ b/packages/app/views/pages/partials/studio/builder-menu.ejs
@@ -308,51 +308,6 @@
>
Deployment is locked in view mode.
</div>
- <button
- id="share-agent-button-topbar"
- class="text-gray-900 rounded-lg p-2 h-full bg-white flex gap-2 items-center text-sm disabled:opacity-50 border border-solid border-gray-200 hover:bg-smythos-blue-500 hover:border-v2-blue hover:text-white hover:[&_path]:stroke-white disabled:hover:bg-white disabled:hover:border-gray-200 disabled:hover:text-gray-900 disabled:hover:[&_path]:stroke-black"
- type="button"
- disabled="true"
- data-tooltip-target="tooltip-share"
- data-tooltip-placement="bottom"
- @click="
- window.handleShareAgentModalOpen
- ? window.handleShareAgentModalOpen(true)
- : console.warn('Share agent modal handler not ready')
- "
- >
- <svg
- width="16"
- height="16"
- viewBox="0 0 16 16"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M5.60959 3.0293H4.91713C3.12427 3.0293 2 4.29772 2 6.09276V10.9372C2 12.7323 3.11878 14.0007 4.91713 14.0007H10.0621C11.861 14.0007 12.9804 12.7323 12.9804 10.9372V9.20938"
- stroke="black"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- <path
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M10.6933 5.53751C9.10859 5.53751 7.88166 6.08579 7.20312 7.5842C7.20312 7.5842 6.61651 3.4717 10.6933 3.4717C10.6933 3.4717 10.6937 2.86559 10.6941 2.34397C10.6945 2.05143 11.0373 1.89295 11.2607 2.08222L13.8767 4.29825C14.0352 4.43269 14.0409 4.67491 13.8861 4.81461C13.3115 5.33435 12.0193 6.50226 11.2667 7.18233C11.0456 7.38213 10.6933 7.22407 10.6933 6.92587V5.53751Z"
- stroke="black"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- </svg>
- <span>Share</span>
- </button>
- <div
- id="tooltip-share"
- role="tooltip"
- class="hidden absolute z-10 inline-block text-sm w-max bg-black shadow-lg text-white py-2 px-4 rounded-lg opacity-0"
- style="font-family: 'Inter', sans-serif"
- >
- Share
- </div>
</div>
<!-- <%- include('top-user-menu', { dropdownId: 'top-user-menu-dropdown-desktop' }); -%> -->
diff --git a/packages/app/views/pages/partials/studio/icons/binary-tree.ejs b/packages/app/views/pages/partials/studio/icons/binary-tree.ejs
deleted file mode 100644
index 7ab4f3c9..00000000
--- a/packages/app/views/pages/partials/studio/icons/binary-tree.ejs
+++ /dev/null
@@ -1,23 +0,0 @@
-<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path
- d="M20.6229 15.1163L20.6229 18.2C20.6229 19.1941 19.8171 20 18.8229 20L17.9187 20C16.9246 20 16.1187 19.1941 16.1187 18.2L16.1187 15.1163C16.1187 14.1222 16.9246 13.3163 17.9187 13.3163L18.8229 13.3163C19.8171 13.3163 20.6229 14.1222 20.6229 15.1163Z"
- stroke="#374151"
- stroke-width="1.5"
- />
- <path
- d="M20.6229 4.79989L20.6229 7.88359C20.6229 8.87769 19.8171 9.68359 18.8229 9.68359L17.9187 9.68359C16.9246 9.68359 16.1187 8.87769 16.1187 7.88359L16.1187 4.79989C16.1187 3.80579 16.9246 2.99989 17.9187 2.99989L18.8229 2.99989C19.8171 2.99989 20.6229 3.80579 20.6229 4.79989Z"
- stroke="#374151"
- stroke-width="1.5"
- />
- <path
- d="M8.11898 9.88481L8.11898 12.9685C8.11898 13.9627 7.31309 14.7686 6.31898 14.7686L5.41475 14.7686C4.42063 14.7686 3.61475 13.9627 3.61475 12.9685L3.61475 9.88481C3.61475 8.89071 4.42063 8.08481 5.41475 8.08481L6.31898 8.08481C7.3131 8.08481 8.11898 8.89071 8.11898 9.88481Z"
- stroke="#374151"
- stroke-width="1.5"
- />
- <path
- d="M11.1663 11.5L8.11865 11.5M11.1663 11.5L16.1187 16.7832M11.1663 11.5L16.1187 6.2167"
- stroke="#374151"
- stroke-width="1.5"
- stroke-linecap="round"
- />
-</svg>
diff --git a/packages/app/views/pages/partials/studio/icons/database.ejs b/packages/app/views/pages/partials/studio/icons/database.ejs
deleted file mode 100644
index 8ab51cf6..00000000
--- a/packages/app/views/pages/partials/studio/icons/database.ejs
+++ /dev/null
@@ -1,37 +0,0 @@
-<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path
- d="M4.42188 6V11.9997C4.42188 11.9997 4.42188 14.9994 12.0005 14.9994C19.5792 14.9994 19.5792 11.9997 19.5792 11.9997V6"
- stroke="#374151"
- stroke-width="1.5"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- <path
- d="M4.42188 12V17.9996C4.42188 17.9996 4.42188 21.0004 12.0005 21.0004C19.5792 21.0004 19.5792 17.9996 19.5792 17.9996V12"
- stroke="#374151"
- stroke-width="1.5"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- <path
- d="M12.0005 9.03766C16.1861 9.03766 19.5792 7.68608 19.5792 6.01883C19.5792 4.35158 16.1861 3 12.0005 3C7.81496 3 4.42188 4.35158 4.42188 6.01883C4.42188 7.68608 7.81496 9.03766 12.0005 9.03766Z"
- stroke="#374151"
- stroke-width="1.5"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- <path
- d="M7.97388 17.6355V17.6157M7.97389 17.5117C7.9171 17.5117 7.87109 17.5577 7.87109 17.6143C7.87109 17.6711 7.9171 17.7171 7.97389 17.7171C8.03067 17.7171 8.07668 17.6711 8.07668 17.6143C8.07668 17.5577 8.03067 17.5117 7.97389 17.5117Z"
- stroke="#374151"
- stroke-width="1.5"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- <path
- d="M7.97388 11.4783V11.4585M7.97389 11.3545C7.9171 11.3545 7.87109 11.4005 7.87109 11.4571C7.87109 11.5139 7.9171 11.5599 7.97389 11.5599C8.03067 11.5599 8.07668 11.5139 8.07668 11.4571C8.07668 11.4005 8.03067 11.3545 7.97389 11.3545Z"
- stroke="#374151"
- stroke-width="1.5"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
-</svg>
diff --git a/packages/app/views/pages/partials/studio/icons/grid.ejs b/packages/app/views/pages/partials/studio/icons/grid.ejs
deleted file mode 100644
index 047b2246..00000000
--- a/packages/app/views/pages/partials/studio/icons/grid.ejs
+++ /dev/null
@@ -1,26 +0,0 @@
-<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M8.51379 2.32286C9.87146 2.36402 10.9892 3.40648 11.1233 4.76C11.2743 5.99324 11.2742 7.239 11.123 8.47223C10.982 9.8199 9.869 10.8569 8.51595 10.903C7.41981 11.0023 6.31669 11.0023 5.22055 10.903C3.8675 10.8569 2.75449 9.8199 2.61346 8.47223C2.46211 7.23765 2.46218 5.99052 2.61368 4.75596C2.76039 3.41203 3.86881 2.377 5.21882 2.3232C6.31481 2.22571 7.41779 2.2256 8.51379 2.32286ZM8.40348 3.81898C7.38224 3.72701 6.35426 3.72701 5.33302 3.81898C5.31847 3.82029 5.30388 3.82117 5.28927 3.82163C4.676 3.84087 4.16979 4.31046 4.10451 4.92166L4.10323 4.93364C3.96572 6.05078 3.96562 7.17923 4.10313 8.29637L4.10491 8.31225C4.16677 8.92148 4.672 9.38939 5.28393 9.40422C5.30078 9.40463 5.31762 9.40561 5.33441 9.40715C6.35473 9.50095 7.38177 9.50095 8.40209 9.40715C8.41888 9.40561 8.43572 9.40463 8.45257 9.40422C9.0645 9.38939 9.56973 8.92148 9.63159 8.31225L9.63337 8.29637C9.77088 7.17923 9.77088 6.05077 9.63337 4.93363L9.63111 4.91296C9.57315 4.30313 9.06771 3.83418 8.45565 3.82185C8.43823 3.8215 8.42083 3.82054 8.40348 3.81898Z"
- fill="#374151"
- />
- <path
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M8.51339 13.0908C9.87173 13.1318 10.9892 14.1757 11.1233 15.5289C11.2743 16.7608 11.2742 18.0072 11.1232 19.2391C10.9855 20.5901 9.86941 21.63 8.51555 21.6769C7.41968 21.7743 6.31683 21.7743 5.22096 21.6769C3.86513 21.63 2.75204 20.5892 2.61337 19.2394C2.46209 18.0049 2.46221 16.7579 2.61373 15.5235C2.7617 14.1799 3.87065 13.1492 5.21806 13.0952C6.31442 12.9956 7.41656 12.9945 8.51339 13.0908ZM8.40424 14.587C7.38194 14.4959 6.35518 14.4969 5.33441 14.5908C5.3194 14.5921 5.30436 14.5931 5.28929 14.5935C4.67558 14.6128 4.17021 15.0809 4.10442 15.6904L4.10322 15.7016C3.96571 16.8188 3.96562 17.9471 4.10313 19.0643L4.10508 19.0818C4.16575 19.6929 4.67132 20.1627 5.28465 20.1782C5.3008 20.1786 5.31693 20.1795 5.33302 20.1809C6.35426 20.2729 7.38224 20.2729 8.40348 20.1809C8.41956 20.1795 8.43569 20.1786 8.45184 20.1782C9.06506 20.1627 9.57144 19.6921 9.63135 19.0826L9.63338 19.0642C9.77087 17.9481 9.77087 16.8187 9.63338 15.7026L9.63111 15.6819C9.5731 15.0715 9.06718 14.6021 8.45565 14.5898C8.43848 14.5894 8.42134 14.5885 8.40424 14.587Z"
- fill="#374151"
- />
- <path
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M19.2768 13.0908C20.6348 13.1317 21.7526 14.1754 21.8857 15.5289C22.0377 16.7609 22.0376 18.0074 21.8856 19.2394C21.7478 20.5898 20.6332 21.63 19.279 21.6769C18.183 21.7743 17.08 21.7743 15.984 21.6769C14.6308 21.6289 13.5156 20.5906 13.3778 19.2394C13.2255 18.0049 13.2256 16.7579 13.3781 15.5235C13.5251 14.1795 14.6344 13.1492 15.9815 13.0952C17.0778 12.9956 18.18 12.9945 19.2768 13.0908ZM19.1677 14.587C18.1454 14.4959 17.1186 14.4969 16.0978 14.5908C16.0828 14.5921 16.0678 14.5931 16.0527 14.5935C15.4389 14.6128 14.934 15.0809 14.8689 15.6897L14.8676 15.7022C14.7292 16.8189 14.7291 17.9469 14.8675 19.0637L14.8696 19.0826C14.9295 19.692 15.4349 20.1621 16.0488 20.1782C16.0647 20.1786 16.0806 20.1795 16.0964 20.1809C17.1177 20.2729 18.1457 20.2729 19.1669 20.1809C19.183 20.1795 19.1991 20.1786 19.2153 20.1782C19.828 20.1627 20.3338 19.6926 20.3938 19.0826L20.3959 19.0636C20.5343 17.9479 20.5343 16.8189 20.3959 15.7032C20.395 15.6959 20.3942 15.6885 20.3935 15.6811C20.3361 15.0715 19.8307 14.6021 19.2191 14.5898C19.2019 14.5894 19.1848 14.5885 19.1677 14.587Z"
- fill="#374151"
- />
- <path
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M19.2772 2.32286C20.6336 2.36404 21.7525 3.40716 21.8857 4.75998C22.0377 5.99323 22.0376 7.23899 21.8855 8.47222C21.7454 9.82027 20.632 10.8569 19.2794 10.903C18.1832 11.0023 17.0801 11.0023 15.984 10.903C14.6313 10.8569 13.5179 9.82027 13.3779 8.47221C13.2255 7.23765 13.2256 5.99053 13.3781 4.75597C13.5238 3.41167 14.6326 2.37699 15.9822 2.3232C17.0782 2.22571 18.1812 2.2256 19.2772 2.32286ZM19.1669 3.81898C18.1457 3.72701 17.1177 3.72701 16.0964 3.81898C16.0819 3.82029 16.0673 3.82117 16.0527 3.82163C15.4393 3.84088 14.9336 4.31045 14.869 4.92091L14.8676 4.93426C14.7292 6.05099 14.7291 7.17902 14.8675 8.29575L14.8694 8.313C14.9306 8.92148 15.4353 9.38938 16.0473 9.40422C16.0642 9.40463 16.081 9.40561 16.0978 9.40715C17.1182 9.50095 18.1452 9.50095 19.1655 9.40715C19.1823 9.40561 19.1991 9.40463 19.216 9.40422C19.8281 9.38938 20.3328 8.92148 20.3939 8.313L20.3959 8.29575C20.5343 7.17902 20.5343 6.05098 20.3959 4.93425C20.395 4.92694 20.3942 4.91962 20.3935 4.91229C20.3362 4.3041 19.8302 3.83417 19.2191 3.82185C19.2016 3.8215 19.1842 3.82054 19.1669 3.81898Z"
- fill="#374151"
- />
-</svg>
diff --git a/packages/app/views/pages/partials/studio/icons/line-chart.ejs b/packages/app/views/pages/partials/studio/icons/line-chart.ejs
deleted file mode 100644
index 6c53b698..00000000
--- a/packages/app/views/pages/partials/studio/icons/line-chart.ejs
+++ /dev/null
@@ -1,14 +0,0 @@
-<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M4.5 3.36914C4.91421 3.36914 5.25 3.70493 5.25 4.11914V18.1191C5.25 18.8095 5.80964 19.3691 6.5 19.3691H20.5C20.9142 19.3691 21.25 19.7049 21.25 20.1191C21.25 20.5334 20.9142 20.8691 20.5 20.8691H6.5C4.98122 20.8691 3.75 19.6379 3.75 18.1191V4.11914C3.75 3.70493 4.08579 3.36914 4.5 3.36914Z"
- fill="#374151"
- />
- <path
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M20.4498 7.83325C20.8273 8.0038 20.9951 8.44805 20.8245 8.82553L20.1411 8.51673C20.8245 8.82553 20.8246 8.82534 20.8245 8.82553L20.8236 8.8275L20.8221 8.8308L20.8173 8.84128L20.8005 8.87724C20.7862 8.90765 20.7656 8.95069 20.739 9.00456C20.6858 9.11221 20.6085 9.26367 20.5091 9.44445C20.3112 9.80426 20.0215 10.2887 19.657 10.7775C19.2952 11.2626 18.8415 11.7767 18.3098 12.1752C17.7793 12.5729 17.1221 12.8915 16.3717 12.8915C15.0501 12.8915 14.0896 12.0662 13.3981 11.4721L13.3919 11.4668C13.3698 11.4478 13.3481 11.4291 13.3265 11.4106C12.9793 11.112 12.6964 10.8687 12.409 10.6897C12.1171 10.5079 11.8827 10.4339 11.6595 10.4403C10.9031 10.462 10.1789 11.0273 9.57564 11.7772C9.28942 12.133 9.06261 12.4908 8.90697 12.7613C8.82961 12.8958 8.77101 13.0066 8.73251 13.0822C8.71329 13.12 8.69916 13.1488 8.69029 13.1671L8.68097 13.1866L8.67971 13.1893C8.50664 13.5655 8.06131 13.7305 7.68505 13.5576C7.30868 13.3847 7.14378 12.9394 7.31674 12.563L7.99822 12.8762C7.31674 12.563 7.31664 12.5632 7.31674 12.563L7.31771 12.5609L7.31922 12.5576L7.32384 12.5477L7.33946 12.515C7.35268 12.4876 7.37153 12.4493 7.39585 12.4015C7.44444 12.3061 7.51516 12.1725 7.60678 12.0133C7.78907 11.6964 8.05878 11.2697 8.40691 10.837C9.07229 10.0099 10.168 8.98244 11.6166 8.94091C12.2369 8.92312 12.7637 9.14341 13.2022 9.41657C13.5923 9.65963 13.9607 9.97701 14.2835 10.2551C14.3125 10.2801 14.3411 10.3047 14.3694 10.329C15.1178 10.972 15.6788 11.3915 16.3717 11.3915C16.6871 11.3915 17.034 11.257 17.4101 10.975C17.7851 10.6939 18.1405 10.3018 18.4546 9.8807C18.7659 9.46334 19.0188 9.04158 19.1946 8.72175C19.2821 8.56271 19.3493 8.43099 19.394 8.34041C19.4164 8.29517 19.433 8.26033 19.4437 8.23764L19.4553 8.21298L19.4576 8.20794C19.6282 7.83067 20.0725 7.66275 20.4498 7.83325Z"
- fill="#374151"
- />
-</svg>
diff --git a/packages/app/views/pages/partials/studio/left-sidebar.ejs b/packages/app/views/pages/partials/studio/left-sidebar.ejs
index 5e1d8ef7..696cf166 100644
--- a/packages/app/views/pages/partials/studio/left-sidebar.ejs
+++ b/packages/app/views/pages/partials/studio/left-sidebar.ejs
@@ -297,94 +297,6 @@
</div>
</div>
- <!-- Subdomains -->
- <% if (navPages.filter(page => page.url === '/domains').length > 0) { %>
- <div class="relative group subdomains-btn">
- <a
- href="/domains"
- rel="noopener noreferrer"
- id="subdomains-button"
- class="relative w-full flex items-center h-10 justify-center"
- data-tooltip-target="tooltip-subdomains"
- data-tooltip-placement="right"
- >
- <div
- class="w-8 h-8 flex items-center justify-center transition-colors fill-gray-700 rounded-md hover:bg-gray-100"
- >
- <%- include('icons/binary-tree'); -%>
- </div>
- </a>
- <div
- id="tooltip-subdomains"
- role="tooltip"
- class="tooltip absolute z-10 inline-block text-sm w-max bg-black shadow-lg text-white py-2 px-4 rounded-lg opacity-0 invisible"
- data-popper-reference-hidden=""
- data-popper-escaped=""
- data-popper-placement="bottom"
- >
- Subdomains
- </div>
- </div>
- <% } %>
-
- <!-- Data Pool -->
- <% if (navPages.filter(page => page.url === '/data').length > 0) { %>
- <div class="relative group data-pool-btn">
- <a
- href="/data"
- rel="noopener noreferrer"
- id="data-pool-button"
- class="relative w-full flex items-center h-10 justify-center"
- data-tooltip-target="tooltip-data-pool"
- data-tooltip-placement="right"
- >
- <div
- class="w-8 h-8 flex items-center justify-center transition-colors fill-gray-700 rounded-md hover:bg-gray-100"
- >
- <%- include('icons/database'); -%>
- </div>
- </a>
- <div
- id="tooltip-data-pool"
- role="tooltip"
- class="tooltip absolute z-10 inline-block text-sm w-max bg-black shadow-lg text-white py-2 px-4 rounded-lg opacity-0 invisible"
- data-popper-reference-hidden=""
- data-popper-escaped=""
- data-popper-placement="bottom"
- >
- Data Pool
- </div>
- </div>
- <% } %>
- <!-- Analytics -->
- <% if (navPages.filter(page => page.url === '/analytics').length > 0) { %>
- <div class="relative group analytics-btn">
- <a
- href="/analytics"
- rel="noopener noreferrer"
- id="analytics-button"
- class="relative w-full flex items-center h-10 justify-center"
- data-tooltip-target="tooltip-analytics"
- data-tooltip-placement="right"
- >
- <div
- class="w-8 h-8 flex items-center justify-center transition-colors fill-gray-700 rounded-md hover:bg-gray-100"
- >
- <%- include('icons/line-chart'); -%>
- </div>
- </a>
- <div
- id="tooltip-analytics"
- role="tooltip"
- class="tooltip absolute z-10 inline-block text-sm w-max bg-black shadow-lg text-white py-2 px-4 rounded-lg opacity-0 invisible"
- data-popper-reference-hidden=""
- data-popper-escaped=""
- data-popper-placement="bottom"
- >
- Analytics
- </div>
- </div>
- <% } %>
<!-- Vault -->
<% if (navPages.filter(page => page.url === '/vault').length > 0) { %>
<div class="relative group vault-btn">
@@ -414,35 +326,6 @@
</div>
</div>
<% } %>
- <!-- Templates -->
- <% if (navPages.filter(page => page.url === '/templates').length > 0) { %>
- <div class="relative group templates-btn">
- <a
- href="/templates"
- rel="noopener noreferrer"
- id="templates-button"
- class="relative w-full flex items-center h-10 justify-center"
- data-tooltip-target="tooltip-templates"
- data-tooltip-placement="right"
- >
- <div
- class="w-8 h-8 flex items-center justify-center transition-colors fill-gray-700 rounded-md hover:bg-gray-100"
- >
- <%- include('icons/grid'); -%>
- </div>
- </a>
- <div
- id="tooltip-templates"
- role="tooltip"
- class="tooltip absolute z-10 inline-block text-sm w-max bg-black shadow-lg text-white py-2 px-4 rounded-lg opacity-0 invisible"
- data-popper-reference-hidden=""
- data-popper-escaped=""
- data-popper-placement="bottom"
- >
- Templates
- </div>
- </div>
- <% } %>
</div>
<!-- Help button needs special handling -->