Open
Conversation
…to development
…ent with dynamic listings
❌ Deploy Preview for hotbed failed.
|
- Implemented `useLogin` hook for handling user login with loading and error states. - Created `PasswordReset` component for users to reset their passwords via phone number. - Developed `auth.service` to manage authentication logic, including a mock login function. - Added service index for easier imports.
- featuredListing page - redesign it with component based
…ore, and protected routing - Introduced reusable AuthLayout using React Router Outlet to avoid duplicated auth page layouts - Extracted reusable Input and Button UI components with consistent Tailwind styling - Implemented Loading and Error components with retry support for API requests - Integrated Axios-based login flow with proper loading and error handling - Added Zustand-based auth store to manage authentication state globally - Updated RoleProtectedRoute to use reactive auth store instead of static object - Preserved user data structure (id, name, role) for role-based access control - Implemented redirect back to previous page after successful login - Improved overall auth architecture to align with scalable, industry-standard practices
…brary - so we write login logic in suth.store.ts file and store login user in global state with zustand
…ation and reusable layout patterns
… new styles and font; change font import paths
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…e Input component - Added error prop support to Input component - Centralized error UI and styling inside Input - Implemented full client-side validation for register form - Validated required fields, phone number format, and password confirmation - Improved form maintainability and consistency
- Refactored useProperties hook to fetch properties from a new API endpoint and removed hardcoded demo data.
- updated the auth flow to store access/refresh tokens fetch the user profile after login and auto‑refresh the access token on 401s. - also added an auth bootstrap on app load and guarded protected routes until auth is ready.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.