Skip to content

feat: add network detection and switching (#69)#641

Open
sheyman546 wants to merge 5 commits into
Smartdevs17:mainfrom
sheyman546:feature/network-detection-switching
Open

feat: add network detection and switching (#69)#641
sheyman546 wants to merge 5 commits into
Smartdevs17:mainfrom
sheyman546:feature/network-detection-switching

Conversation

@sheyman546

@sheyman546 sheyman546 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements issue #69 — network detection and switching for SubTrackr.

Changes

  • src/hooks/useNetwork.tsuseNetwork hook wrapping useNetworkStore, auto-initializes on mount, exposes switchNetwork, checkHealth, refreshNetworks
  • src/components/common/NetworkSwitcher.tsx — UI component listing Stellar/EVM networks with tap-to-select, testnet badges, and accessibility roles
  • src/screens/NetworkSettingsScreen.tsx — screen showing active network, the switcher, and an on-demand health check
  • src/navigation/types.ts — added NetworkSettings route
  • src/navigation/AppNavigator.tsx — registered NetworkSettingsScreen in SettingsStack
  • src/screens/SettingsScreen.tsx — added Network Settings link

Tests

24 new tests across 2 suites, all passing:

  • src/hooks/__tests__/useNetwork.test.ts (11 tests)
  • src/services/__tests__/networkService.test.ts (13 tests)

What was tested

@sheyman546 sheyman546 force-pushed the feature/network-detection-switching branch from e26ed21 to 3042e94 Compare June 24, 2026 14:23
@sheyman546

Copy link
Copy Markdown
Contributor Author

please i have tried all i could please help me merge this issue the issue on the ci test is not what i an fix

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.

🔧 Fix getUpcomingSubscriptions performance

1 participant