Supply Routes
π― Overviewβ
Each supply route follows: URL β Validators β Handler β State Update
π Authentication Routesβ
Accept Invitationβ
π URL: /auth/accept-invitation/:invitationId/:token
π Current Page: accept_invitation
π§ Handler: handleAcceptInvitation
- Processes invitation tokens from URL parameters
- Validates invitation ID and token
- Accepts organization invitations for supplier accounts
β Validators: None (public route)
Loginβ
π URL: /login
π Current Page: login
π§ Handler: handleAuthLoginRoute
- Captures intended URL from query parameters
- Sets up login form state for suppliers
- Handles post-login redirects to supplier dashboard
β
Validators: isUserNotLoggedIn
- Redirects already authenticated users away from login
Logoutβ
π URL: /logout
π Current Page: logout
π§ Handler: handleAuthLogoutRoute
- Clears supplier session and authentication data
- Invalidates auth tokens
- Redirects to login page
β Validators: None
π Dashboard Routesβ
Home Dashboardβ
π URL: /home
π Current Page: home
π§ Handler: handleHomeRoute
- Loads supplier dashboard overview
- Displays key metrics and recent activity
- Shows job postings and application analytics
β
Validators: isUserNotLoggedIn
- Ensures only authenticated suppliers access dashboard
π’ Organization Management Routesβ
My Organizationβ
π URL: /my-organization
π Current Page: organization_show_supply
π§ Handler: handleMyOrganizationSupplyRoute
- Shows detailed view of supplier's own organization
- Displays company profile and settings
- Enables organization data management
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
Organization Sign Upβ
π URL: /organization/sign-up
π Current Page: organization_signup
π§ Handler: handleOrganizationSignUpRoute
- Organization registration form for new suppliers
- Collects company information and setup data
- Initiates organization onboarding process
β
Validators: scrollTo
(scroll to top)
Organization Sign Up Completeβ
π URL: /organization/sign-up-complete
π Current Page: organization_signup_complete
π§ Handler: handleOrganizationSignUpCompleteRoute
- Confirmation page after organization registration
- Displays next steps for new organizations
- Provides access to organization dashboard
β
Validators: scrollTo
(scroll to top)
Organization Updateβ
π URL: /organization/:orgId/edit
π Current Page: organization_update
π§ Handler: handleOrganizationUpdateRoute
- Organization profile editing interface
- Updates company information and settings
- Manages organization details and branding
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
Organization Registrationβ
π URL: /organization/registration
π Current Page: organization_registration
π§ Handler: handleOrganizationRegistrationRoute
- Organization registration process
- Handles organization setup and verification
- Manages registration workflow
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant context
πΌ Product/Job Management Routesβ
Products Listβ
π URL: /products
π Current Page: supply_products_list
π§ Handler: handleSupplyProductsListRoute
- Lists all job positions created by the organization
- Shows product/job posting management interface
- Displays posting status and application metrics
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
Product Detailsβ
π URL: /products/:productId
π Current Page: supply_product
π§ Handler: handleSupplyProductByIdRoute
- Shows detailed view of specific job posting
- Displays applications and candidate information
- Enables job posting management
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
Create Productβ
π URL: /products/create
π Current Page: supply_product_create
π§ Handler: handleSupplyProductCreateRoute
- Job posting creation form
- Sets up new job position with requirements
- Configures posting settings and visibility
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
Update Productβ
π URL: /products/:productId/update
π Current Page: supply_product_update
π§ Handler: handleSupplyProductUpdateRoute
- Job posting editing interface
- Updates job requirements and descriptions
- Manages posting status and settings
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
π Application Management Routesβ
Applications Listβ
π URL: /job-applications
π Current Page: orders
π§ Handler: handleOrderListByOrganizationRoute
- Lists all applications received by organization
- Shows application status and candidate information
- Provides application management tools
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
Application Detailsβ
π URL: /job-applications/:orderId
π Current Page: order_by_id
π§ Handler: handleOrdersByIdRoute
- Detailed view of specific job application
- Shows candidate profile and application details
- Enables application review and response actions
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
π₯ Team Management Routesβ
Members Listβ
π URL: /members
π Current Page: members_list
π§ Handler: handleMembersListForSupplyRoute
- Lists organization team members
- Shows member roles and permissions
- Provides team management functionality
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
π¬ Messaging Routesβ
Messagesβ
π URL: /messages
π Current Page: topics_and_messages_list
π§ Handler: handleTopicsAndMessagesListRoute
- Organization messaging interface
- Shows conversations with candidates
- Enables communication management
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
π³ Payment & Billing Routesβ
Payment Requiredβ
π URL: /payment-required
π Current Page: payment_required
π§ Handler: handlePaymentRequiredRoute
- Payment setup page for organizations
- Shows billing requirements and plans
- Handles payment method configuration
β
Validators: scrollTo
(scroll to top)
Invoicesβ
π URL: /invoices
π Current Page: invoices
π§ Handler: handleInvoicesRoute
- Organization billing and invoice history
- Shows payment records and receipts
- Manages billing information
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
βοΈ Settings Routesβ
Main Settingsβ
π URL: /settings
π Current Page: user_settings
π§ Handler: handleSettingsRoute
- User account settings for suppliers
- Personal profile management
- Account preferences and security
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user data
Change Emailβ
π URL: /settings/change-email
π Current Page: change_email_settings
π§ Handler: handleSettingsChangeEmailRoute
- Email address update for supplier accounts
- Initiates email verification process
- Handles email change workflow
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user data
Change Nameβ
π URL: /settings/change-name
π Current Page: change_name_settings
π§ Handler: handleSettingsChangeNameRoute
- Name update functionality
- Updates user display name
- Handles profile name changes
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- 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 authenticationupdateLoggedInUser
- Refreshes current user data
Change Phone Numberβ
π URL: /settings/change-phone-number
π Current Page: change_phone_number_settings
π§ Handler: handleSettingsChangePhoneNumberRoute
- Phone number update functionality
- Validates phone number format
- Updates contact information
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user data
Payment Settingsβ
π URL: /settings/payment
π Current Page: settings_payment
π§ Handler: handleSettingsPaymentRoute
- Organization payment and billing settings
- Manages payment methods and plans
- Handles subscription management
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user dataselectTenantFromOrganizationValidator
- Ensures proper tenant contextisOrganizationActiveValidator
- Validates organization status
Verify Email Change Successβ
π URL: /settings/verify-change-email-success/:verifyChangeEmailToken
π Current Page: verify_change_email_success
π§ Handler: handleSettingsVerifyChangeEmailSuccessRoute
- Confirms email address change for suppliers
- Processes email verification tokens
- Updates email verification status
β Validators:
isUserLoggedIn
- Validates authenticationupdateLoggedInUser
- Refreshes current user data
π Password Reset Routesβ
Request Password Resetβ
π URL: /reset-password-request
π Current Page: reset_password_request
π§ Handler: handleResetPasswordRequestRoute
- Password reset request for supplier accounts
- Initiates password recovery email
- Validates supplier 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β
Validator | Purpose |
---|---|
isUserLoggedIn | β Validates authentication, redirects to login if needed |
isUserNotLoggedIn | βͺοΈ Redirects authenticated users from login/signup pages |
updateLoggedInUser | π Refreshes current user data from API |
selectTenantFromOrganizationValidator | π’ Ensures proper organization tenant context |
isOrganizationActiveValidator | β Validates organization active status |
scrollTo | β¬οΈ Scrolls page to top on route navigation |
π¨ Route Flow Patternβ
π URL Request β β
Validators β π§ Handler β π State Update β π― Page Render
Supply routes are optimized for employers with organization management, team collaboration, and advanced payment processing capabilities.