-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9523 from owncloud/backport-x-request-id
Backport x-request-id to 7.1 stable
- Loading branch information
Showing
105 changed files
with
962 additions
and
437 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
changelog/enhancement-error-notifications-include-x-request-id
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Enhancement: Error notifications include x-request-id | ||
|
||
We've added a details box for the notifications, that pop up if an operation (e.g upload, download, add a share) fails. | ||
This box contains the x-request-id and may help to debug the error on the server side. | ||
|
||
https://github.com/owncloud/web/pull/9482 | ||
https://github.com/owncloud/web/pull/9474 | ||
https://github.com/owncloud/web/pull/9466 | ||
https://github.com/owncloud/web/pull/9448 | ||
https://github.com/owncloud/web/pull/9426 | ||
https://github.com/owncloud/web/issues/9449 |
9 changes: 9 additions & 0 deletions
9
changelog/unreleased/enhancement-add-error-log-to-upload-dialog
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Enhancement: Add error log to upload dialog | ||
|
||
We've added a error log to the upload dialog, so if an upload fails the user can copy the log and might hand | ||
it over to their admin. | ||
|
||
https://github.com/owncloud/web/pull/9436 | ||
https://github.com/owncloud/web/pull/9426 | ||
https://github.com/owncloud/web/issues/9430 | ||
|
8 changes: 8 additions & 0 deletions
8
.../changelog/unreleased/enhancement-add-dismiss-button-to-oc-notification-message-component
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Enhancement: Add dismiss button to OcNotificationsMessage component | ||
|
||
We've added added dismiss button to the OcNotificationsMessage component, | ||
which closes the open notification immediately. | ||
|
||
https://github.com/owncloud/web/pull/9421 | ||
https://github.com/owncloud/web/issues/9420 | ||
|
8 changes: 8 additions & 0 deletions
8
packages/design-system/changelog/unreleased/enhancement-add-oc-error-log-component
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Enhancement: Add OcErrorLog component | ||
|
||
We've added the new OcErrorLog component and integrated it into the OcNotificationMessage component, | ||
to display an error log and allow the user to copy it's content if the OcNotificationMessage | ||
is used to show errors. | ||
|
||
https://github.com/owncloud/web/pull/9426 | ||
|
95 changes: 95 additions & 0 deletions
95
packages/design-system/src/components/OcErrorLog/OcErrorLog.vue
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<template> | ||
<div class="oc-error-log"> | ||
<oc-textarea | ||
class="oc-error-log-textarea oc-mt-s oc-text-small" | ||
:label="contentLabel" | ||
:model-value="content" | ||
rows="4" | ||
readonly | ||
/> | ||
<div class="oc-flex oc-flex-between oc-mt-s"> | ||
<div class="oc-flex"> | ||
<div v-if="showCopied" class="oc-flex oc-flex-middle"> | ||
<oc-icon variation="success" name="checkbox-circle" /> | ||
<p class="oc-error-log-content-copied oc-ml-s oc-my-rm" v-text="$gettext('Copied')" /> | ||
</div> | ||
</div> | ||
<oc-button | ||
size="small" | ||
variation="primary" | ||
appearance="filled" | ||
@click="copyContentToClipboard" | ||
v-text="$gettext('Copy')" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { computed, defineComponent, ref } from 'vue' | ||
import { useGettext } from 'vue3-gettext' | ||
export default defineComponent({ | ||
name: 'OcErrorLog', | ||
status: 'ready', | ||
release: '2.0.0', | ||
props: { | ||
/** | ||
* Content to be displayed | ||
*/ | ||
content: { | ||
type: String, | ||
required: true | ||
} | ||
}, | ||
setup(props) { | ||
const { $gettext } = useGettext() | ||
const showCopied = ref(false) | ||
const contentLabel = computed(() => { | ||
return $gettext( | ||
'Copy the following information and pass them to technical support to troubleshoot the problem:' | ||
) | ||
}) | ||
const copyContentToClipboard = () => { | ||
navigator.clipboard.writeText(props.content) | ||
showCopied.value = true | ||
setTimeout(() => (showCopied.value = false), 500) | ||
} | ||
return { | ||
contentLabel, | ||
showCopied, | ||
copyContentToClipboard | ||
} | ||
} | ||
}) | ||
</script> | ||
|
||
<style lang="scss"> | ||
.oc-error-log { | ||
&-textarea { | ||
resize: none; | ||
label { | ||
color: var(--oc-color-text-muted); | ||
} | ||
} | ||
&-content-copied { | ||
color: var(--oc-color-swatch-success-default); | ||
} | ||
} | ||
</style> | ||
|
||
<docs> | ||
Component to display error log. | ||
```js | ||
<oc-error-log> | ||
<oc-error-log content="X-REQUEST-ID: 123456789" /> | ||
</oc-error-log> | ||
``` | ||
</docs> |
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
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.