([
],
})),
selectors({
+ onCompleteOnboardingRedirectUrl: [
+ (s) => [s.featureFlags, s.productKey],
+ (featureFlags: FeatureFlagsSet, productKey: string | null) => {
+ return productKey ? getProductUri(productKey as ProductKey, featureFlags) : urls.default()
+ },
+ ],
totalOnboardingSteps: [
(s) => [s.allOnboardingSteps],
(allOnboardingSteps: AllOnboardingSteps) => allOnboardingSteps.length,
diff --git a/frontend/src/scenes/products/Products.tsx b/frontend/src/scenes/products/Products.tsx
index eed399afba9a7..681d7a810bdd8 100644
--- a/frontend/src/scenes/products/Products.tsx
+++ b/frontend/src/scenes/products/Products.tsx
@@ -5,6 +5,7 @@ import { useActions, useValues } from 'kea'
import { router } from 'kea-router'
import { LemonCard } from 'lib/lemon-ui/LemonCard/LemonCard'
import { Spinner } from 'lib/lemon-ui/Spinner'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { billingLogic } from 'scenes/billing/billingLogic'
import { getProductUri } from 'scenes/onboarding/onboardingLogic'
import { SceneExport } from 'scenes/sceneTypes'
@@ -93,6 +94,7 @@ export function ProductCard({
className?: string
}): JSX.Element {
const { currentTeam } = useValues(teamLogic)
+ const { featureFlags } = useValues(featureFlagLogic)
const onboardingCompleted = currentTeam?.has_completed_onboarding_for?.[product.type]
const vertical = orientation === 'vertical'
@@ -113,7 +115,7 @@ export function ProductCard({
{onboardingCompleted ? (
diff --git a/frontend/src/scenes/urls.ts b/frontend/src/scenes/urls.ts
index 26452f9e94f5f..bd5cbe5939aec 100644
--- a/frontend/src/scenes/urls.ts
+++ b/frontend/src/scenes/urls.ts
@@ -64,6 +64,7 @@ export const urls = {
`/batch_exports/${id}` + (params ? `?${toParams(params)}` : ''),
batchExportEdit: (id: string): string => `/batch_exports/${id}/edit`,
ingestionWarnings: (): string => '/data-management/ingestion-warnings',
+ insights: (): string => '/insights',
insightNew: (filters?: AnyPartialFilterType, dashboardId?: DashboardType['id'] | null, query?: string): string =>
combineUrl('/insights/new', dashboardId ? { dashboard: dashboardId } : {}, {
...(filters ? { filters } : {}),