Skip to content

Development#3

Open
noobconner21 wants to merge 36 commits intomainfrom
development
Open

Development#3
noobconner21 wants to merge 36 commits intomainfrom
development

Conversation

@noobconner21
Copy link
Copy Markdown
Collaborator

No description provided.

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 13, 2026

Deploy Preview for hotbed failed.

Name Link
🔨 Latest commit 58827fa
🔍 Latest deploy log https://app.netlify.com/projects/hotbed/deploys/696fab6a6db802000845acad

noobconner21 and others added 13 commits January 14, 2026 17:16
- 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
… new styles and font;

change font import paths
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
frontend Error Error Mar 13, 2026 7:11pm

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants