fix: webhook process (#45385)

* fix: token rework functional

fix: clean up

fix: more clean up

fix: more clean up

fix: add widget back to settings

fix:

fix:

fix: cypress

Apply suggestions from code review

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

fix: use flash enum

* chore: rename webhookToken -> userToken

fix: add translations I forgot to save

* fix: add missing tones for flash messages

* fix: node test
This commit is contained in:
Tom
2022-03-11 15:58:23 -06:00
committed by GitHub
parent 692605de3a
commit 9e5f9b2a7c
24 changed files with 370 additions and 434 deletions

View File

@@ -520,10 +520,11 @@
"provide-username": "Check if you have provided a username and a report",
"report-sent": "A report was sent to the team with {{email}} in copy",
"certificate-missing": "The certification you tried to view does not exist",
"create-token-err": "An error occurred trying to create a token",
"delete-token-err": "An error occurred trying to delete your token",
"token-created": "You have successfully created a new token.",
"token-deleted": "Your token has been deleted.",
"create-token-err": "An error occurred while creating your user token",
"delete-token-err": "An error occurred while deleting your user token",
"token-created": "You have successfully created a new user token.",
"token-deleted": "Your user token has been deleted.",
"start-project-err": "Something went wrong trying to start the project. Please try again.",
"complete-project-first": "You must complete the project first.",
"local-code-save-error": "Oops, your code did not save, your browser's local storage may be full.",
"local-code-saved": "Saved! Your code was saved to your browser's local storage."
@@ -656,14 +657,14 @@
"add-code-two": "Please leave the ``` line above and the ``` line below,",
"add-code-three": "because they allow your code to properly format in the post."
},
"webhook-token": {
"title": "Webhook Token",
"user-token": {
"title": "User Token",
"create": "Create a new token",
"create-p1": "It looks like you don't have a webhook token. Create one to save your progress on this section",
"create-p2": "Create a webhook token to save your progress on the curriculum sections that use a virtual machine.",
"delete": "Delete my token",
"delete-title": "Delete My Webhook Token",
"delete-p1": "Your webhook token below is used to save your progress on the curriculum sections that use a virtual machine.",
"create-p1": "It looks like you don't have a user token. Create one to save your progress on this section",
"create-p2": "Create a user token to save your progress on the curriculum sections that use a virtual machine.",
"delete": "Delete my user token",
"delete-title": "Delete My User Token",
"delete-p1": "Your user token is used to save your progress on curriculum sections that use a virtual machine. If you suspect it has been compromised, you can delete it without losing any progress. A new one will be created automatically the next time you open a project.",
"delete-p2": "If you suspect your token has been compromised, you can delete it to make it unusable. Progress on previously submitted lessons will not be lost.",
"delete-p3": "You will need to create a new token to save future progress on the curriculum sections that use a virtual machine.",
"no-thanks": "No thanks, I would like to keep my token",