Closed gaboesquivel closed 3 weeks 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 | Aug 27, 2024 4:28pm |
smartsale-faucet | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Aug 27, 2024 4:28pm |
This pull request implements a registration flow and presale deposit checks. It includes significant changes to the session management, user authentication, and UI components related to user registration and login. The changes also involve updates to the project structure and the addition of new hooks for managing referrals.
Change | Details | Files |
---|---|---|
Refactored session management and authentication flow |
|
apps/webapp/hooks/use-session.tsx apps/webapp/components/dialogs/session/register-dialog-content.tsx apps/webapp/components/dialogs/session/session-dialog.tsx apps/webapp/components/dialogs/session/login-dialog-content.tsx apps/webapp/hooks/use-referral.ts |
Updated presale deposit checks and validation |
|
apps/indexer/src/lib/supabase-client.ts apps/indexer/src/api/alchemy.ts |
Restructured and optimized home page components |
|
apps/webapp/app/(routes)/[lang]/page.tsx apps/webapp/components/routes/home/section/steps-section.tsx apps/webapp/components/routes/home/section/learn-section.tsx apps/webapp/components/routes/home/section/recent-articles.tsx apps/webapp/components/routes/home/section/short-video-section.tsx |
Updated UI components and layout structure |
|
apps/webapp/components/dialogs/session/session-button.tsx apps/webapp/components/layout/header/index.tsx apps/webapp/app/(routes)/[lang]/layout.tsx |
The recent changes encompass the introduction of new functions and modifications to existing components across various files. Key updates include the addition of the getPresaleDeposits
function for enhanced presale validation, restructuring of import paths for several components, and adjustments to session management logic. Overall, the changes reflect a comprehensive reorganization of the codebase, improving functionality and clarity.
Files | Change Summary |
---|---|
apps/indexer/src/api/alchemy.ts |
Added getPresaleDeposits function for presale validation; updated control flow for deposit validation logic. |
apps/indexer/src/lib/supabase-client.ts |
Introduced getPresaleDeposits function to retrieve presale deposits; updated error handling in getPresaleData . |
apps/webapp/app/(routes)/[lang]/blog/[category]/[slug]/page.tsx |
Modified import path for generateShortLink function to reflect new structure. |
apps/webapp/app/(routes)/[lang]/layout.tsx |
Updated import path for SessionDialog component in generateStaticParams . |
apps/webapp/app/(routes)/[lang]/learn/security/page.tsx |
Changed import paths for LearnSection and StepsSection components. |
apps/webapp/app/(routes)/[lang]/page.tsx |
Implemented dynamic imports for several components, enhancing loading performance. |
apps/webapp/components/dialogs/session/login-dialog-content.tsx |
Updated import path for BitcashAccessContentType . |
apps/webapp/components/dialogs/session/register-dialog-content.tsx |
Removed unused imports and restructured session management logic. |
apps/webapp/components/dialogs/session/session-button.tsx |
Removed import for appConfig , indicating it's no longer used. |
apps/webapp/components/dialogs/session/session-dialog.tsx |
Altered import paths for SessionDialogContent and RegisterDialogContent . |
apps/webapp/components/dialogs/session/session-dialog.type.ts |
Introduced a new type definition for BitcashAccessContentType . |
apps/webapp/components/layout/footer/newsletter.tsx |
Updated import path for subscribeToNewsletter function. |
apps/webapp/components/layout/header/index.tsx |
Changed import paths for SessionButtonLoader and DynamicSessionButton components. |
apps/webapp/components/routes/about/about-bitlauncher/index.tsx |
Modified import paths for LearnSection and StepsSection . |
apps/webapp/components/routes/home/section/learn-section.tsx |
Updated import path for the Section component. |
apps/webapp/components/routes/home/section/recent-articles.tsx |
Removed unused imports and streamlined code structure. |
apps/webapp/components/routes/home/section/short-video-section.tsx |
Changed import path for the Card component. |
apps/webapp/components/routes/home/section/steps-section.tsx |
Replaced BitcashAccessButton with SessionButton . |
apps/webapp/components/routes/project/copy-shorlink.tsx |
Updated import path for generateShortLink function. |
apps/webapp/components/routes/project/register-address-form.tsx |
Changed import path for registerAddress function. |
apps/webapp/hooks/use-referral.ts |
Introduced useReferral custom hook for managing referral parameters. |
apps/webapp/hooks/use-session.tsx |
Restructured imports and enhanced session management logic within the useSession hook and SessionProvider . |
sequenceDiagram
participant User
participant AlchemyWebhook
participant SupabaseClient
User->>AlchemyWebhook: Initiates presale transaction
AlchemyWebhook->>SupabaseClient: Call getPresaleDeposits
SupabaseClient-->>AlchemyWebhook: Return total deposits
AlchemyWebhook->>AlchemyWebhook: Validate transaction amount
AlchemyWebhook-->>User: Transaction result
π "In the code, a hop and a skip,
A new function joins the trip.
Paths have changed, so clear the way,
For smoother flows in bright array!
With deposits checked, we leap and bound,
In a world of code, joy is found!" πβ¨
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
Implement registration flow enhancements and presale deposit checks. Refactor session management and dynamic imports for better code organization. Introduce a new hook for handling referral URLs and improve presale deposit validation logic.
New Features:
useReferral
to manage referral URLs and store referrer information in session storage.getPresaleDeposits
to retrieve presale deposit data for a specific address and project.Enhancements:
useSessionFn
to improve state handling and session initialization.Chores:
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores