-
Notifications
You must be signed in to change notification settings - Fork 2.9k
V13: Webhook corrections #15077
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
Merged
Merged
V13: Webhook corrections #15077
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a519262
Update icons
bjarnef 13791c7
Update tree headers
bjarnef bc4218c
Cleanup and change icon name
bjarnef 3571c0f
Use button element instead
bjarnef 07a2e7c
Disable button instead
bjarnef 8ff0857
Fix overlay title
bjarnef 954a81a
Simplify labels
bjarnef efb6c30
Add datalist for common headers
bjarnef 064c10d
Use Utilties function
bjarnef 8cca662
Events in plural form
bjarnef 506d546
Cleanup and formatting
bjarnef ac021f8
Formatting
bjarnef 194ddae
More formatting
bjarnef 5ebe052
Stop event bubbling when clicking delete button
bjarnef 3db2ca9
Sync tree node and show loading indicator
bjarnef 28e5542
Add webhook icon
bjarnef 11dd837
Remove globe icon to not confuse with languages
bjarnef eb8169c
Update logs
bjarnef 834ff6e
Remove extra column with delete button which shouldn't be there
bjarnef f7c6c82
Use umb-icon and update titles
bjarnef 5aa9044
Use content type picker
bjarnef File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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,47 +1,30 @@ | ||
| <div ng-controller="Umbraco.Editors.Webhooks.WebhookLogController as vm"> | ||
| <div ng-controller="Umbraco.Editors.Webhooks.WebhookLogController as vm"> | ||
| <table class="table table-hover" ng-if="!vm.loading"> | ||
| <thead> | ||
| <tr> | ||
| <th></th> | ||
| <th>Webhook key</th> | ||
| <th>Date</th> | ||
| <th>Url</th> | ||
| <th>Event</th> | ||
| <th>RetryCount</th> | ||
| </tr> | ||
| <tr> | ||
| <th></th> | ||
| <th>Webhook key</th> | ||
| <th>Date</th> | ||
| <th>Url</th> | ||
| <th>Event</th> | ||
| <th>Retry count</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr ng-repeat="log in vm.logs track by log.key" ng-click="vm.openLogOverlay(log)" style="cursor: pointer;"> | ||
| <td style="width: 20px;"> | ||
| <umb-checkmark ng-if="vm.isChecked(log)" | ||
| checked="vm.isChecked(log)" | ||
| size="xs"> | ||
| </umb-checkmark> | ||
|
|
||
| </td> | ||
| <td> | ||
| {{ log.webhookKey}} | ||
| </td> | ||
| <td> | ||
| {{ log.date}} | ||
| </td> | ||
| <td> | ||
| {{ log.url }} | ||
| </td> | ||
| <td> | ||
| {{ log.eventName }} | ||
| </td> | ||
| <td> | ||
| {{ log.retryCount}} | ||
| </td> | ||
| <td style="text-align: right;"> | ||
| <umb-button type="button" | ||
| action="vm.deleteWebhook(webhook)" | ||
| size="xxs" | ||
| label="Details"> | ||
| </umb-button> | ||
| </td> | ||
| </tr> | ||
| <tr ng-repeat="log in vm.logs track by log.key" ng-click="vm.openLogOverlay(log)" style="cursor: pointer;"> | ||
| <td style="width: 20px;"> | ||
| <umb-checkmark | ||
| ng-if="vm.isChecked(log)" | ||
| checked="vm.isChecked(log)" | ||
| size="xs"> | ||
| </umb-checkmark> | ||
| </td> | ||
| <td>{{ log.webhookKey }}</td> | ||
| <td>{{ log.date }}</td> | ||
| <td>{{ log.url }}</td> | ||
| <td>{{ log.eventName }}</td> | ||
| <td>{{ log.retryCount }}</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
| </div> | ||
This file contains hidden or 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,9 +1,9 @@ | ||
| <div class="headless-webhook-log-entry-details-overlay" style="margin-top: 20px;"> | ||
| <div class="headless-webhook-log-entry-details-overlay" style="margin-top: 20px;"> | ||
| <div class="control-group"> | ||
| <div class="flex items-center"> | ||
| <div class="flx-g0 flx-s0" style="flex-basis: 40px;"> | ||
| <umb-checkmark checked="true" size="m" style="cursor: default"></umb-checkmark> | ||
| <i class="icon-wrong umb-checkmark umb-checkmark--m" style="cursor: default;" ng-if="model.webhookLogEntry.response.isSuccess === false"></i> | ||
| <umb-icon icon="icon-wrong" class="umb-checkmark umb-checkmark--m" style="cursor: default;" ng-if="model.webhookLogEntry.response.isSuccess === false"></umb-icon> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't have any logs, but we should use |
||
| </div> | ||
| <div class="flx-g1 flx-s1 flx-b2" ng-if="model.webhookLogEntry.responseStatus.description || model.webhookLogEntry.response.statusCode">{{model.webhookLogEntry.response.statusDescription}} ({{model.webhookLogEntry.response.statusCode}})</div> | ||
| </div> | ||
|
|
@@ -17,7 +17,7 @@ | |
| <div class="controls controls-row">{{model.log.url}}</div> | ||
| </div> | ||
| <div class="control-group"> | ||
| <span class="bold">Status Code</span> | ||
| <span class="bold">Status code</span> | ||
| <div class="controls controls-row">{{model.log.statusCode}}</div> | ||
| </div> | ||
| <div class="control-group"> | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It had a column too much and there shouldn't be a delete webhook button in log entry :)