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 4, 2024 7:44pm |
smartsale-faucet | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 4, 2024 7:44pm |
This pull request implements a new registration and login flow for the webapp. The changes primarily focus on simplifying the login process, removing the separate registration flow, and updating the UI to reflect these changes. The implementation also includes improvements to the QR code generation for login and updates to the session management hooks.
Change | Details | Files |
---|---|---|
Simplified login and registration process |
|
apps/webapp/components/dialogs/session/login-dialog-content.tsx apps/webapp/components/dialogs/session/session-dialog.tsx |
Updated QR code generation for login |
|
apps/webapp/hooks/use-session.tsx |
Updated UI components to reflect new login/register flow |
|
apps/webapp/components/dialogs/session/session-button.tsx |
Refactored referral handling |
|
apps/webapp/hooks/use-referral.ts |
The changes involve significant updates to the session management components within the web application. The SessionDialogContent
now focuses on both login and registration, simplifying the interface by removing unnecessary props. The dialog's title and description have been refined for clarity, and the referral logic has been enhanced for configurability based on the application environment. Additionally, the login URI construction and styling configurations have been improved.
Files | Change Summary |
---|---|
apps/webapp/components/dialogs/session/login-dialog-content.tsx |
Removed updateDialogContent prop, updated dialog title and description for clarity, replaced button with a link to a blog post about KYC. |
apps/webapp/components/dialogs/session/session-button.tsx |
Updated button label from "Login" to "Login / Register" and removed unnecessary routing logic. |
apps/webapp/hooks/use-referral.ts |
Introduced DEFAULT_URI and DEFAULT_REFERRER , updated state initialization and session storage logic for improved configurability. |
apps/webapp/hooks/use-session.tsx |
Modified login URI construction by removing 'esr://' prefix from encoded string and added console log for debugging. |
apps/webapp/hooks/use-signing-request.ts |
Changed URL parameter name from esr_code to esr in redirect logic. |
apps/webapp/tailwind.config.js |
Updated accent color from a variable reference to a hardcoded color value. |
sequenceDiagram
participant User
participant SessionDialog
participant SessionDialogContent
participant useSession
User->>SessionDialog: Open dialog
SessionDialog->>SessionDialogContent: Render login content
SessionDialogContent->>useSession: Get login URI
useSession-->>SessionDialogContent: Return login URI
SessionDialogContent->>User: Display QR code and instructions
🐰 In the meadow, I hop with glee,
New changes sprout like flowers, you see!
Login and register, all in one place,
With a QR code, join the race!
A link to learn, oh what a treat,
Hoppity hop, our journey's complete! 🌼
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?
@gaboesquivel -- I made some changes on the loginUri for both desktop and mobile. I made sure to use the search parameter esr
on both scenarios and I improved the environments for this URI to test. The app should receive them with no issues. If an issue is found, @AnoukRImola and the rest of the team can report to us.
cc - @merivercap
Summary by Sourcery
Implement a new registration and login flow for the web app using Bitcash, combining both processes into a single interface. Simplify session dialog management by removing state handling for dialog content and update the session button to support the new flow.
New Features:
Enhancements:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation