fix(#586): gate advanced features behind advancedMode toggle - #644
Merged
Jaydbrown merged 2 commits intoOct 1, 2026
Merged
Conversation
… toggle - hooks/useSettings: expose advancedMode (default false) + same-tab notifySettingsUpdated() so mounted components re-read on toggle - settings page: notify subscribers on save; document what the toggle reveals - StreamCard: show raw stroops/s rate in advanced mode - stream detail: raw stroop amounts inline + Advanced details card with stream/token/factory contract addresses and raw unix timestamps - compare page: raw stroop rate + token contract rows in advanced mode - navbar: Compare link only in advanced mode (route stays directly reachable)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Type of change
Related issue
Closes #586
Changes
File | Change -- | -- hooks/useSettings.ts | Exposes advancedMode (default false) in PublicSettings; adds SETTINGS_UPDATED_EVENT + notifySettingsUpdated() so mounted components re-read settings on same-tab writes app/settings/page.tsx | Dispatches notifySettingsUpdated() after persisting; adds helper text under the toggle explaining what Advanced Mode reveals components/stream/StreamCard.tsx | Shows raw stroops/s under the formatted rate when advanced mode is on app/stream/[id]/page.tsx | Raw stroop amounts inline (rate, deposited, withdrawn) + conditional "Advanced details" card with stream/token/factory contract addresses, raw stroops, and unix timestamps app/streams/compare/page.tsx | Conditional "Rate (stroops/s)" and "Token contract" rows in advanced mode components/Navbar.tsx | "Compare" nav link (desktop + mobile) rendered only in advanced mode; route itself stays directly reachableChecklist
npm run typecheck— no errorsnpm run lint— no warningsnpm test— all tests passnpm run build— production build succeedsalert())'use client'added only where genuinely neededCHANGELOG.mdupdated under[Unreleased]Screenshots
Notes for reviewers