Closed Villarley closed 3 days ago
@Villarley is attempting to deploy a commit to the LFG Labs Team on Vercel.
A member of the Team first needs to authorize it.
The pull request introduces a new utility function, sortConnectors
, in the utils/connectors.ts
file, which sorts an array of connector objects based on their availability. The Navbar
component is modified to use this new function, replacing the original availableConnectors
with the sorted array, sortedConnectors
. Additionally, a test suite for sortConnectors
is added in tests/utils/connectors.test.js
to validate its functionality across various scenarios.
File | Change Summary |
---|---|
components/UI/navbar.tsx | Modified to use sortConnectors for sorting connectors before passing to useStarknetkitConnectModal . |
utils/connectors.ts | Added new function sortConnectors to sort connectors based on availability and predefined order. |
tests/utils/connectors.test.js | Introduced a test suite for sortConnectors with multiple test cases covering various sorting scenarios. |
Objective | Addressed | Explanation |
---|---|---|
Reorganized wallet pop-up to show uninstalled wallets last (#932) | ✅ |
app/provider.tsx
involve modifications to the availableConnectors
array, which is directly related to the sortConnectors
function's purpose of processing connectors in the main PR.[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.
🔧 eslint
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.components/UI/navbar.tsx
Oops! Something went wrong! :( ESLint: 9.14.0 ESLint couldn't find an eslint.config.(js|mjs|cjs) file. From ESLint v9.0.0, the default configuration file is now eslint.config.js. If you are using a .eslintrc.* file, please follow the migration guide to update your configuration file to the new format: https://eslint.org/docs/latest/use/configure/migration-guide If you still have problems after following the migration guide, please stop by https://eslint.org/chat/help to chat with the team.
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?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
starknet-quest | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 13, 2024 8:42am |
Added the function sortConnectors and applied logic to display available connectors first, followed by unavailable ones.
Pull Request type
Resolves: #932
Summary of Changes
Summary by CodeRabbit
New Features
Bug Fixes
Tests