refactor!: rename Command Menu page/navigation layer to Side Panel (#18393)
This commit is contained in:
+7
-7
@@ -1,5 +1,5 @@
|
||||
import { useWorkflowCommandMenu } from '@/command-menu/hooks/useWorkflowCommandMenu';
|
||||
import { commandMenuNavigationStackState } from '@/command-menu/states/commandMenuNavigationStackState';
|
||||
import { useSidePanelWorkflowNavigation } from '@/side-panel/pages/workflow/hooks/useSidePanelWorkflowNavigation';
|
||||
import { sidePanelNavigationStackState } from '@/side-panel/states/sidePanelNavigationStackState';
|
||||
import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTabIdComponentState';
|
||||
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
|
||||
import { useSetAtomComponentState } from '@/ui/utilities/state/jotai/hooks/useSetAtomComponentState';
|
||||
@@ -46,7 +46,7 @@ export const useVariableDropdown = ({
|
||||
const [currentPath, setCurrentPath] = useState<string[]>([]);
|
||||
const [searchInputValue, setSearchInputValue] = useState('');
|
||||
|
||||
const { openWorkflowEditStepInCommandMenu } = useWorkflowCommandMenu();
|
||||
const { openWorkflowEditStepInSidePanel } = useSidePanelWorkflowNavigation();
|
||||
|
||||
const workflowVisualizerWorkflowId = useAtomComponentStateValue(
|
||||
workflowVisualizerWorkflowIdComponentState,
|
||||
@@ -62,8 +62,8 @@ export const useVariableDropdown = ({
|
||||
const setWorkflowDiagram = useSetAtomComponentState(
|
||||
workflowDiagramComponentState,
|
||||
);
|
||||
const setCommandMenuNavigationStack = useSetAtomState(
|
||||
commandMenuNavigationStackState,
|
||||
const setSidePanelNavigationStack = useSetAtomState(
|
||||
sidePanelNavigationStackState,
|
||||
);
|
||||
|
||||
const getDisplayedSubStepFields = () => {
|
||||
@@ -122,9 +122,9 @@ export const useVariableDropdown = ({
|
||||
};
|
||||
});
|
||||
|
||||
setCommandMenuNavigationStack([]);
|
||||
setSidePanelNavigationStack([]);
|
||||
|
||||
openWorkflowEditStepInCommandMenu(
|
||||
openWorkflowEditStepInSidePanel(
|
||||
workflowVisualizerWorkflowId,
|
||||
step.name,
|
||||
getIcon(step.icon),
|
||||
|
||||
Reference in New Issue
Block a user