Skip to main content

Invite Codes

The Invite Codes tab allows administrators to create and manage registration invite codes that control access to the Bike4Mind platform. Invite codes can be single-use or unlimited-use, and their lifecycle is tracked from creation through redemption.

Tab Layout

The interface is organized into two tabs that separate invite codes by their current availability:

TabDescription
AvailableInvite codes that have not yet been used (or unlimited-use codes that have not expired). Displayed with a green left-border accent.
UsedInvite codes that have been redeemed or have expired. Displayed with a gray left-border accent.

Each tab shows a count of its items in the tab label (e.g., "Available (12)" / "Used (5)").

Creating Invite Codes

Click the Create button to open the creation modal. The modal provides the following options:

FieldDescription
Number of InvitesHow many invite codes to generate in a single batch. Must be at least 1.
Allow unlimited useWhen checked, the invite code can be reused by multiple people. Unlimited-use invites automatically expire 90 days after creation. Single-use invites do not automatically expire.

After submission, the new codes appear in the Available tab.

Invite Table Columns

Each invite code row displays the following information:

ColumnDescription
CodeThe unique invite code string. Click to copy to clipboard. A tooltip confirms when copied.
Created ByThe admin user who generated the code.
Created AtTimestamp of when the code was created. Sortable in ascending or descending order by clicking the column header.
StatusCurrent status of the invite code: open, waiting, used, or expired (for unlimited-use codes past their expiry date). Unlimited-use codes display an infinity icon with a tooltip showing the expiry date.
Used byFor single-use codes, shows the user who redeemed the code. For unlimited-use codes, shows a clickable count (e.g., "3 use/s") that expands to reveal the full usage history with usernames and timestamps.
ActionsPer-row action buttons for status changes and deletion.

Per-Row Actions

Each invite code row has individual action buttons:

ActionIconDescription
Set OpenCircleSets the invite status to open
Set WaitingHourglassSets the invite status to waiting
Set UsedCollapseSets the invite status to used
DeleteTrashPermanently deletes the invite code

Multi-Select and Bulk Operations

Invite codes can be selected individually via their checkboxes, or all codes in the current tab can be selected using the header checkbox. When one or more codes are selected, a bulk action toolbar appears with the following operations:

Bulk ActionDescription
Set Multiple OpenChanges all selected invites to open status
Set Multiple WaitingChanges all selected invites to waiting status
Set Multiple UsedChanges all selected invites to used status
Delete MultipleDeletes all selected invites after confirmation

Bulk delete triggers a confirmation modal that displays the number of selected invites and requires explicit confirmation before proceeding.

Pagination

Pagination controls appear above and below the invite table with the following options:

  • Previous / Next buttons for page navigation
  • Page indicator showing "Page X of Y"
  • Items per page selector with options: 5, 10, or 20 per page

Additional Controls

ControlDescription
RefreshReloads the invite codes list from the server
CreateOpens the batch creation modal

Best Practices

  • Use single-use invite codes for individual invitations to maintain a clear audit trail of who used which code.
  • Use unlimited-use invite codes for events or campaigns where multiple signups are expected within a limited time window. These automatically expire after 90 days.
  • Regularly review the Used tab to track adoption and clean up old codes.
  • Use bulk operations to efficiently manage large numbers of invite codes at once.