Skip to content

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

Merged
Smartdevs17 merged 6 commits into
Smartdevs17:mainfrom
sheyman546:feature/network-detection-switching
Jun 30, 2026
Merged

feat: add network detection and switching (#69)#641
Smartdevs17 merged 6 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

@Smartdevs17

Copy link
Copy Markdown
Owner

⚠️ Merge failed — could not merge.

Possible reasons:

  • CI checks not passing
  • Branch protection rules
  • Other merge requirements not met

🤖 Drips Wave Merge Agent

@gitguardian

gitguardian Bot commented Jun 30, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

Since your pull request originates from a forked repository, GitGuardian is not able to associate the secrets uncovered with secret incidents on your GitGuardian dashboard.
Skipping this check run and merging your pull request will create secret incidents on your GitGuardian dashboard.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
34266369 Triggered Generic Password f86b340 backend/config/tests/redis.test.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@Smartdevs17 Smartdevs17 merged commit 922ce09 into Smartdevs17:main Jun 30, 2026
3 of 33 checks passed
@sheyman546

Copy link
Copy Markdown
Contributor Author

boss can i be awarded please

@Smartdevs17

Copy link
Copy Markdown
Owner

boss can i be awarded please

Go and check the drips guidelines for reward. Thank you for contributing to the project. Do well to leave a review 🙏

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

2 participants