Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed May 17, 2024
1 parent 7523872 commit 3dda142
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ type ConfigOption =
interface PluginContent {
title: string
description: string
// some plugins make no sense e.g. geo location doesn't apply to session replay
denyList: ProductKey[]
// some plugins make no sense e.g. geolocation doesn't apply to session replay
productOnboardingDenyList: ProductKey[]
}
type PluginContentMapping = Record<string, PluginContent>
const pluginContentMapping: PluginContentMapping = {
GeoIP: {
title: 'Capture location information',
description:
'Enrich PostHog events and persons with IP location data. This is useful for understanding where your users are coming from. This setting can be found under the data pipelines apps.',
denyList: [ProductKey.SESSION_REPLAY],
productOnboardingDenyList: [ProductKey.SESSION_REPLAY],
},
}

Expand Down Expand Up @@ -88,7 +88,7 @@ export const OnboardingProductConfiguration = ({
...defaultEnabledPlugins
.filter((plugin) => {
const pluginContent = pluginContentMapping[plugin.name]
return !product || (pluginContent && !pluginContent?.denyList.includes(product))
return !product || (pluginContent && !pluginContent?.productOnboardingDenyList.includes(product))
})
.map((plugin) => {
const pluginContent = pluginContentMapping[plugin.name]
Expand Down

0 comments on commit 3dda142

Please sign in to comment.