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: extract components package #478

Merged
merged 6 commits into from
Jan 7, 2025

Conversation

frontendphil
Copy link
Member

Part of #469

Creates a new shared @zodiac/ui package with reusable components. Since everything is currently bundled, we don't have to worry about an extra build step. Should this package be used outside of this repo at some point, we'll need to add it. However, we can cross this bridge once we get there.

Copy link

vercel bot commented Jan 7, 2025

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

Name Status Preview Comments Updated (UTC)
zodiac-pilot-example-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 7:43pm

@frontendphil frontendphil force-pushed the chore/extract-components-package branch from 6a0ae9e to 34cf383 Compare January 7, 2025 19:34
Copy link

cloudflare-workers-and-pages bot commented Jan 7, 2025

Deploying zodiac-pilot with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2ab2814
Status: ✅  Deploy successful!
Preview URL: https://5bc659b3.zodiac-pilot-29m.pages.dev
Branch Preview URL: https://chore-extract-components-pac.zodiac-pilot-29m.pages.dev

View logs

Copy link

cloudflare-workers-and-pages bot commented Jan 7, 2025

Deploying zodiac-pilot-connect with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2ab2814
Status: ✅  Deploy successful!
Preview URL: https://cff88924.zodiac-pilot.pages.dev
Branch Preview URL: https://chore-extract-components-pac.zodiac-pilot.pages.dev

View logs

Copy link

github-actions bot commented Jan 7, 2025

Coverage Report for deployables/extension

Status Category Percentage Covered / Total
🔵 Lines 62.83% 4867 / 7746
🔵 Statements 62.83% 4867 / 7746
🔵 Functions 69.62% 275 / 395
🔵 Branches 79.74% 740 / 928
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
deployables/extension/src/inject/bridge/useBridgeError.ts 84.61% 57.14% 100% 84.61% 23-24, 28-29, 34-35
deployables/extension/src/panel/pages/ClearTransactionsModal.tsx 100% 100% 100% 100%
deployables/extension/src/panel/pages/$activeRouteId/transactions/DecodedTransaction.tsx 8.69% 100% 0% 8.69% 11-34
deployables/extension/src/panel/pages/$activeRouteId/transactions/RawTransaction.tsx 100% 50% 100% 100%
deployables/extension/src/panel/pages/$activeRouteId/transactions/Remove.tsx 35.48% 50% 50% 35.48% 18-19, 22-47
deployables/extension/src/panel/pages/$activeRouteId/transactions/RolePermissionCheck.tsx 19.51% 100% 0% 19.51% 26-80, 88-162
deployables/extension/src/panel/pages/$activeRouteId/transactions/SimulationStatus.tsx 62.5% 25% 100% 62.5% 26, 31, 48-50, 53-55, 59-61, 65-75
deployables/extension/src/panel/pages/$activeRouteId/transactions/Submit.tsx 17.24% 66.66% 25% 17.24% 40-144, 157-163, 171-176, 189-215
deployables/extension/src/panel/pages/$activeRouteId/transactions/Transaction.tsx 90.17% 50% 83.33% 90.17% 55-57, 104, 109-111, 120, 152-156
deployables/extension/src/panel/pages/$activeRouteId/transactions/Transactions.tsx 72.27% 88.88% 66.66% 72.27% 39-55, 129-146
deployables/extension/src/panel/pages/$activeRouteId/transactions/Translate.tsx 42.1% 33.33% 100% 42.1% 16-17, 23-33
deployables/extension/src/panel/pages/$activeRouteId/transactions/ContractAddress/index.tsx 100% 100% 100% 100%
deployables/extension/src/panel/pages/$activeRouteId/transactions/RouteBubble/index.tsx 91.54% 50% 50% 91.54% 87-89, 92-94
deployables/extension/src/panel/pages/ConnectionStack/Address.tsx 100% 75% 100% 100%
deployables/extension/src/panel/pages/_index/NoRoutes.tsx 100% 100% 100% 100%
deployables/extension/src/panel/pages/routes/edit.$routeId/AvatarInput.tsx 97.56% 92.3% 100% 97.56% 54, 57
deployables/extension/src/panel/pages/routes/edit.$routeId/ChainSelect.tsx 100% 83.33% 100% 100%
deployables/extension/src/panel/pages/routes/edit.$routeId/EditRoute.tsx 86.01% 84% 66.66% 86.01% 117-118, 132-133, 293-294, 296-300, 355-361, 365-374, 392-399, 409, 413-421, 435-437
deployables/extension/src/panel/pages/routes/edit.$routeId/ModSelect.tsx 94.28% 75% 75% 94.28% 25-27
deployables/extension/src/panel/pages/routes/edit.$routeId/RemoveButton.tsx 100% 100% 75% 100%
deployables/extension/src/panel/pages/routes/edit.$routeId/wallet/Account.tsx 100% 50% 100% 100%
deployables/extension/src/panel/pages/routes/edit.$routeId/wallet/Connected.tsx 100% 100% 100% 100%
deployables/extension/src/panel/pages/routes/edit.$routeId/wallet/SwitchChain.tsx 100% 50% 100% 100%
deployables/extension/src/panel/pages/routes/edit.$routeId/wallet/WalletDisconnected.tsx 8.33% 100% 0% 8.33% 12-42
deployables/extension/src/panel/pages/routes/edit.$routeId/wallet/WrongAccount.tsx 22.22% 100% 0% 22.22% 10-20
deployables/extension/src/panel/pages/routes/edit.$routeId/wallet/injectedWallet/InjectedWalletConnect.tsx 87.5% 50% 100% 87.5% 19-20, 35, 45
deployables/extension/src/panel/pages/routes/edit.$routeId/wallet/walletConnect/WalletConnect.tsx 4% 100% 0% 4% 21-81
deployables/extension/src/panel/pages/routes/edit.$routeId/wallet/walletConnect/WalletConnectConnect.tsx 55.55% 100% 50% 55.55% 26-40
deployables/extension/src/panel/pages/routes/list/ListRoutes.tsx 100% 100% 100% 100%
deployables/extension/src/panel/pages/routes/list/Route.tsx 97.05% 81.81% 66.66% 97.05% 49, 59
deployables/extension/src/panel/providers/injected-provider/useConnect.ts 76% 70% 100% 76% 56-60, 81-95, 105
deployables/extension/src/panel/providers/injected-provider/useConnectProvider.tsx 48.76% 100% 57.14% 48.76% 52-54, 75-79, 91-97, 104-168
Generated in workflow #443 for commit 2ab2814 by the Vitest Coverage Report Action

Copy link

github-actions bot commented Jan 7, 2025

Coverage Report for packages/ui

Status Category Percentage Covered / Total
🔵 Lines 15.36% 128 / 833
🔵 Statements 15.36% 128 / 833
🔵 Functions 16.66% 9 / 54
🔵 Branches 22.44% 11 / 49
File CoverageNo changed files found.
Generated in workflow #443 for commit 2ab2814 by the Vitest Coverage Report Action

@frontendphil frontendphil merged commit 94d8bdb into main Jan 7, 2025
14 checks passed
@frontendphil frontendphil deleted the chore/extract-components-package branch January 7, 2025 19:45
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant