Skip to main content

Demand Routes

🎯 Overview​

Each demand route follows: URL β†’ Validators β†’ Handler β†’ State Update


πŸ” Authentication Routes​

Login​

🌐 URL: /login
πŸ“„ Current Page: login

πŸ”§ Handler: handleAuthLoginRoute

  • Captures intended URL from query parameters
  • Sets up login form state
  • Handles post-login redirects

βœ… Validators: isUserNotLoggedIn

  • Redirects already authenticated users away from login

Logout​

🌐 URL: /logout
πŸ“„ Current Page: logout

πŸ”§ Handler: handleAuthLogoutRoute

  • Clears user session and authentication data
  • Invalidates auth tokens
  • Redirects to login page

βœ… Validators: None


Sign Up​

🌐 URL: /sign-up
πŸ“„ Current Page: sign_up

πŸ”§ Handler: handleAuthSignUpRoute

  • Provides user registration form
  • Sets up new account creation
  • Handles initial user data collection

βœ… Validators: scrollTo (scroll to top)


Sign Up Wizard​

🌐 URL: /sign-up-wizard/:page
πŸ“„ Current Page: sign_up_wizard

πŸ”§ Handler: handleSignUpWizardRoute

  • Multi-step onboarding process
  • Loads categories and attributes for profile setup
  • Handles wizard page navigation and completion

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data
  • isEmailNotVerifiedRedirect - Redirects if email not verified
  • clearFilters - Resets any existing filters

Verify Email Success​

🌐 URL: /verify-email-success/:verifyEmailToken
πŸ“„ Current Page: verify_email_success

πŸ”§ Handler: handleVerifyEmailSuccessRoute

  • Processes email verification tokens
  • Confirms user email address
  • Updates email verification status

βœ… Validators: None (public route)


🏠 Dashboard Routes​

Home Dashboard​

🌐 URL: /home
πŸ“„ Current Page: home

πŸ”§ Handler: handleHomeRoute

  • Loads dashboard overview data
  • Fetches recent positions, categories, and attributes
  • Displays job seeker dashboard with opportunities

βœ… Validators: isUserNotLoggedIn

  • Ensures only authenticated users access dashboard

My Page​

🌐 URL: /mypage
πŸ“„ Current Page: my_page

πŸ”§ Handler: handleMyPageRoute

  • Personal dashboard for job seekers
  • Shows user-specific content and recommendations
  • Displays personalized job matches

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data
  • isEmailNotVerifiedRedirect - Redirects if email not verified
  • isSignUpWizardNotCompletedRedirect - Redirects if profile incomplete

πŸ’Ό Job/Position Routes​

Positions List​

🌐 URL: /positions
πŸ“„ Current Page: positions_list

πŸ”§ Handler: handleProductsListRoute

  • Fetches paginated list of all job positions
  • Displays available opportunities
  • Loads position pagination data

βœ… Validators: scrollTo (scroll to top)


Positions Filter​

🌐 URL: /positions/filter
πŸ“„ Current Page: positions_filter

πŸ”§ Handler: handleProductsFilterRoute

  • Advanced filtering interface for positions
  • Supports filtering by categories, skills, location
  • Loads filtered results with pagination

βœ… Validators: scrollTo (scroll to top)


Position Details​

🌐 URL: /positions/:productId
πŸ“„ Current Page: position_show

πŸ”§ Handler: handleProductsDetailsRoute

  • Shows detailed view of specific job position
  • Displays job requirements, description, company info
  • Enables application submission

βœ… Validators: scrollTo (scroll to top)


🏒 Organization Routes​

Organization Details​

🌐 URL: /organization/:orgId
πŸ“„ Current Page: organization_show

πŸ”§ Handler: handleSingleOrganizationRoute

  • Shows detailed organization profile
  • Displays company information and culture
  • Lists organization's available positions

βœ… Validators: scrollTo (scroll to top)


Organization Positions​

🌐 URL: /organization/:orgId/positions
πŸ“„ Current Page: organization_products_list

πŸ”§ Handler: handleOrganizationPositionsRoute

  • Lists all positions from specific organization
  • Filters positions by company
  • Shows company-specific job opportunities

βœ… Validators: scrollTo (scroll to top)


πŸ“‹ Application Routes​

Applications List​

🌐 URL: /job-applications
πŸ“„ Current Page: orders

πŸ”§ Handler: handleOrderListRoute

  • Shows user's job application history
  • Tracks application status and progress
  • Displays application timeline and updates

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data
  • isEmailNotVerifiedRedirect - Redirects if email not verified
  • isSignUpWizardNotCompletedRedirect - Redirects if profile incomplete

