Skip to main content

Geekle Admin App

This is the Admin App of the entire Geekle package. It is used to manage the Supply organizations and users.

Main​

main.tsx is where the App starts. We instantiate a new GeekleAdminAppTemplate with it's options and dependencies; then initialize and render a React App.

Dependencies​

The dependencies are services and API's needed for the Admin App.

  • authApi: The auth API for authentication
  • demandSiteOrganizationUrl: The URL of the organization API of the demand site.
  • organizationApi: The organization API service
  • sessionService: The service which handles the session management
  • userApi: The user API service

Opts​

The options for the Admin App.

Block Pages​

The blockPages option is one of the main options. Here are the components used for the Admin site:

  • createRedirect: Simple redirect to the top index page

    • Settings
      • options: Navigation options for the redirect
      • to: Name of the blockPage to redirect to
    • Validators
      • None
  • createAcceptInvitation: Login page when user clicks on invitation link in email

    • Settings
      • passwordValidateStrategy: The strategy to validate the password
      • redirectAfterAcceptRoute: URL to redirect to after form submit
      • userApi: The User API service
      • userTypeId: The type of user to create
    • Validators
      • isNotLoggedIn: When the user is not logged in, it redirects to the application index page
  • createOrganizationApplicationShowPage: Organization/Company details page

    • Settings
      • organizationApi: The organizationAPI service
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createLogin: Login form page

    • Settings
      • alreadyVerifiedRoute: If user is already logged in, send to application index page
      • authApi: The Authentication API service
      • showSignupLink: Display sign up link?
      • userApi: The User API service
    • Validators
      • None
  • createResetPasswordRequest: Simple form to request a password reset

    • Settings
      • userApi: The User API service
    • Validators
      • None
  • createResetPasswordSubmit: Form to enter new password when resetting password

    • Settings
      • passwordValidateStrategy: The strategy to validate the password
      • userApi: The User API service
    • Validators
      • None
  • createResetPasswordSuccess: Confirmation page when reset password was successful

    • Settings
      • userApi: The User API service
    • Validators
      • None
  • createLogout: User logout

    • Settings
      • authApi: The Authentication API service
      • logoutRedirect: Upon logout, redirect to the login page
    • Validators
      • None
  • createOrganizationApplicationList: Organization applications list

    • Settings
      • organizationApi: The organizationAPI service
      • showOrganizationApplicationRoute: The url to the specific organization upon click
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createOrganizationSinglePage: Organization details page

    • Settings demandSiteOrganizationUrl: Demand site organization details URL
      • organizationApi: The organizationAPI service
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createAllOrganizationsList: List of all organizations

    • Settings
      • organizationApi: The organizationAPI service
      • pageSize: Items per page
      • showOrganizationApplicationRoute: Organization application URL
      • showOrganizationRoute: Organization details URL
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createMembersAndInvitations: List of members and invitations

    • Settings
      • logoutRoute: The route to the logout page
      • userApi: The User API service
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createListSettingsPage:

    • Settings
      • changeEmailRoute: Settings page to edit email
      • changeNameRoute: Settings page to edit name
      • changePasswordRoute: Settings page to edit password
      • changePhoneNumberRoute: Settings page to edit phone number
      • userApi: The User API service
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createChangeEmail:

    • Settings
      • cancelRoute: Route to settings page
      • successRoute: Route to settings page
      • userApi: The User API service
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createChangeName:

    • Settings
      • cancelRoute: Route to settings page
      • successRoute: Route to settings page
      • userApi: The User API service
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createChangePhoneNumber:

    • Settings
      • cancelRoute: Route to settings page
      • successRoute: Route to settings page
      • userApi: The User API service
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page
  • createVerifyChangeEmailSuccess: Verifies email change

    • Settings
      • userApi: The User API service
      • verifiedRoute: Settings URL page
    • Validators
      • None
  • createChangePassword: Change password page

    • Settings
      • cancelRoute: Settings route
      • forgotPasswordUrl: Forget password page
      • successRoute: On success, redirect to settings page
      • userApi: The User API service
    • Validators
      • isLoggedIn: When the user is not logged in, it redirects to the login page