app/src/components/DevDebugPanel/README.md
A development-only debug panel component that provides a floating debug interface for troubleshooting and development purposes.
<script setup lang="ts">
import { DevDebugPanel } from '@/components/DevDebugPanel'
const debugData = computed(() => ({
status: 'active',
// ... other debug properties
}))
</script>
<template>
<div>
<!-- Your main content -->
<!-- Debug Panel (only renders in development) -->
<DevDebugPanel :debug-data="debugData">
<template #default="{ debugData: slotDebugData }">
<div class="debug-item">
<span class="debug-label">Status:</span>
<span class="debug-value">{{ (slotDebugData as any).status }}</span>
</div>
<div class="debug-item">
<span class="debug-label">Quick Actions:</span>
<div class="mt-2">
<AButton size="small" @click="someAction">
Action
</AButton>
</div>
</div>
</template>
</DevDebugPanel>
</div>
</template>
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | 'Debug Panel' | Panel title (currently not used in display) |
initialVisible | boolean | false | Whether the panel starts visible |
debugData | Record<string, unknown> | {} | Debug data passed to slot |
The component provides several CSS classes for styling debug content:
.debug-item - Container for debug information rows.debug-label - Styling for debug labels.debug-value - Styling for debug valuesShows loading state, 2FA status, and route information with quick action buttons.
Displays indexing status, processing information, and table metadata with modal controls.