Closed gaboesquivel closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bitlauncher | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Sep 5, 2024 5:59pm |
smartsale-faucet | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Sep 5, 2024 5:59pm |
This pull request implements improvements to the presale deposits user experience. The changes focus on updating the PresaleTransactionsCard component, modifying the database schema for presale deposits and transactions, and adjusting the presale deposit process.
Change | Details | Files |
---|---|---|
Refactored PresaleTransactionsCard component |
|
apps/webapp/components/routes/project/presale/presale-transactions-card.tsx |
Updated presale deposit database schema and operations |
|
apps/webapp/app/actions/save-deposit.ts packages/supabase/src/supa.schemas.ts packages/supabase/src/supa.types.ts packages/supabase/migrations/20240905143139_remote_schema.sql packages/supabase/migrations/20240905142501_remote_schema.sql |
Simplified chain configuration |
|
apps/webapp/components/layout/providers.tsx |
Enhanced presale deposit user interface |
|
apps/webapp/components/routes/project/presale/presale-deposit-card.tsx apps/webapp/components/routes/project/presale/presale-token-balance.tsx apps/webapp/app/(routes)/[lang]/[project]/presale/page.tsx |
[!WARNING]
Rate limit exceeded
@gaboesquivel has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 17 minutes and 23 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](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 5e2d31a6428c8ef0a4aa80ef39e61236c2a3bb42 and ae0d7b3446556c436de8584cf209b28c0ddc06c7.
The changes involve enhancements to type safety, validation logic, and data structure within the application. Key modifications include the addition of new types, restructuring of component props, and updates to database schemas. The adjustments aim to improve clarity, enforce stricter data integrity, and streamline the handling of presale deposits and transactions.
Files | Change Summary |
---|---|
apps/indexer/src/config.ts |
Enhanced type imports with Account type; refined validation logic for ISSUER_ADDRESS and PRESALE_ADDRESS ; explicit typing of issuerAccount as Account . |
apps/indexer/src/lib/issuer-client.ts |
Explicitly typed walletClient as WalletClient to improve type safety. |
apps/webapp/app/(routes)/[lang]/[project]/presale/page.tsx |
Modified props for PresaleDepositCard and PresaleTransactionsCard for improved readability and data handling; PresaleTransactionsCard now receives contributions directly. |
apps/webapp/app/actions/save-deposit.ts |
Updated input schema to include chain_type and chainId ; refined handling of transfer object for database insertion. |
apps/webapp/components/layout/providers.tsx |
Streamlined prodChains and modified devChains configuration for blockchain networks. |
apps/webapp/components/routes/project/presale/presale-deposit-card.tsx |
Added PresaleTokenBalance import; restructured availableChains computation; modified onSuccess callback to await savePresaleDepositIntent . |
apps/webapp/components/routes/project/presale/presale-token-balance.tsx |
Introduced PresaleTokenBalance component to display user token balance. |
apps/webapp/components/routes/project/presale/presale-transactions-card.tsx |
Changed props to accept contributions array; updated state management and rendering logic for contributions. |
packages/alchemy/webhooks/activity-test.ts |
Updated webhook URL for address activity notifications. |
packages/supabase/migrations/20240905142501_remote_schema.sql |
Dropped primary key constraint and id column from presale_deposit table, indicating a restructuring of the table. |
packages/supabase/migrations/20240905143139_remote_schema.sql |
Enforced non-null constraints on several columns in the transaction table; created a unique index on deposit_hash and established a primary key for presale_deposit . |
packages/supabase/src/supa.schemas.ts |
Removed id from several schemas; updated relationship and transaction schemas to enforce stricter validation rules. |
packages/supabase/src/supa.types.ts |
Removed optional properties from Database type; enforced stricter type requirements for transaction-related fields. |
sequenceDiagram
participant User
participant PresaleDepositCard
participant PresaleTransactionsCard
participant Database
User->>PresaleDepositCard: Initiate deposit
PresaleDepositCard->>Database: Save deposit intent
Database-->>PresaleDepositCard: Confirm deposit saved
PresaleDepositCard->>User: Show deposit success
User->>PresaleTransactionsCard: View contributions
PresaleTransactionsCard->>Database: Fetch contributions
Database-->>PresaleTransactionsCard: Return contributions
PresaleTransactionsCard->>User: Display contributions
π° In the garden, changes bloom bright,
New types and schemas bring delight!
With deposits and tokens in view,
Our paths are clearer, our goals anew.
Hopping along, we cheer with glee,
For a better world, just wait and see! πΌ
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?
Summary by Sourcery
Enhance the presale deposit user experience by adding a new component to display token balances, refactoring the presale transactions card to accept contributions as a parameter, and updating the deposit intent function to handle additional transaction data. Simplify chain configurations and clean up code by removing unused elements.
New Features:
PresaleTokenBalance
to display the user's token balance in the presale section.Enhancements:
PresaleTransactionsCard
to use contributions passed as a parameter instead of fetching them internally.savePresaleDepositIntent
function to include additional fieldschain_type
andchainId
in the transaction data.prodChains
anddevChains
.Chores:
Summary by CodeRabbit
PresaleDepositCard
to include additional context in deposit operations.PresaleTransactionsCard
for better data management.presale_deposit
table for better data integrity and uniqueness.