diff --git a/frontend/__mocks__/$app/stores.ts b/frontend/__mocks__/$app/stores.ts index be5d92bd30c..242b400ace9 100644 --- a/frontend/__mocks__/$app/stores.ts +++ b/frontend/__mocks__/$app/stores.ts @@ -25,7 +25,7 @@ const initPageStoreMock = () => { data = { universe: OWN_CANISTER_ID_TEXT }, }: { routeId?: string; - data?: { universe: string | null } & Record; + data?: { universe: string | null } & Record; }) => set({ data, diff --git a/frontend/src/lib/components/common/MenuItems.svelte b/frontend/src/lib/components/common/MenuItems.svelte index eb03b5be620..6df1390d91f 100644 --- a/frontend/src/lib/components/common/MenuItems.svelte +++ b/frontend/src/lib/components/common/MenuItems.svelte @@ -19,9 +19,14 @@ proposalsPathStore, } from "$lib/derived/paths.derived"; import { pageStore } from "$lib/derived/page.derived"; - import { isSelectedPath } from "$lib/utils/navigation.utils"; + import { + ACTIONABLE_PROPOSALS_URL, + isSelectedPath, + } from "$lib/utils/navigation.utils"; import MenuMetrics from "$lib/components/common/MenuMetrics.svelte"; import ActionableProposalTotalCountBadge from "$lib/components/proposals/ActionableProposalTotalCountBadge.svelte"; + import { ENABLE_ACTIONABLE_TAB } from "$lib/stores/feature-flags.store"; + import { authSignedInStore } from "$lib/derived/auth.derived"; let routes: { context: string; @@ -59,7 +64,12 @@ }, { context: "proposals", - href: $proposalsPathStore, + href: + // Switch to the actionable proposals page only when users are signed in. + // When users are signed out, we preserve the universe in the URL. + $ENABLE_ACTIONABLE_TAB && $authSignedInStore + ? ACTIONABLE_PROPOSALS_URL + : $proposalsPathStore, selected: isSelectedPath({ currentPath: $pageStore.path, paths: [AppPath.Proposals, AppPath.Proposal], diff --git a/frontend/src/lib/components/ui/Separator.svelte b/frontend/src/lib/components/ui/Separator.svelte index fd91d464cdb..d0e22f78222 100644 --- a/frontend/src/lib/components/ui/Separator.svelte +++ b/frontend/src/lib/components/ui/Separator.svelte @@ -1,8 +1,13 @@ -
+