@@ -37,6 +37,7 @@ import {
3737 UsersThreeIcon ,
3838 WarningIcon ,
3939} from "@phosphor-icons/react" ;
40+ import { GATED_FEATURES } from "@/types/features" ;
4041import type { Category , NavigationSection } from "./types" ;
4142
4243const createNavItem = (
@@ -232,25 +233,43 @@ export const websiteNavigation: NavigationSection[] = [
232233 createNavItem ( "Web Vitals" , HeartbeatIcon , "/vitals" , {
233234 rootLevel : false ,
234235 alpha : true ,
236+ gatedFeature : GATED_FEATURES . WEB_VITALS ,
235237 } ) ,
236238 createNavItem ( "Performance" , ActivityIcon , "/performance" , {
237239 rootLevel : false ,
238240 tag : "deprecated" ,
239241 } ) ,
240- createNavItem ( "Geographic" , MapPinIcon , "/map" , { rootLevel : false } ) ,
241- createNavItem ( "Error Tracking" , BugIcon , "/errors" , { rootLevel : false } ) ,
242+ createNavItem ( "Geographic" , MapPinIcon , "/map" , {
243+ rootLevel : false ,
244+ gatedFeature : GATED_FEATURES . GEOGRAPHIC ,
245+ } ) ,
246+ createNavItem ( "Error Tracking" , BugIcon , "/errors" , {
247+ rootLevel : false ,
248+ gatedFeature : GATED_FEATURES . ERROR_TRACKING ,
249+ } ) ,
242250 ] ) ,
243251 createNavSection ( "Product Analytics" , TrendUpIcon , [
244- createNavItem ( "Users" , UsersThreeIcon , "/users" , { rootLevel : false } ) ,
245- createNavItem ( "Funnels" , FunnelIcon , "/funnels" , { rootLevel : false } ) ,
246- createNavItem ( "Goals" , TargetIcon , "/goals" , { rootLevel : false } ) ,
252+ createNavItem ( "Users" , UsersThreeIcon , "/users" , {
253+ rootLevel : false ,
254+ gatedFeature : GATED_FEATURES . USERS ,
255+ } ) ,
256+ createNavItem ( "Funnels" , FunnelIcon , "/funnels" , {
257+ rootLevel : false ,
258+ gatedFeature : GATED_FEATURES . FUNNELS ,
259+ } ) ,
260+ createNavItem ( "Goals" , TargetIcon , "/goals" , {
261+ rootLevel : false ,
262+ gatedFeature : GATED_FEATURES . GOALS ,
263+ } ) ,
247264 createNavItem ( "Retention" , RepeatIcon , "/retention" , {
248265 rootLevel : false ,
249266 alpha : true ,
267+ gatedFeature : GATED_FEATURES . RETENTION ,
250268 } ) ,
251269 createNavItem ( "Feature Flags" , FlagIcon , "/flags" , {
252270 alpha : true ,
253271 rootLevel : false ,
272+ gatedFeature : GATED_FEATURES . FEATURE_FLAGS ,
254273 } ) ,
255274 // createNavItem("Databunny AI", RobotIcon, "/assistant", {
256275 // alpha: true,
@@ -276,6 +295,7 @@ export const websiteSettingsNavigation: NavigationSection[] = [
276295 ) ,
277296 createNavItem ( "Data Export" , FileArrowDownIcon , "/settings/export" , {
278297 rootLevel : false ,
298+ gatedFeature : GATED_FEATURES . DATA_EXPORT ,
279299 } ) ,
280300 ] ) ,
281301] ;
0 commit comments