-
Notifications
You must be signed in to change notification settings - Fork 536
[Dashboard] migrate authorized wallets components to shadcn #7127
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
[Dashboard] migrate authorized wallets components to shadcn #7127
Conversation
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe changes remove Chakra UI dependencies and usage from the account devices and authorized wallets components. Chakra UI modal and button components are replaced with custom dialog and button components, and modal state is now managed with React's useState instead of Chakra's useDisclosure. Styling and structure are updated to match the new UI library. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AccountDevicesPage
participant AuthorizedWalletsTable
participant AuthorizedWalletRevokeModal
User->>AccountDevicesPage: Navigates to Account Devices
AccountDevicesPage->>AuthorizedWalletsTable: Render table of authorized wallets
User->>AuthorizedWalletsTable: Clicks "Revoke Access"
AuthorizedWalletsTable->>AuthorizedWalletRevokeModal: Open modal (via useState)
User->>AuthorizedWalletRevokeModal: Confirms revoke
AuthorizedWalletRevokeModal->>AuthorizedWalletsTable: Calls onRevoke handler
AuthorizedWalletsTable->>AuthorizedWalletsTable: Updates wallet list
AuthorizedWalletRevokeModal->>AuthorizedWalletRevokeModal: Closes modal (via onOpenChange)
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 30th. To opt out, configure 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code Graph Analysis (1)apps/dashboard/src/components/settings/AuthorizedWallets/AuthorizedWalletRevokeModal.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (13)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7127 +/- ##
=======================================
Coverage 55.58% 55.58%
=======================================
Files 902 902
Lines 58162 58162
Branches 4086 4086
=======================================
Hits 32329 32329
Misses 25731 25731
Partials 102 102
🚀 New features to boost your workflow:
|
size-limit report 📦
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Summary
Testing
pnpm biome check --apply apps/dashboard/src/components/settings/AuthorizedWallets/AuthorizedWalletRevokeModal.tsx apps/dashboard/src/components/settings/AuthorizedWallets/AuthorizedWalletsTable.tsx "apps/dashboard/src/app/(app)/account/devices/AccountDevicesPage.tsx"
pnpm test
(fails: spawn anvil ENOENT)PR-Codex overview
This PR focuses on refactoring the
AccountDevicesPage
and theAuthorizedWalletRevokeModal
components by removing theChakraProviderSetup
dependency and replacingModal
components from@chakra-ui/react
withDialog
components from a custom UI library.Detailed summary
ChakraProviderSetup
fromAccountDevicesPage
.AuthorizedWalletsTable
inAccountDevicesPage
.Modal
components withDialog
components inAuthorizedWalletRevokeModal
.AuthorizedWalletRevokeModal
.AuthorizedWalletsTable
.Text
component withspan
for displaying wallet addresses and dates inAuthorizedWalletsTable
.AuthorizedWalletsTable
.Summary by CodeRabbit
Refactor
Style