Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(membership request): add failure messages #495

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ export const FAILURE_MESSAGES = {
'INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST',
INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM:
'INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM',
MEMBERSHIP_ALREADY_EXISTS: 'MEMBERSHIP_ALREADY_EXISTS',
MEMBERSHIP_REQUEST_ALREADY_EXISTS: 'MEMBERSHIP_REQUEST_ALREADY_EXISTS',
MEMBERSHIP_REQUEST_NOT_FOUND: 'MEMBERSHIP_REQUEST_NOT_FOUND',
};

export const DEFAULT_FAILURE_MESSAGE = FAILURE_MESSAGES.UNEXPECTED_ERROR;
Expand Down
5 changes: 4 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,8 @@
"INVITATION_CSV_NO_FILE_PROVIDED": "No file was provided. Please provide a file for creating bulk invitations",
"INVITATION_CSV_NO_DATA_IN_FILE": "No data was found in the file. Please send a file with valid data.",
"INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST": "The template item does not exist.",
"INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM": "Provided item is not a folder. A structure cannot be created inside an item that is not a folder."
"INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM": "Provided item is not a folder. A structure cannot be created inside an item that is not a folder.",
"MEMBERSHIP_ALREADY_EXISTS": "This account already has access to this item.",
"MEMBERSHIP_REQUEST_ALREADY_EXISTS": "This account has already requested a membership to the provided item.",
"MEMBERSHIP_REQUEST_NOT_FOUND": "Provided Membership Request not found."
}