πŸ‘€ Profile Routes​

User Profile​

🌐 URL: /profile
πŸ“„ Current Page: user_update

πŸ”§ Handler: handleUserUpdateRoute

  • User profile editing interface
  • Updates personal information and skills
  • Manages professional profile data

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

πŸ’¬ Messaging Routes​

Topics List​

🌐 URL: /messages/topics
πŸ“„ Current Page: topics_list

πŸ”§ Handler: handleTopicsRoute

  • Lists all conversation topics/threads
  • Shows messaging overview
  • Displays unread message counts

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

Topic Messages​

🌐 URL: /messages/topics/:topicId
πŸ“„ Current Page: messages_list

πŸ”§ Handler: handleTopicMessagesRoute

  • Shows messages within specific topic/thread
  • Enables real-time messaging
  • Displays conversation history

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

βš™οΈ Settings Routes​

Main Settings​

🌐 URL: /settings
πŸ“„ Current Page: user_settings

πŸ”§ Handler: handleSettingsRoute

  • User account settings and preferences
  • Profile management interface
  • Privacy and notification controls

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

Change Email​

🌐 URL: /settings/change-email
πŸ“„ Current Page: change_email_settings

πŸ”§ Handler: handleSettingsChangeEmailRoute

  • Email address update form
  • Initiates email verification process
  • Handles email change workflow

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

Change Password​

🌐 URL: /settings/change-password
πŸ“„ Current Page: change_password_settings

πŸ”§ Handler: handleSettingsChangePasswordRoute

  • Secure password update interface
  • Validates current password
  • Implements password security requirements

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

Deactivate Account​

🌐 URL: /settings/deactivate-account
πŸ“„ Current Page: deactivate_account

πŸ”§ Handler: handleSettingsDeactivateAccountRoute

  • Account deactivation form
  • Provides account closure options
  • Handles data retention preferences

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

Deactivate Account Success​

🌐 URL: /settings/deactivate-account-success
πŸ“„ Current Page: deactivate_account_success

πŸ”§ Handler: handleSettingsDeactivateAccountSuccessRoute

  • Confirmation page for account deactivation
  • Provides final account closure confirmation
  • Shows next steps after deactivation

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

Verify Email Change Success​

🌐 URL: /settings/verify-change-email-success/:verifyChangeEmailToken
πŸ“„ Current Page: verify_change_email_success

πŸ”§ Handler: handleSettingsVerifyChangeEmailSuccessRoute

  • Confirms email address change
  • Processes email verification tokens
  • Updates user email verification status

βœ… Validators:

  • isUserLoggedIn - Validates authentication
  • updateLoggedInUser - Refreshes current user data

πŸ”‘ Password Reset Routes​

Request Password Reset​

🌐 URL: /reset-password-request
πŸ“„ Current Page: reset_password_request

πŸ”§ Handler: handleResetPasswordRequestRoute

  • Password reset request form
  • Initiates password recovery email
  • Validates user account existence

βœ… Validators: None (public route)


Submit New Password​

🌐 URL: /reset-password-submit/:resetPasswordToken
πŸ“„ Current Page: reset_password_submit

πŸ”§ Handler: handleResetPasswordSubmitRoute

  • New password submission form
  • Validates reset tokens from URL
  • Processes password reset completion

βœ… Validators: scrollTo (scroll to top)


Password Reset Success​

🌐 URL: /reset-password-success
πŸ“„ Current Page: reset_password_success

πŸ”§ Handler: handleResetPasswordSuccessRoute

  • Password reset confirmation page
  • Provides login redirect options
  • Clears reset session data

βœ… Validators: scrollTo (scroll to top)


πŸ”§ Validator Functions Reference​

ValidatorPurpose
isUserLoggedInβœ… Validates authentication, redirects to login if needed
isUserNotLoggedInβ†ͺ️ Redirects authenticated users from login/signup pages
updateLoggedInUserπŸ”„ Refreshes current user data from API
isEmailNotVerifiedRedirectπŸ“§ Redirects users with unverified emails
isSignUpWizardNotCompletedRedirectπŸ§™β€β™‚οΈ Redirects users with incomplete profiles
clearFilters🧹 Resets search and filter states
scrollTo⬆️ Scrolls page to top on route navigation

🎨 Route Flow Pattern​

🌐 URL Request β†’ βœ… Validators β†’ πŸ”§ Handler β†’ πŸ“Š State Update β†’ 🎯 Page Render

Demand routes are optimized for job seekers with additional profile completion checks and email verification requirements.