From da892243d28df1c991229dfa6401e485dc997328 Mon Sep 17 00:00:00 2001 From: naman-bruno Date: Wed, 11 Mar 2026 19:05:42 +0530 Subject: [PATCH] refactor: update path imports to use utils/common/path (#7440) --- .../components/Sidebar/BulkImportCollectionLocation/index.js | 2 +- .../src/components/Sidebar/CloneGitRespository/index.js | 2 +- .../Sidebar/Collections/Collection/CloneCollection/index.js | 2 +- .../Sidebar/Collections/InlineCollectionCreator/index.js | 2 +- .../bruno-app/src/components/Sidebar/CreateCollection/index.js | 2 +- .../src/components/Sidebar/ImportCollectionLocation/index.js | 2 +- .../src/providers/ReduxStore/slices/workspaces/actions.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/BulkImportCollectionLocation/index.js b/packages/bruno-app/src/components/Sidebar/BulkImportCollectionLocation/index.js index 468c63ccc..e13746dee 100644 --- a/packages/bruno-app/src/components/Sidebar/BulkImportCollectionLocation/index.js +++ b/packages/bruno-app/src/components/Sidebar/BulkImportCollectionLocation/index.js @@ -2,7 +2,7 @@ import React, { useRef, useEffect, useState, useMemo, forwardRef } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useFormik } from 'formik'; import * as Yup from 'yup'; -import path from 'path'; +import path from 'utils/common/path'; import { browseDirectory, importCollection } from 'providers/ReduxStore/slices/collections/actions'; import Modal from 'components/Modal'; import { isElectron } from 'utils/common/platform'; diff --git a/packages/bruno-app/src/components/Sidebar/CloneGitRespository/index.js b/packages/bruno-app/src/components/Sidebar/CloneGitRespository/index.js index 53468091c..40bcdc8e8 100644 --- a/packages/bruno-app/src/components/Sidebar/CloneGitRespository/index.js +++ b/packages/bruno-app/src/components/Sidebar/CloneGitRespository/index.js @@ -10,7 +10,7 @@ import { } from 'providers/ReduxStore/slices/collections/actions'; import { removeGitOperationProgress } from 'providers/ReduxStore/slices/app'; import Modal from 'components/Modal'; -import * as path from 'path'; +import path from 'utils/common/path'; import Portal from 'components/Portal'; import { IconRefresh, IconCheck, IconAlertCircle, IconBrandGit } from '@tabler/icons'; import { uuid } from 'utils/common/index'; diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js index e8e2f9e92..708312147 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js @@ -2,7 +2,7 @@ import React, { useRef, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useFormik } from 'formik'; import * as Yup from 'yup'; -import path from 'path'; +import path from 'utils/common/path'; import { browseDirectory } from 'providers/ReduxStore/slices/collections/actions'; import { cloneCollection } from 'providers/ReduxStore/slices/collections/actions'; import toast from 'react-hot-toast'; diff --git a/packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js b/packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js index 0cb3ba027..0bbbdf2f9 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js @@ -2,7 +2,7 @@ import { useRef, useEffect, useState, useCallback } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { IconCheck, IconX, IconSettings } from '@tabler/icons'; import get from 'lodash/get'; -import path from 'path'; +import path from 'utils/common/path'; import toast from 'react-hot-toast'; import { createCollection } from 'providers/ReduxStore/slices/collections/actions'; import { sanitizeName, validateName, validateNameError } from 'utils/common/regex'; diff --git a/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js b/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js index 7731e3d9f..713ee9d32 100644 --- a/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js +++ b/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js @@ -2,7 +2,7 @@ import React, { useRef, useEffect, useState, forwardRef } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useFormik } from 'formik'; import * as Yup from 'yup'; -import path from 'path'; +import path from 'utils/common/path'; import { browseDirectory, createCollection } from 'providers/ReduxStore/slices/collections/actions'; import toast from 'react-hot-toast'; import Portal from 'components/Portal'; diff --git a/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js b/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js index 91bce94c9..bc1c7ecf0 100644 --- a/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js +++ b/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js @@ -3,7 +3,7 @@ import { useDispatch, useSelector } from 'react-redux'; import { useFormik } from 'formik'; import * as Yup from 'yup'; import get from 'lodash/get'; -import path from 'path'; +import path from 'utils/common/path'; import { IconCaretDown } from '@tabler/icons'; import { browseDirectory } from 'providers/ReduxStore/slices/collections/actions'; import { postmanToBruno } from 'utils/importers/postman-collection'; diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js b/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js index 29f099019..5761d605d 100644 --- a/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js +++ b/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'utils/common/path'; import { createWorkspace, removeWorkspace,