Skip to content

feat(keychain): add advanced mode toggle to hide network details#2536

Open
tarrencev wants to merge 3 commits into
mainfrom
advanced
Open

feat(keychain): add advanced mode toggle to hide network details#2536
tarrencev wants to merge 3 commits into
mainfrom
advanced

Conversation

@tarrencev
Copy link
Copy Markdown
Contributor

Summary

Introduces an "Advanced Mode" user preference in the keychain settings that controls visibility of network-specific UI details. When advanced mode is off (simplified mode), the following are hidden:

  • Explorer links on transactions, activity cards, token transfers, and collectible activity
  • Starknet icons and chain names on transaction confirmations
  • Network references in settings descriptions (recovery, delegate)
  • Contract explorer links in session authorization and error stack traces
  • Chain name references in deploy controller messages

Defaults to advanced (on) for now. Persistence via API will be added in a follow-up.

Key changes:

  • New AdvancedProvider context (context/advanced.tsx) with useAdvanced() hook
  • New ExplorerTransactionLink component (ExplorerLink.tsx) — shared wrapper that conditionally renders a <Link> or passthrough based on advanced mode
  • Settings toggle — Switch component in Settings under "Advanced Mode" section
  • 11 UI components updated to conditionally render network details

Test plan

  • All keychain tests pass (403 passed, 2 skipped)
  • TypeScript type-check passes
  • Lint and format checks pass

🤖 Generated with Claude Code

Introduces a user preference to toggle between simplified and advanced
UI modes. When advanced mode is off, explorer links, Starknet icons,
chain names, and network references are hidden throughout the keychain.
Defaults to advanced (on) for now.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
controller-example-next Ready Ready Preview Apr 2, 2026 11:50pm
keychain Ready Ready Preview Apr 2, 2026 11:50pm
keychain-storybook Ready Ready Preview Apr 2, 2026 11:50pm

Request Review

Hide ERC20Detail and CollectibleDetails components (contract address,
token standard, chain ID) when advanced mode is off.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Hide technical transaction details (contract, entrypoint, calldata),
controller addresses, registered account addresses, and error stack
traces when advanced mode is off.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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