diff --git a/src/view/frontend/web/css/inspector.css b/src/view/frontend/web/css/inspector.css index 134e1e83..dbb26381 100644 --- a/src/view/frontend/web/css/inspector.css +++ b/src/view/frontend/web/css/inspector.css @@ -461,19 +461,6 @@ border-bottom-color: var(--mageforge-color-blue); } -.mageforge-badge-new { - background: linear-gradient(135deg, var(--mageforge-color-amber) 0%, var(--mageforge-color-amber) 100%); - color: white; - font-size: 8px; - padding: 1px 4px; - border-radius: 4px; - font-weight: 700; - text-transform: uppercase; - letter-spacing: 0.05em; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); - animation: mageforge-pulse 2s infinite; -} - /* ============================================================================ Info Sections & Data Display ========================================================================== */ diff --git a/src/view/frontend/web/js/inspector.js b/src/view/frontend/web/js/inspector.js index 5d01a8c3..916b6d70 100644 --- a/src/view/frontend/web/js/inspector.js +++ b/src/view/frontend/web/js/inspector.js @@ -75,13 +75,6 @@ function _registerMageforgeInspector() { pageTimings: null, performanceObservers: [], - // Feature Discovery - MAX_NEW_BADGE_VIEWS: 5, - featureViews: { - 'performance': 0, - 'core-web-vitals': 0 - }, - // ==================================================================== // Lifecycle // ==================================================================== @@ -101,7 +94,6 @@ function _registerMageforgeInspector() { this.createFloatingButton(); this.initWebVitalsTracking(); this.cachePageTimings(); - this.loadFeatureViews(); // Dispatch init event for Hyvä integration this.$dispatch('mageforge:inspector:init'); @@ -141,39 +133,6 @@ function _registerMageforgeInspector() { } }, - // ==================================================================== - // Feature Views - // ==================================================================== - - loadFeatureViews() { - try { - const stored = localStorage.getItem('mageforge_feature_views'); - if (stored) { - this.featureViews = { ...this.featureViews, ...JSON.parse(stored) }; - } - } catch (e) { - console.warn('MageForge: Failed to load feature views', e); - } - }, - - incrementFeatureViews() { - let changed = false; - ['performance', 'core-web-vitals'].forEach(feature => { - if (this.featureViews[feature] < this.MAX_NEW_BADGE_VIEWS) { - this.featureViews[feature]++; - changed = true; - } - }); - - if (changed) { - try { - localStorage.setItem('mageforge_feature_views', JSON.stringify(this.featureViews)); - } catch (e) { - // Ignore storage errors - } - } - }, - // ==================================================================== // Panel Data // ==================================================================== diff --git a/src/view/frontend/web/js/inspector/picker.js b/src/view/frontend/web/js/inspector/picker.js index 2cbeb651..d064dd4f 100644 --- a/src/view/frontend/web/js/inspector/picker.js +++ b/src/view/frontend/web/js/inspector/picker.js @@ -136,7 +136,6 @@ export const pickerMethods = { this.showHighlight(element); this.updatePanelData(element); this.showInfoBadge(element); - this.incrementFeatureViews(); }, this.hoverDelay); } else if (!element && this.hoveredElement) { // Only hide highlight when leaving element, keep badge visible diff --git a/src/view/frontend/web/js/inspector/tabs.js b/src/view/frontend/web/js/inspector/tabs.js index b9919544..c88167ea 100644 --- a/src/view/frontend/web/js/inspector/tabs.js +++ b/src/view/frontend/web/js/inspector/tabs.js @@ -37,15 +37,6 @@ export const tabsMethods = { textSpan.textContent = tab.label; button.appendChild(textSpan); - // Show "New" badge for Performance and Core Web Vitals if seen < 5 times - if (['performance', 'core-web-vitals'].includes(tab.id) && - (this.featureViews[tab.id] || 0) < this.MAX_NEW_BADGE_VIEWS) { - const badge = document.createElement('span'); - badge.className = 'mageforge-badge-new'; - badge.textContent = 'NEW'; - button.appendChild(badge); - } - button.onclick = (e) => { e.preventDefault(); e.stopPropagation();