Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
16 changes: 16 additions & 0 deletions client/src/components/Common/ErrorPluginTracker.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script setup lang="ts">
import { getGalaxyInstance } from "@/app";
import { computed } from "vue";

const errorReportingAvailable = computed(() =>{
const Galaxy = getGalaxyInstance();
if (!!Galaxy.Sentry.isInitialized) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just means we have a sentry client that is able to submit client errors, but that doesn't mean entirely expected things like this error are captured in sentry.

return "Your error has been logged in Sentry to improve your experience.";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't explicitly mention Sentry, users may not know what it is. Maybe something like:

Suggested change
return "Your error has been logged in Sentry to improve your experience.";
return "The error has been logged in our issue tracker system, and our team is investigating to fix it as soon as possible.";

Or something similar :)

}
});
</script>
<template>
<span v-localize>
{{ errorReportingAvailable }}
</span>
</template>
3 changes: 3 additions & 0 deletions client/src/components/Tool/ToolForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<b-modal v-model="showError" size="sm" :title="errorTitle | l" scrollable ok-only>
<b-alert v-if="errorMessage" show variant="danger">
{{ errorMessage }}
<ErrorPluginTracker />
</b-alert>
<b-alert v-if="submissionRequestFailed" show variant="warning">
The server could not complete this request. Please verify your parameter settings, retry submission and
Expand Down Expand Up @@ -133,6 +134,7 @@ import ToolCard from "./ToolCard";
import { allowCachedJobs } from "./utilities";

import FormSelect from "@/components/Form/Elements/FormSelect.vue";
import ErrorPluginTracker from "../Common/ErrorPluginTracker.vue";

export default {
components: {
Expand All @@ -145,6 +147,7 @@ export default {
ToolEntryPoints,
ToolRecommendation,
Heading,
ErrorPluginTracker,
},
props: {
id: {
Expand Down