mirror of
https://github.com/Nikhil-Doye/workflow-builder.git
synced 2026-07-22 02:01:56 +02:00
Remove onboarding features from WorkflowToolbar component
- Eliminated onboarding-related state and UI elements from the WorkflowToolbar, including the tutorial button and modal. - Cleaned up unused imports related to onboarding, streamlining the component's code structure.
This commit is contained in:
@@ -13,7 +13,6 @@ import {
|
||||
Clock,
|
||||
Activity,
|
||||
GitBranch,
|
||||
HelpCircle,
|
||||
} from "lucide-react";
|
||||
import {
|
||||
downloadWorkflow,
|
||||
@@ -22,8 +21,6 @@ import {
|
||||
import { ApiKeysSettings } from "./ApiKeysSettings";
|
||||
import { DatabaseConnectionManager } from "./DatabaseConnectionManager";
|
||||
import { WorkflowScheduler } from "./WorkflowScheduler";
|
||||
import { OnboardingModal } from "./OnboardingModal";
|
||||
import { OnboardingManager } from "../utils/onboardingManager";
|
||||
import { Button } from "./ui/button";
|
||||
|
||||
export const WorkflowToolbar: React.FC = () => {
|
||||
@@ -42,7 +39,6 @@ export const WorkflowToolbar: React.FC = () => {
|
||||
const [showDatabaseManager, setShowDatabaseManager] = useState(false);
|
||||
const [showScheduler, setShowScheduler] = useState(false);
|
||||
const [showSaveSuccess, setShowSaveSuccess] = useState(false);
|
||||
const [showOnboarding, setShowOnboarding] = useState(false);
|
||||
|
||||
const handleSave = () => {
|
||||
if (currentWorkflow) {
|
||||
@@ -162,19 +158,6 @@ export const WorkflowToolbar: React.FC = () => {
|
||||
Schedule
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
onClick={() => setShowOnboarding(true)}
|
||||
variant="outline"
|
||||
title="Show Tutorial"
|
||||
className="relative"
|
||||
>
|
||||
<HelpCircle className="w-4 h-4 mr-2" />
|
||||
Tutorial
|
||||
{OnboardingManager.getStatus().isNewVersionAvailable && (
|
||||
<div className="absolute -top-1 -right-1 w-3 h-3 bg-blue-500 rounded-full"></div>
|
||||
)}
|
||||
</Button>
|
||||
|
||||
<div className="w-px h-6 bg-gray-300" />
|
||||
|
||||
{/* Execution Mode Selector */}
|
||||
@@ -279,15 +262,6 @@ export const WorkflowToolbar: React.FC = () => {
|
||||
workflowId={currentWorkflow?.id}
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Onboarding Modal */}
|
||||
{showOnboarding && (
|
||||
<OnboardingModal
|
||||
isOpen={showOnboarding}
|
||||
onClose={() => setShowOnboarding(false)}
|
||||
onComplete={() => setShowOnboarding(false)}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user