Skip to content

Commit 27dc035

Browse files
committed
Modularizes dialogs and restructures components
Moves dialog-related UI into a dedicated module for clearer structure and simpler imports. Groups NodeEditor, Sidebar, Webhook Inspector, and TopBar pieces into subfolders and fixes relative paths. Updates all imports to reflect new locations. Removes unused/legacy components to reduce dead code. No behavioral changes.
1 parent 961fe52 commit 27dc035

35 files changed

+27
-481
lines changed

src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import { Sidebar } from './components/Sidebar';
66
// ...existing code...
77
import { ScriptEditor } from './components/ScriptEditor';
88
import { NodeEditor } from './components/NodeEditor';
9-
import { DialogManager } from './components/DialogManager';
9+
import { DialogManager } from './components/Dialogs';
1010
import { DocViewer } from './components/DocViewer';
1111
import WebhookView from './components/WebhookView';
12-
import { EnvironmentDebug } from './components/EnvironmentDebug';
1312
import { Activity, Step, ScriptData, isActivity, isStep, LogicNode } from './types';
1413
import { normalizeScript } from './normalizer';
1514
import { createActivity, createStep } from './factories';

src/app/AppShell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { TopBar } from '../components/TopBar';
33
import { TabBar } from '../components/TabBar';
44
import { Sidebar } from '../components/Sidebar';
5-
import { DialogManager } from '../components/DialogManager';
5+
import { DialogManager } from '../components/Dialogs';
66
import { ScriptEditor } from '../components/ScriptEditor';
77
import { NodeEditor } from '../components/NodeEditor';
88
import { DocViewer } from '../components/DocViewer';

src/app/Routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { DialogManager } from '../components/DialogManager';
2+
import { DialogManager } from '../components/Dialogs';
33
import { Sidebar } from '../components/Sidebar';
44
import { ScriptEditor } from '../components/ScriptEditor';
55
import { NodeEditor } from '../components/NodeEditor';

src/components/AuthStatus.tsx

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/components/ConditionEditor.tsx

Lines changed: 0 additions & 83 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react';
22

3-
import { Activity } from '../types';
4-
import { createActivity } from '../factories';
3+
import { Activity } from '../../types';
4+
import { createActivity } from '../../factories';
55

66
interface ActivityDialogProps {
77
open: boolean;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22

3-
import { Step } from '../types';
4-
import { createStep } from '../factories';
3+
import { Step } from '../../types';
4+
import { createStep } from '../../factories';
55

66
interface StepDialogProps {
77
open: boolean;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Activity, Step } from '../types';
2+
import { Activity, Step } from '../../types';
33
import { ActivityDialog } from './ActivityDialog';
44
import { StepDialog } from './StepDialog';
55

src/components/EditPanel.tsx

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/components/LoginPage.tsx

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)