Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tangle-dapp): Separate mainnet and testnet in bridge chain selection #2850

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

devpavan04
Copy link
Member

@devpavan04 devpavan04 commented Feb 26, 2025

Summary of changes

Proposed area of change

  • apps/tangle-dapp
  • apps/tangle-cloud
  • libs/tangle-shared-ui
  • libs/ui-components

Associated issue(s)

Screen Recording

CleanShot.2025-02-28.at.05.59.20.mp4

Copy link

netlify bot commented Feb 26, 2025

Deploy Preview for tangle-dapp ready!

Name Link
🔨 Latest commit 9aeef70
🔍 Latest deploy log https://app.netlify.com/sites/tangle-dapp/deploys/67c2405b64a36d0008fa99af
😎 Deploy Preview https://deploy-preview-2850--tangle-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@devpavan04 devpavan04 marked this pull request as draft February 26, 2025 23:31
Copy link

netlify bot commented Feb 26, 2025

Deploy Preview for tangle-cloud ready!

Name Link
🔨 Latest commit 9aeef70
🔍 Latest deploy log https://app.netlify.com/sites/tangle-cloud/deploys/67c2405c403b7c000830a9f7
😎 Deploy Preview https://deploy-preview-2850--tangle-cloud.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@devpavan04 devpavan04 marked this pull request as ready for review February 28, 2025 14:10
Comment on lines 96 to 109
const srcChains = useMemo(() => {
if (network.name === 'Tangle Mainnet') {
const mainnetChains = sourceChains.filter(
(chain) => chain.tag === 'live',
);
setSelectedSourceChain(mainnetChains[0]);
return mainnetChains;
}

const testnetChains = sourceChains.filter((chain) => chain.tag === 'test');
setSelectedSourceChain(testnetChains[0]);
return testnetChains;
}, [network.name, setSelectedSourceChain, sourceChains]);

Copy link
Member

Choose a reason for hiding this comment

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

Filter this during initialization or configuration, not within the component logic. Use useBridgeStore for filtering.

@devpavan04 devpavan04 marked this pull request as draft February 28, 2025 21:53
@devpavan04 devpavan04 marked this pull request as ready for review February 28, 2025 23:25
@devpavan04 devpavan04 requested a review from AtelyPham February 28, 2025 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK] Parse Out Mainnet / Testnet in Bridge
2 participants