-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: prevent reps signing in on shift without compulsory training
- Loading branch information
Showing
3 changed files
with
69 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
/** If an error can feasibly be hit by the UI it should have an associated error code for checking against on the front end */ | ||
export enum ErrorCodes { | ||
//#region sign in | ||
not_registered = 0, | ||
already_registered = 1, | ||
ldap_not_found = 2, | ||
already_signed_in_to_location = 3, | ||
queue_full = 4, | ||
location_full_and_queue_disabled = 5, | ||
agreement_not_signed = 6, | ||
not_in_queue = 7, | ||
agreement_already_signed = 8, | ||
not_rep = 9, | ||
not_signed_in = 10, | ||
queue_disabled = 11, | ||
user_has_active_infractions = 12, | ||
not_registered, | ||
already_registered, | ||
ldap_not_found, | ||
already_signed_in_to_location, | ||
queue_full, | ||
location_full_and_queue_disabled, | ||
agreement_not_signed, | ||
not_in_queue, | ||
agreement_already_signed, | ||
not_rep, | ||
not_signed_in, | ||
queue_disabled, | ||
user_has_active_infractions, | ||
compulsory_training_missing, | ||
//#endregion | ||
//#region training | ||
interactable_not_found = 13, | ||
user_trying_to_complete_rep_training = 14, | ||
interactable_not_found, | ||
user_trying_to_complete_rep_training, | ||
//#endregion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
/** If an error can feasibly be hit by the UI it should have an associated error code for checking against on the front end */ | ||
export enum ErrorCodes { | ||
//#region sign in | ||
not_registered = 0, | ||
already_registered = 1, | ||
ldap_not_found = 2, | ||
already_signed_in_to_location = 3, | ||
queue_full = 4, | ||
location_full_and_queue_disabled = 5, | ||
agreement_not_signed = 6, | ||
not_in_queue = 7, | ||
agreement_already_signed = 8, | ||
not_rep = 9, | ||
not_signed_in = 10, | ||
queue_disabled = 11, | ||
user_has_active_infractions = 12, | ||
not_registered, | ||
already_registered, | ||
ldap_not_found, | ||
already_signed_in_to_location, | ||
queue_full, | ||
location_full_and_queue_disabled, | ||
agreement_not_signed, | ||
not_in_queue, | ||
agreement_already_signed, | ||
not_rep, | ||
not_signed_in, | ||
queue_disabled, | ||
user_has_active_infractions, | ||
compulsory_training_missing, | ||
//#endregion | ||
//#region training | ||
interactable_not_found = 13, | ||
user_trying_to_complete_rep_training = 14, | ||
interactable_not_found, | ||
user_trying_to_complete_rep_training, | ||
//#endregion | ||
} |