Commit Graph

5 Commits

Author SHA1 Message Date
MehrdadAdabi
518650ccd5 feat(auth): Enhance login flow and user profile management
Refactor user information handling and improve the post-login experience.

*   **Login Flow & User Profile:**
    *   Introduced `UserInfoService` to centralize user data storage and retrieval from local storage, replacing direct `localStorage` access for user `person` data.
    *   Modified the `LoginPage` to use `userInfoService.updateUserInfo()` after successful OTP verification.
    *   Implemented immediate fetching of the full user profile (`fetchUserProfile`) after login to ensure up-to-date user details.
    *   Adjusted post-login navigation logic: users with a complete profile (indicated by `userInfo?.username`) are now directed to the campaigns page, while those with incomplete profiles are guided to the profile page for completion.

*   **UI/UX Improvements:**
    *   The `CustomRadio` component now displays its `value` as a fallback if no `label` is explicitly provided, improving usability for radio buttons.
    *   Adjusted styling for form field labels in `DynamicForm` to include a bottom margin, enhancing visual separation and readability.
2025-11-27 16:25:27 +03:30
MehrdadAdabi
43e2957c22 fix bugs 2025-11-26 19:12:57 +03:30
MehrdadAdabi
ce4c33d46d feat: Implement dashboard profile card and campaigns management
- Added ProfileCard component to display user profile information.
- Created DashboardLayout for consistent layout structure.
- Defined Campaign and related types for campaign management.
- Developed CampaignDetailPage for viewing individual campaign details.
- Implemented CampaignsPage for listing and filtering campaigns.
- Enhanced DashboardPage with user profile fetching and navigation.
- Built RegisterPage for user profile registration and updates.
- Added user service for fetching and updating user profiles.
- Established campaigns service for managing campaign data and interactions.
- Updated routing constants and router configuration for new pages.
2025-11-23 18:10:30 +03:30
MehrdadAdabi
d9d97da7da Add react-toastify for notifications and enhance OTP handling in LoginPage 2025-11-22 19:22:04 +03:30
MehrdadAdabi
38263c7a74 init 2025-11-22 16:42:06 +03:30