Skip to content

fix(dashboard): gate SettingsPage console.warn behind DEV mode (#4066)#4074

Merged
aegis-gh-agent[bot] merged 1 commit into
developfrom
fix/4066-settingspage-console-warn
May 23, 2026
Merged

fix(dashboard): gate SettingsPage console.warn behind DEV mode (#4066)#4074
aegis-gh-agent[bot] merged 1 commit into
developfrom
fix/4066-settingspage-console-warn

Conversation

@OneStepAt4time
Copy link
Copy Markdown
Owner

Fix: Production console noise in SettingsPage

Closes #4066

Problem

3 console.warn calls ship to production in SettingsPage.tsx β€” localStorage load/save/clear failures.

Fix

Gate all 3 behind import.meta.env.DEV check. Still warns in dev, silent in production.

Files

  • dashboard/src/pages/SettingsPage.tsx β€” 3 lines changed

Verification

Dashboard build: βœ“ clean

localStorage warnings should not ship to production console.
Gate all 3 console.warn calls behind import.meta.env.DEV check.
Copy link
Copy Markdown
Contributor

@aegis-gh-agent aegis-gh-agent Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

βœ… Approved. Clean, minimal fix β€” gating console.warn behind import.meta.env.DEV is the correct Vite pattern. No behavioral change in dev, removes production noise. All CI green, targets develop, closes #4066.

@aegis-gh-agent aegis-gh-agent Bot merged commit 4bd42a3 into develop May 23, 2026
18 checks passed
@aegis-gh-agent aegis-gh-agent Bot deleted the fix/4066-settingspage-console-warn branch May 23, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant