diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index d9bf694363..bc77009b65 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -7,6 +7,7 @@ concurrency:
jobs:
eslint:
+ permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index a25c47ab2a..3a1dd52e3c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,6 +12,7 @@ concurrency:
jobs:
test:
+ permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
diff --git a/src/components/common/ErrorBoundary/index.tsx b/src/components/common/ErrorBoundary/index.tsx
index e277db308a..f25c1bbcfa 100644
--- a/src/components/common/ErrorBoundary/index.tsx
+++ b/src/components/common/ErrorBoundary/index.tsx
@@ -33,7 +33,7 @@ const ErrorBoundary: FallbackRender = ({ error, componentStack }) => {
{componentStack}
>
)}
-
+
Go home
diff --git a/src/components/common/Footer/index.tsx b/src/components/common/Footer/index.tsx
index afd19922e0..545b1f43aa 100644
--- a/src/components/common/Footer/index.tsx
+++ b/src/components/common/Footer/index.tsx
@@ -11,7 +11,7 @@ import MUILink from '@mui/material/Link'
import { IS_DEV, IS_OFFICIAL_HOST } from '@/config/constants'
const footerPages = [
- AppRoutes.welcome,
+ AppRoutes.welcome.index,
AppRoutes.settings.index,
AppRoutes.imprint,
AppRoutes.privacy,
diff --git a/src/components/common/Header/index.tsx b/src/components/common/Header/index.tsx
index 6930e44840..3949faba5d 100644
--- a/src/components/common/Header/index.tsx
+++ b/src/components/common/Header/index.tsx
@@ -29,7 +29,7 @@ const Header = ({ onMenuToggle, onBatchToggle }: HeaderProps): ReactElement => {
const router = useRouter()
// Logo link: if on Dashboard, link to Welcome, otherwise to the root (which redirects to either Dashboard or Welcome)
- const logoHref = router.pathname === AppRoutes.home ? AppRoutes.welcome : AppRoutes.index
+ const logoHref = router.pathname === AppRoutes.home ? AppRoutes.welcome.index : AppRoutes.index
const handleMenuToggle = () => {
if (onMenuToggle) {
diff --git a/src/components/common/NetworkSelector/index.tsx b/src/components/common/NetworkSelector/index.tsx
index 4588d4d403..c795eecf59 100644
--- a/src/components/common/NetworkSelector/index.tsx
+++ b/src/components/common/NetworkSelector/index.tsx
@@ -15,7 +15,7 @@ import useWallet from '@/hooks/wallets/useWallet'
import { isSocialWalletEnabled } from '@/hooks/wallets/wallets'
import { isSocialLoginWallet } from '@/services/mpc/SocialLoginModule'
-const keepPathRoutes = [AppRoutes.welcome, AppRoutes.newSafe.create, AppRoutes.newSafe.load]
+const keepPathRoutes = [AppRoutes.welcome.index, AppRoutes.newSafe.create, AppRoutes.newSafe.load]
const MenuWithTooltip = forwardRef(function MenuWithTooltip(props: any, ref) {
return (
diff --git a/src/components/common/SafeLoadingError/index.tsx b/src/components/common/SafeLoadingError/index.tsx
index a26fadf719..a9c17acf27 100644
--- a/src/components/common/SafeLoadingError/index.tsx
+++ b/src/components/common/SafeLoadingError/index.tsx
@@ -15,7 +15,7 @@ const SafeLoadingError = ({ children }: { children: ReactNode }): ReactElement =
img={}
text="This Safe Account couldn't be loaded"
>
-
+
diff --git a/src/components/new-safe/create/__tests__/useSyncSafeCreationStep.test.ts b/src/components/new-safe/create/__tests__/useSyncSafeCreationStep.test.ts
index 310b09fbf7..a9ee033841 100644
--- a/src/components/new-safe/create/__tests__/useSyncSafeCreationStep.test.ts
+++ b/src/components/new-safe/create/__tests__/useSyncSafeCreationStep.test.ts
@@ -36,7 +36,7 @@ describe('useSyncSafeCreationStep', () => {
renderHook(() => useSyncSafeCreationStep(mockSetStep))
expect(mockSetStep).not.toHaveBeenCalled()
- expect(mockPushRoute).toHaveBeenCalledWith({ pathname: AppRoutes.welcome, query: undefined })
+ expect(mockPushRoute).toHaveBeenCalledWith({ pathname: AppRoutes.welcome.index, query: undefined })
})
it('should go to the fourth step if there is a pending safe', async () => {
diff --git a/src/components/new-safe/create/index.tsx b/src/components/new-safe/create/index.tsx
index 1cb5429301..0231027e5e 100644
--- a/src/components/new-safe/create/index.tsx
+++ b/src/components/new-safe/create/index.tsx
@@ -169,7 +169,7 @@ const CreateSafe = () => {
const initialStep = isSocialLogin ? 2 : 0
const onClose = () => {
- router.push(AppRoutes.welcome)
+ router.push(AppRoutes.welcome.index)
}
return (
diff --git a/src/components/new-safe/create/steps/SetNameStep/index.tsx b/src/components/new-safe/create/steps/SetNameStep/index.tsx
index 898d3ddd84..e6efd1fcad 100644
--- a/src/components/new-safe/create/steps/SetNameStep/index.tsx
+++ b/src/components/new-safe/create/steps/SetNameStep/index.tsx
@@ -63,7 +63,7 @@ function SetNameStep({
const onCancel = () => {
trackEvent(CREATE_SAFE_EVENTS.CANCEL_CREATE_SAFE_FORM)
- router.push(AppRoutes.welcome)
+ router.push(AppRoutes.welcome.index)
}
const isDisabled = isWrongChain || !isValid
diff --git a/src/components/new-safe/create/steps/StatusStep/index.tsx b/src/components/new-safe/create/steps/StatusStep/index.tsx
index 255ad37572..642b2ccd05 100644
--- a/src/components/new-safe/create/steps/StatusStep/index.tsx
+++ b/src/components/new-safe/create/steps/StatusStep/index.tsx
@@ -49,7 +49,7 @@ export const CreateSafeStatus = ({ data, setProgressColor, setStep }: StepRender
const onClose = useCallback(() => {
setPendingSafe(undefined)
- router.push(AppRoutes.welcome)
+ router.push(AppRoutes.welcome.index)
}, [router, setPendingSafe])
const handleRetry = useCallback(() => {
diff --git a/src/components/new-safe/create/useSyncSafeCreationStep.ts b/src/components/new-safe/create/useSyncSafeCreationStep.ts
index 9604114671..ef4294bee5 100644
--- a/src/components/new-safe/create/useSyncSafeCreationStep.ts
+++ b/src/components/new-safe/create/useSyncSafeCreationStep.ts
@@ -22,7 +22,7 @@ const useSyncSafeCreationStep = (setStep: StepRenderProps['setS
// Jump to connect wallet step if there is no wallet and no pending Safe
if (!wallet) {
- router.push({ pathname: AppRoutes.welcome, query: router.query })
+ router.push({ pathname: AppRoutes.welcome.index, query: router.query })
}
// Jump to choose name and network step if the wallet is connected to the wrong chain and there is no pending Safe
diff --git a/src/components/new-safe/load/index.tsx b/src/components/new-safe/load/index.tsx
index 727d39a840..84c24c91ee 100644
--- a/src/components/new-safe/load/index.tsx
+++ b/src/components/new-safe/load/index.tsx
@@ -46,7 +46,7 @@ const LoadSafe = ({ initialData }: { initialData?: TxStepperProps {
- router.push(AppRoutes.welcome)
+ router.push(AppRoutes.welcome.index)
}
const initialSafe = initialData ?? loadSafeDefaultData
diff --git a/src/components/sidebar/SafeList/index.tsx b/src/components/sidebar/SafeList/index.tsx
index 3689c7831a..c004462395 100644
--- a/src/components/sidebar/SafeList/index.tsx
+++ b/src/components/sidebar/SafeList/index.tsx
@@ -82,7 +82,7 @@ const SafeList = ({ closeDrawer }: { closeDrawer?: () => void }): ReactElement =
const hasWallet = !!wallet
const hasNoSafes = Object.keys(ownedSafes).length === 0 && Object.keys(addedSafes).length === 0
- const isWelcomePage = router.pathname === AppRoutes.welcome
+ const isWelcomePage = router.pathname === AppRoutes.welcome.index || router.pathname === AppRoutes.welcome.socialLogin
const isSingleTxPage = router.pathname === AppRoutes.transactions.tx
/**
@@ -110,7 +110,7 @@ const SafeList = ({ closeDrawer }: { closeDrawer?: () => void }): ReactElement =
{!isWelcomePage && (