Change the order of flags

This commit is contained in:
Alfred Kamanda 2024-08-31 14:48:02 +03:00
parent 143c9b14a1
commit c3c5c83662
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703
2 changed files with 20 additions and 20 deletions

View File

@ -5,18 +5,18 @@ import "git.defalsify.org/vise.git/state"
const (
USERFLAG_LANGUAGE_SET = iota + state.FLAG_USERSTART
USERFLAG_ACCOUNT_CREATED
USERFLAG_ACCOUNT_CREATION_FAILED
USERFLAG_ACCOUNT_PENDING
USERFLAG_ACCOUNT_SUCCESS
USERFLAG_PINMISMATCH
USERFLAG_PIN_SET
USERFLAG_ACCOUNT_AUTHORIZED
USERFLAG_INVALID_RECIPIENT
USERFLAG_INVALID_RECIPIENT_WITH_INVITE
USERFLAG_INCORRECTPIN
USERFLAG_ALLOW_UPDATE
USERFLAG_INVALID_AMOUNT
USERFLAG_PIN_SET
USERFLAG_INCORRECTPIN
USERFLAG_VALIDPIN
USERFLAG_PINMISMATCH
USERFLAG_INCORRECTDATEFORMAT
USERFLAG_ACCOUNT_CREATION_FAILED
USERFLAG_ALLOW_UPDATE
USERFLAG_SINGLE_EDIT
USERFLAG_INCORRECTDATEFORMAT
)

View File

@ -1,16 +1,16 @@
flag,flag_language_set,8,checks whether the user has set their prefered language
flag,flag_account_created,9,this is set when an account has been created on the API
flag,flag_account_pending,10,this is set when an account does not have a status of SUCCESS
flag,flag_account_success,11,this is set when an account has a status of SUCCESS
flag,flag_account_authorized,12,this is set to allow a user access guarded nodes after providing a correct PIN
flag,flag_invalid_recipient,13,this is set when the transaction recipient is invalid
flag,flag_invalid_recipient_with_invite,14,this is set when the transaction recipient is valid but not on the platform
flag,flag_incorrect_pin,15,this is set when the provided PIN is invalid or does not match the current account's PIN
flag,flag_allow_update,16,this is set to allow a user to update their profile data
flag,flag_invalid_amount,17,this is set when the given transaction amount is invalid
flag,flag_pin_set,18,this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu
flag,flag_valid_pin,19,this is set when the given PIN is valid
flag,flag_pin_mismatch,20,this is set when the confirmation PIN matches the initial PIN during registration
flag,flag_incorrect_date_format,21,this is set when the given year of birth is invalid
flag,flag_account_creation_failed,22,this is set when there's an error from the API during account creation
flag,flag_single_edit,23,this is set to allow a user to edit a single profile item such as year of birth
flag,flag_account_creation_failed,10,this is set when there's an error from the API during account creation
flag,flag_account_pending,11,this is set when an account does not have a status of SUCCESS
flag,flag_account_success,12,this is set when an account has a status of SUCCESS
flag,flag_pin_mismatch,13,this is set when the confirmation PIN matches the initial PIN during registration
flag,flag_pin_set,14,this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu
flag,flag_account_authorized,15,this is set to allow a user access guarded nodes after providing a correct PIN
flag,flag_invalid_recipient,16,this is set when the transaction recipient is invalid
flag,flag_invalid_recipient_with_invite,17,this is set when the transaction recipient is valid but not on the platform
flag,flag_invalid_amount,18,this is set when the given transaction amount is invalid
flag,flag_incorrect_pin,19,this is set when the provided PIN is invalid or does not match the current account's PIN
flag,flag_valid_pin,20,this is set when the given PIN is valid
flag,flag_allow_update,21,this is set to allow a user to update their profile data
flag,flag_single_edit,22,this is set to allow a user to edit a single profile item such as year of birth
flag,flag_incorrect_date_format,23,this is set when the given year of birth is invalid

1 flag flag_language_set 8 checks whether the user has set their prefered language
2 flag flag_account_created 9 this is set when an account has been created on the API
3 flag flag_account_pending flag_account_creation_failed 10 this is set when an account does not have a status of SUCCESS this is set when there's an error from the API during account creation
4 flag flag_account_success flag_account_pending 11 this is set when an account has a status of SUCCESS this is set when an account does not have a status of SUCCESS
5 flag flag_account_authorized flag_account_success 12 this is set to allow a user access guarded nodes after providing a correct PIN this is set when an account has a status of SUCCESS
6 flag flag_invalid_recipient flag_pin_mismatch 13 this is set when the transaction recipient is invalid this is set when the confirmation PIN matches the initial PIN during registration
7 flag flag_invalid_recipient_with_invite flag_pin_set 14 this is set when the transaction recipient is valid but not on the platform this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu
8 flag flag_incorrect_pin flag_account_authorized 15 this is set when the provided PIN is invalid or does not match the current account's PIN this is set to allow a user access guarded nodes after providing a correct PIN
9 flag flag_allow_update flag_invalid_recipient 16 this is set to allow a user to update their profile data this is set when the transaction recipient is invalid
10 flag flag_invalid_amount flag_invalid_recipient_with_invite 17 this is set when the given transaction amount is invalid this is set when the transaction recipient is valid but not on the platform
11 flag flag_pin_set flag_invalid_amount 18 this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu this is set when the given transaction amount is invalid
12 flag flag_valid_pin flag_incorrect_pin 19 this is set when the given PIN is valid this is set when the provided PIN is invalid or does not match the current account's PIN
13 flag flag_pin_mismatch flag_valid_pin 20 this is set when the confirmation PIN matches the initial PIN during registration this is set when the given PIN is valid
14 flag flag_incorrect_date_format flag_allow_update 21 this is set when the given year of birth is invalid this is set to allow a user to update their profile data
15 flag flag_account_creation_failed flag_single_edit 22 this is set when there's an error from the API during account creation this is set to allow a user to edit a single profile item such as year of birth
16 flag flag_single_edit flag_incorrect_date_format 23 this is set to allow a user to edit a single profile item such as year of birth this is set when the given year of birth is invalid