@@ -77,13 +77,6 @@ function _registerMageforgeInspector() {
7777 pageTimings : null ,
7878 performanceObservers : [ ] ,
7979
80- // Feature Discovery
81- MAX_NEW_BADGE_VIEWS : 5 ,
82- featureViews : {
83- 'performance' : 0 ,
84- 'core-web-vitals' : 0
85- } ,
86-
8780 // ====================================================================
8881 // Lifecycle
8982 // ====================================================================
@@ -103,7 +96,6 @@ function _registerMageforgeInspector() {
10396 this . createFloatingButton ( ) ;
10497 this . initWebVitalsTracking ( ) ;
10598 this . cachePageTimings ( ) ;
106- this . loadFeatureViews ( ) ;
10799
108100 // Dispatch init event for Hyvä integration
109101 this . $dispatch ( 'mageforge:inspector:init' ) ;
@@ -143,39 +135,6 @@ function _registerMageforgeInspector() {
143135 }
144136 } ,
145137
146- // ====================================================================
147- // Feature Views
148- // ====================================================================
149-
150- loadFeatureViews ( ) {
151- try {
152- const stored = localStorage . getItem ( 'mageforge_feature_views' ) ;
153- if ( stored ) {
154- this . featureViews = { ...this . featureViews , ...JSON . parse ( stored ) } ;
155- }
156- } catch ( e ) {
157- console . warn ( 'MageForge: Failed to load feature views' , e ) ;
158- }
159- } ,
160-
161- incrementFeatureViews ( ) {
162- let changed = false ;
163- [ 'performance' , 'core-web-vitals' ] . forEach ( feature => {
164- if ( this . featureViews [ feature ] < this . MAX_NEW_BADGE_VIEWS ) {
165- this . featureViews [ feature ] ++ ;
166- changed = true ;
167- }
168- } ) ;
169-
170- if ( changed ) {
171- try {
172- localStorage . setItem ( 'mageforge_feature_views' , JSON . stringify ( this . featureViews ) ) ;
173- } catch ( e ) {
174- // Ignore storage errors
175- }
176- }
177- } ,
178-
179138 // ====================================================================
180139 // Panel Data
181140 // ====================================================================
0 commit comments