-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance UX and add features to the Callback pages (#1855)
* Add basic validation to callbacks URLs - Added the [validators](https://yozachar.github.io/pyvalidators/stable/) lib to the project - Callback URLs are now checked for validity - Callback URLs are now tested to determine if they are reachable before saving the callback url - Validate that callback urls return 200 responses * Added dynamic hint text to the url field * Various fixes - Update error messages - Add logic for catching 5xx and 4xx errors and raise the correct validation error + logging - Fixed ServiceReceiveCallbackMessagesForm validation * Fix tests * Add placeholder translations * Consider 5xx responses as valid - We only want to verify that there's a service running at the specified callback URL. - Additionally we are sending a payload the service won't understand how to response to so a 5xx is likely * Improve the callback config UX - There is now a dedicated delete button to remove a callback configuration instead of needing to empty the form and click save to delete a config - Users will receive a confirmation banner before deletion occurs - Saving, creating, and deleting a callback url now provide the user with a confirmation message that the operation succeeded * Add callback test button - Added a button to the callback config page so users can see the response times of their callback services - Added some translation stubs - The ping to their service takes place as part of the validation * Unify delivery-status-callback and received-text-messages-callback pages - Fix a few tests * formatting fixes * Fix tests - Added placeholder FR translations - Removed validation that allowed the form to be submitted while empty, this was how callbacks were deleted previously - Added additional check to the make format task - Updated EN translations - Formatting * Fix updated translations in code * Add & fix tests - Add new message content * Update delete message * Update french translations * Update translations - Fix issue with text displaying incorrectly on the delete confirmation interstitial * Translations & refresh lock file * Fix code QL issues --------- Co-authored-by: Jumana B <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,082 additions
and
703 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
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
Oops, something went wrong.