Skip to content

Commit

Permalink
feat(perf-report): Show full slow query on clicking the row
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Jan 3, 2025
1 parent a573b0e commit 26205eb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
</template>

<script>
import { defineAsyncComponent, h } from 'vue';
import AlertBanner from '../../AlertBanner.vue';
import PerformanceReport from './PerformanceReport.vue';
import { renderDialog } from '../../../utils/components';
export default {
props: ['name', 'siteVersion'],
Expand Down
25 changes: 25 additions & 0 deletions dashboard/src2/components/site/performance/SiteSlowQueryDialog.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<Dialog
:options="{
title: 'Normalized Slow Query',
size: '2xl'
}"
v-model="show"
>
<template #body-content>
<pre
class="mt-2 whitespace-pre-wrap rounded-lg border-2 border-gray-200 bg-gray-100 p-3 text-sm text-gray-700"
>{{ query }}</pre
>
<div class="mt-2 flex text-sm">
<span class="ml-auto">Duration: {{ duration.toFixed(2) }} seconds</span>
</div>
</template>
</Dialog>
</template>

<script>
export default {
props: ['query', 'duration']
};
</script>

0 comments on commit 26205eb

Please sign in to comment.