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

Connected chains list #450

Merged
merged 7 commits into from
Aug 30, 2024
Merged

Connected chains list #450

merged 7 commits into from
Aug 30, 2024

Conversation

fadeev
Copy link
Member

@fadeev fadeev commented Aug 26, 2024

  • Connected chains list
  • add docs

Summary by CodeRabbit

  • New Features

    • Introduced a new component that displays a list of blockchain networks and associated tokens, enhancing user access to blockchain information.
    • Added a network type tab interface for seamless switching between mainnet and testnet views.
    • Enhanced documentation with a structured view of connected chains.
  • Improvements

    • Updated metadata to include a new category for connected chains, improving data organization.
  • Exports

    • Made the new component available for import across the application, increasing reusability.

@fadeev fadeev requested review from bbbeeeee, brewmaster012 and a team as code owners August 26, 2024 04:49
Copy link

vercel bot commented Aug 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 3:00am

Copy link
Contributor

coderabbitai bot commented Aug 26, 2024

Warning

Rate limit exceeded

@fadeev has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 10 minutes and 15 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 1758e53 and ed7d9bc.

Walkthrough

Walkthrough

The changes introduce a new React component, ConnectedChainsList, designed to display a list of blockchain networks and their associated tokens. This component fetches data from API endpoints based on the selected network type and manages state for both mainnet and testnet chains. Additionally, the _meta.json file is updated to include a new section for connected chains, and the component is integrated into the documentation structure.

Changes

File Change Summary
src/components/Docs/components/ConnectedChainsList.tsx Introduced a new component that fetches and displays blockchain networks and tokens, managing state for mainnet/testnet and including a loading state. Export modified to default.
src/components/Docs/index.ts Added ConnectedChainsList to the export statements, enhancing the module's functionality for external imports.
src/pages/developers/chains/_meta.json Introduced a new JSON structure under the "list" key with a title for connected chains, improving metadata organization.
src/pages/developers/chains/list.mdx Created a new file that imports and renders the ConnectedChainsList component, enhancing documentation for connected blockchain networks.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d303316 and 19c1801.

Files selected for processing (4)
  • src/components/Docs/components/ConnectedChainsList.tsx (1 hunks)
  • src/components/Docs/index.ts (1 hunks)
  • src/pages/developers/chains/_meta.json (1 hunks)
  • src/pages/developers/chains/list.mdx (1 hunks)
Files skipped from review due to trivial changes (1)
  • src/components/Docs/index.ts
Additional comments not posted (7)
src/pages/developers/chains/list.mdx (1)

1-3: LGTM!

The code correctly imports and uses the ConnectedChainsList component.

The code changes are approved.

src/pages/developers/chains/_meta.json (1)

2-5: LGTM!

The code correctly adds a new section for connected chains with a title and an empty description.

The code changes are approved.

src/components/Docs/components/ConnectedChainsList.tsx (5)

1-32: LGTM!

The imports and type definitions are correctly implemented.

The code changes are approved.


34-44: LGTM!

The constants and utility function are correctly implemented.

The code changes are approved.


90-99: LGTM!

The memoization and token retrieval function are correctly implemented.

The code changes are approved.


101-112: LGTM!

The documentation link retrieval function is correctly implemented.

The code changes are approved.


114-187: LGTM!

The component rendering is correctly implemented.

The code changes are approved.

src/components/Docs/components/ConnectedChainsList.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 19c1801 and 24f998a.

Files selected for processing (2)
  • src/components/Docs/components/ConnectedChainsList.tsx (1 hunks)
  • src/components/Docs/index.ts (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • src/components/Docs/components/ConnectedChainsList.tsx
  • src/components/Docs/index.ts

Copy link
Collaborator

@GMaiolo GMaiolo left a comment

Choose a reason for hiding this comment

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

Most of the data is empty for mainnet
image

src/components/Docs/components/ConnectedChainsList.tsx Outdated Show resolved Hide resolved
src/components/Docs/components/ConnectedChainsList.tsx Outdated Show resolved Hide resolved
@fadeev
Copy link
Member Author

fadeev commented Aug 29, 2024

Most of the data is empty for mainnet

Intentional, as the API being used is not yet on mainnet. This table will be populated with data with the next mainnet upgrade.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 24f998a and 7c4d452.

Files selected for processing (1)
  • src/components/Docs/components/ConnectedChainsList.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • src/components/Docs/components/ConnectedChainsList.tsx

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 7c4d452 and 1758e53.

Files selected for processing (1)
  • src/components/Docs/components/ConnectedChainsList.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • src/components/Docs/components/ConnectedChainsList.tsx

@fadeev fadeev merged commit 0efcf79 into main Aug 30, 2024
6 checks passed
@fadeev fadeev deleted the connected-chains-list branch August 30, 2024 03:38
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.

2 participants