Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions assets/js/collaborative-editor/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import { useCallback, useContext, useState } from 'react';

import { useURLState } from '#/react/lib/use-url-state';

import { buildClassicalEditorUrl } from '../../utils/editorUrlConversion';
import * as dataclipApi from '../api/dataclips';
import { StoreContext } from '../contexts/StoreProvider';
import { channelRequest } from '../hooks/useChannel';
import { getCsrfToken } from '../lib/csrf';
import { useActiveRun } from '../hooks/useHistory';
import { useSession } from '../hooks/useSession';
import {
useIsNewWorkflow,
useLimits,
Expand Down Expand Up @@ -228,7 +225,6 @@ export function Header({
const isCreateWorkflowPanelCollapsed = useIsCreateWorkflowPanelCollapsed();
const importPanelState = useImportPanelState();
const { selectedTemplate } = useTemplatePanel();
const { provider } = useSession();
const limits = useLimits();
const { isReadOnly } = useWorkflowReadOnly();
const { hasChanges } = useUnsavedChanges();
Expand Down Expand Up @@ -365,25 +361,6 @@ export function Header({
}
}, [firstTriggerId, openRunPanel, selectNode, updateSearchParams]);

const handleSwitchToLegacyEditor = useCallback(async () => {
if (!provider?.channel || !projectId || !workflowId) return;

try {
await channelRequest(provider.channel, 'switch_to_legacy_editor', {});

// Build legacy editor URL and navigate
const legacyUrl = buildClassicalEditorUrl({
projectId,
workflowId,
searchParams: new URLSearchParams(window.location.search),
isNewWorkflow,
});
window.location.href = legacyUrl;
} catch (error) {
console.error('Failed to switch to legacy editor:', error);
}
}, [provider, projectId, workflowId, isNewWorkflow]);

useKeyboardShortcut(
'Control+Enter, Meta+Enter',
() => {
Expand Down Expand Up @@ -452,26 +429,6 @@ export function Header({
<div className="mx-auto sm:px-4 lg:px-4 py-6 flex items-center h-20 text-sm gap-2">
<Breadcrumbs>{children}</Breadcrumbs>
<ReadOnlyWarning className="ml-3" />
{projectId && workflowId && (
<Tooltip
content={
<span>
Looking for the old version of the workflow builder? You can
switch back for a few more days by clicking this icon. (But it
will soon be retired!)
</span>
}
side="bottom"
>
<button
type="button"
onClick={() => void handleSwitchToLegacyEditor()}
className="w-6 h-6 place-self-center text-slate-500 hover:text-slate-400 cursor-pointer"
>
<span className="hero-question-mark-circle"></span>
</button>
</Tooltip>
)}
<ActiveCollaborators className="ml-2" />
<div className="grow ml-2"></div>

Expand Down
2 changes: 1 addition & 1 deletion assets/js/collaborative-editor/hooks/useWorkflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ export const useWorkflowActions = () => {
const searchParams = new URLSearchParams(url.search);
searchParams.delete('method'); // Close left panel
const queryString = searchParams.toString();
const newUrl = `/projects/${projectId}/w/${workflowId}/legacy${queryString ? `?${queryString}` : ''}`;
const newUrl = `/projects/${projectId}/w/${workflowId}${queryString ? `?${queryString}` : ''}`;
window.history.pushState({}, '', newUrl);
// Mark workflow as no longer new after first save
sessionContextStore.clearIsNewWorkflow();
Expand Down
60 changes: 0 additions & 60 deletions assets/js/job-editor/JobEditor.tsx

This file was deleted.

157 changes: 0 additions & 157 deletions assets/js/job-editor/JobEditorComponent.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions assets/js/metadata-loader/metadata.ts

This file was deleted.

Loading
Loading